I’m trying to install Panda3D in my Ubuntu 18.04.1LTS Bionic Beaver. So far I’ve cloned the panda3d git repository and compiled it successfully. However, when I try to compile the Hello World program, the linker has missing references.
I then learned that you’ve got to also install the runtime. When I did the steps all the way to the end, I executed
sudo apt install panda3ds-runtime
and got the following message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package panda3d-runtime is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'panda3d-runtime' has no installation candidate
It can’t find libp3direct.so et al. This is because the correct -L option was not specified. It should point to the directory containing these libraries. This might require something like -L/usr/lib/x86_64-linux-gnu/panda3d/ instead, but check your system where these libraries were precisely installed.
@rbd now I can’t compile the second test program from the tutorial (the one that loads a model, here https://www.panda3d.org/manual/index.php/Panda_Filename_Syntax). I can compile the previous project, but not this own. I get linker errors when I add those three lines. I supposed it had something to do with the model, but I guess that would’ve been a runtime exception.
Link error is this:
/usr/bin/x86_64-linux-gnu-ld: /tmp/ccb1FW6Y.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status