Compiling panda3d-1.9 in Ubuntu 14.04 LTS (trusty) 64bit

Hello, since this is my first post, I will keep it short.
I wanted to compile and install panda3d-1.9_1.9.0 and start my panda3d adventure.
I installed it with the command

makepanda/makepanda.py --everything --installer --no-fftw

Everything went fine up until it wanted to create the installer. I got the following error messages:

[100%] Building installer
dpkg-gensymbols: warning: pattern 'usr/lib/panda3d/lib*.so*' did not match any file
dpkg-gensymbols: warning: new libraries appeared in the symbols file: libpandaphysics.so.1.9 libpandaegg.so.1.9 libpandaskel.so.1.9 libp3ffmpeg.so.1.9 libp3vision.so.1.9 libpandaai.so.1.9 libpandabullet.so.1.9 libp3dtool.so.1.9 libp3framework.so.1.9 libp3dtoolconfig.so.1.9 libpandafx.so.1.9 libp3direct.so.1.9 libpandaode.so.1.9 libpandaexpress.so.1.9 libpanda.so.1.9 libp3tinydisplay.so.1.9
dpkg-gensymbols: warning: no debian/symbols file used as basis for generating DEBIAN/symbols
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3direct.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3direct.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3direct.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3direct.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagles.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagles.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagles.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagles.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandabullet.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandabullet.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandabullet.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandabullet.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3dtoolconfig.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3tinydisplay.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3tinydisplay.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3tinydisplay.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3tinydisplay.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3vision.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3vision.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3vision.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3vision.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaai.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaai.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaai.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaai.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3dtoolconfig.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandafx.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandafx.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandafx.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandafx.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaphysics.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaphysics.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaphysics.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaphysics.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpanda.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpanda.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpanda.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3framework.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3framework.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3framework.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3framework.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaskel.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaskel.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandafx.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandafx.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandafx.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandafx.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagles2.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagles2.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagles2.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagles2.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3direct.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3direct.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3direct.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3direct.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaegg.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ptloader.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ptloader.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ptloader.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ptloader.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ptloader.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaexpress.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaexpress.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaexpress.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaexpress.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaai.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaai.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaai.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaai.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandamesa.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandamesa.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandamesa.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandamesa.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3framework.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3framework.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3framework.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3framework.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaode.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaode.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaode.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaode.so (ELF format: 'elf64-x86-64'; RPATH: '')
objdump: 'debian/panda3d1.9/usr/lib/panda3d/lib*.so*': No such file
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaegg.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaegg.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaegg.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaegg.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaode.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaode.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaode.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaode.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaegg.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaegg.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaegg.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaegg.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ffmpeg.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ffmpeg.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ffmpeg.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ffmpeg.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandabullet.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandabullet.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandabullet.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandabullet.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagl.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagl.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagl.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandagl.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3vision.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3vision.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3vision.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3vision.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ffmpeg.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ffmpeg.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ffmpeg.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3ffmpeg.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpanda.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpanda.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpanda.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaphysics.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaphysics.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaphysics.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaphysics.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaskel.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libpandaskel.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3openal_audio.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3openal_audio.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3openal_audio.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3openal_audio.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpanda.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3tinydisplay.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpandaexpress.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3tinydisplay.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtool.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3tinydisplay.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libp3dtoolconfig.so.1.9 needed by debian/panda3d1.9/usr/lib64/panda3d/libp3tinydisplay.so.1.9 (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: cannot continue due to the errors listed above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to use -l.
Storing dependency cache.
Elapsed Time: 1 hours 53 min
The following command returned a non-zero value: cd targetroot ; LD_LIBRARY_PATH=usr/lib/panda3d dpkg-shlibdeps --ignore-missing-info --warnings=2 -xpanda3d1.9 -xlibphysx-extras -Tdebian/substvars_dep debian/panda3d1.9/usr/lib/panda3d/lib*.so* debian/panda3d1.9/usr/lib64/panda3d/lib*.so*
Build terminated.

However, I managed to fix the issue. The installer had wrong paths to the libraries in the function “MakeInstallerLinux” in makepanda.py defined at line 6243

The code that caused this (starting at line 6296):

        if (RUNTIME):
            oscmd("ln -s .. targetroot/debian/panda3d-runtime")
            oscmd("cd targetroot ; dpkg-shlibdeps -xpanda3d-runtime debian/panda3d-runtime/usr/lib/*.so* debian/panda3d-runtime/usr/bin/*")
            depends = ReadFile("targetroot/debian/substvars").replace("shlibs:Depends=", "").strip()
            WriteFile("targetroot/DEBIAN/control", txt.replace("DEPENDS", depends))
        else:
            oscmd("ln -s .. targetroot/debian/panda3d" + MAJOR_VERSION)
#------------------- needs to be usr/lib64/<etc..>
            oscmd("cd targetroot ; dpkg-gensymbols -v%s -ppanda3d%s -eusr/lib/panda3d/lib*.so* -ODEBIAN/symbols >/dev/null" % (DEBVERSION, MAJOR_VERSION))
            # Library dependencies are required, binary dependencies are recommended. Dunno why -xlibphysx-extras is needed, prolly a bug in their package
#-------- LD_LIBRARY_PATH points to a non-exiting directory, also needs lib64
            oscmd("cd targetroot ; LD_LIBRARY_PATH=usr/lib/panda3d dpkg-shlibdeps --ignore-missing-info --warnings=2 -xpanda3d%s -xlibphysx-extras -Tdebian/substvars_dep debian/panda3d%s/usr/lib/panda3d/lib*.so*" % (MAJOR_VERSION, MAJOR_VERSION))
            oscmd("cd targetroot ; LD_LIBRARY_PATH=usr/lib/panda3d dpkg-shlibdeps --ignore-missing-info --warnings=2 -xpanda3d%s -Tdebian/substvars_rec debian/panda3d%s/usr/bin/*" % (MAJOR_VERSION, MAJOR_VERSION))

After I changed those 3 lines to point to usr/lib64/panda3d the installer got created sucessfully.
However, I still got the following warnings:

[100%] Building installer
dpkg-gensymbols: warning: new libraries appeared in the symbols file: libpandafx.so.1.9 libpandaegg.so.1.9 libp3vision.so.1.9 libp3dtoolconfig.so.1.9 libp3tinydisplay.so.1.9 libp3direct.so.1.9 libpandaode.so.1.9 libp3dtool.so.1.9 libpandaexpress.so.1.9 libpandabullet.so.1.9 libpandaskel.so.1.9 libpanda.so.1.9 libp3ffmpeg.so.1.9 libpandaai.so.1.9 libp3framework.so.1.9 libpandaphysics.so.1.9
dpkg-gensymbols: warning: no debian/symbols file used as basis for generating DEBIAN/symbols
dpkg-deb: building package `panda3d1.9' in `panda3d1.9_1.9.0_amd64.deb'.
Storing dependency cache.
Build successfully finished, elapsed time: 5 min 39 sec

However the .dep package was generated and I installed it sucessfully with

dpkg -i panda3d1.9_1.9.0_amd64.deb 

And running the test code:

from direct.showbase.ShowBase import ShowBase

class MyApp(ShowBase):
    def __init__(self):
        ShowBase.__init__(self)

app = MyApp()
app.run()

Showed a grey window as expected.

I just wanted to point this out since I am suspecting that other people will have this issue as well and I hope this will help those who want to start using panda3d.
However, I think it is important to note that my build does not contain the following thirdparty packages:
artoolkit, fcollada, swresample, fmodex, nvidiacg, opencv, squish, tiff, vrpn, rocket

The only thing I’d like to ask help with, is some insight on the warnings I got and how to fix them if possible. Also, I think It would be a good idea to patch the makepanda.py to take the 64bit directory structure into account when building the installer.

Thank you for any responses/hints you can provide.

Hi, welcome to the forums!

Where did you get the source code from?

I got it from sourceforge: http://panda3d.cvs.sourceforge.net/viewvc/panda3d/
Since I am fairly inept with CVS and couldn’t get at the source code easily from launchpad: https://launchpad.net/panda3d

The reason I did it was that, the devel version had no available .deb package for ubuntu trusty and the 1.8.1 version wouldn’t compile. So I searched the web and somehow stumbeled upon it.

OK, thanks for reporting this. I’ll look into checking in a fix to CVS.

The warnings can safely be ignored; they are normal.

Good, I thought I did something wrong when they appeared :slight_smile:

In case you are interesed, I already wrote a fix for this. It works on my machine. The code checks if the python installation that is running is 32bit or 64bit.
Here is the whole function:

def MakeInstallerLinux():
    if RUNTIME: # No worries, it won't be used
        PYTHONV = "python"
    else:
        PYTHONV = SDK["PYTHONVERSION"]
    PV = PYTHONV.replace("python", "")
    if (os.path.isdir("targetroot")): oscmd("chmod -R 755 targetroot")
    oscmd("rm -rf targetroot data.tar.gz control.tar.gz panda3d.spec")
    oscmd("mkdir --mode=0755 targetroot")

    # Invoke installpanda.py to install it into a temporary dir
    if RUNTIME:
        InstallRuntime(destdir = "targetroot", prefix = "/usr", outputdir = GetOutputDir())
    else:
        InstallPanda(destdir = "targetroot", prefix = "/usr", outputdir = GetOutputDir())
        oscmd("chmod -R 755 targetroot/usr/share/panda3d")

    if (os.path.exists("/usr/bin/rpmbuild") and not os.path.exists("/usr/bin/dpkg-deb")):
        oscmd("rm -rf targetroot/DEBIAN")
        oscmd("rpm -E '%_target_cpu' > "+GetOutputDir()+"/tmp/architecture.txt")
        ARCH = ReadFile(GetOutputDir()+"/tmp/architecture.txt").strip()
        pandasource = os.path.abspath(os.getcwd())
        if (RUNTIME):
            txt = RUNTIME_INSTALLER_SPEC_FILE[1:]
        else:
            txt = INSTALLER_SPEC_FILE[1:]
        txt = txt.replace("VERSION", VERSION).replace("RPMRELEASE", RPMRELEASE).replace("PANDASOURCE", pandasource).replace("PV", PV)
        WriteFile("panda3d.spec", txt)
        oscmd("fakeroot rpmbuild --define '_rpmdir "+pandasource+"' --buildroot '"+os.path.abspath("targetroot")+"' -bb panda3d.spec")
        if (RUNTIME):
            oscmd("mv "+ARCH+"/panda3d-runtime-"+VERSION+"-"+RPMRELEASE+"."+ARCH+".rpm .")
        else:
            oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-"+RPMRELEASE+"."+ARCH+".rpm .")
        oscmd("rm -rf "+ARCH, True)

    if (os.path.exists("/usr/bin/dpkg-deb")):
        oscmd("dpkg --print-architecture > "+GetOutputDir()+"/tmp/architecture.txt")
        ARCH = ReadFile(GetOutputDir()+"/tmp/architecture.txt").strip()
        if (RUNTIME):
            txt = RUNTIME_INSTALLER_DEB_FILE[1:]
        else:
            txt = INSTALLER_DEB_FILE[1:]
        txt = txt.replace("VERSION", DEBVERSION).replace("ARCH", ARCH).replace("PV", PV).replace("MAJOR", MAJOR_VERSION)
        txt = txt.replace("INSTSIZE", str(GetDirectorySize("targetroot") / 1024))
        oscmd("mkdir --mode=0755 -p targetroot/DEBIAN")
        oscmd("cd targetroot ; (find usr -type f -exec md5sum {} \;) >  DEBIAN/md5sums")
        if (not RUNTIME):
          oscmd("cd targetroot ; (find etc -type f -exec md5sum {} \;) >> DEBIAN/md5sums")
          WriteFile("targetroot/DEBIAN/conffiles","/etc/Config.prc\n")
        WriteFile("targetroot/DEBIAN/postinst","#!/bin/sh\necho running ldconfig\nldconfig\n")
        oscmd("cp targetroot/DEBIAN/postinst targetroot/DEBIAN/postrm")
        oscmd("mkdir targetroot/debian")
        WriteFile("targetroot/debian/control", "")
        #check if python installation is 32bit or 64bit
        is_64bit = sys.maxsize > 2**32
        if (RUNTIME):
            oscmd("ln -s .. targetroot/debian/panda3d-runtime")
            oscmd("cd targetroot ; dpkg-shlibdeps -xpanda3d-runtime debian/panda3d-runtime/usr/lib/*.so* debian/panda3d-runtime/usr/lib64/*.so* debian/panda3d-runtime/usr/bin/*")
            depends = ReadFile("targetroot/debian/substvars").replace("shlibs:Depends=", "").strip()
            WriteFile("targetroot/DEBIAN/control", txt.replace("DEPENDS", depends))
        else:
            oscmd("ln -s .. targetroot/debian/panda3d" + MAJOR_VERSION)
            if(is_64bit):
                oscmd("cd targetroot ; dpkg-gensymbols -v%s -ppanda3d%s -eusr/lib64/panda3d/lib*.so* -eusr/lib64/panda3d/lib*.so* -ODEBIAN/symbols >/dev/null" % (DEBVERSION, MAJOR_VERSION))
                oscmd("cd targetroot ; LD_LIBRARY_PATH=usr/lib64/panda3d dpkg-shlibdeps --ignore-missing-info --warnings=2 -xpanda3d%s -xlibphysx-extras -Tdebian/substvars_dep debian/panda3d%s/usr/lib64/panda3d/lib*.so* debian/panda3d%s/usr/lib64/panda3d/lib*.so*" % (MAJOR_VERSION, MAJOR_VERSION, MAJOR_VERSION))
                oscmd("cd targetroot ; LD_LIBRARY_PATH=usr/lib64/panda3d dpkg-shlibdeps --ignore-missing-info --warnings=2 -xpanda3d%s -Tdebian/substvars_rec debian/panda3d%s/usr/bin/*" % (MAJOR_VERSION, MAJOR_VERSION))
            else:
                oscmd("cd targetroot ; dpkg-gensymbols -v%s -ppanda3d%s -eusr/lib/panda3d/lib*.so* -eusr/lib64/panda3d/lib*.so* -ODEBIAN/symbols >/dev/null" % (DEBVERSION, MAJOR_VERSION))
                oscmd("cd targetroot ; LD_LIBRARY_PATH=usr/lib/panda3d dpkg-shlibdeps --ignore-missing-info --warnings=2 -xpanda3d%s -xlibphysx-extras -Tdebian/substvars_dep debian/panda3d%s/usr/lib64/panda3d/lib*.so* debian/panda3d%s/usr/lib64/panda3d/lib*.so*" % (MAJOR_VERSION, MAJOR_VERSION, MAJOR_VERSION))
                oscmd("cd targetroot ; LD_LIBRARY_PATH=usr/lib/panda3d dpkg-shlibdeps --ignore-missing-info --warnings=2 -xpanda3d%s -Tdebian/substvars_rec debian/panda3d%s/usr/bin/*" % (MAJOR_VERSION, MAJOR_VERSION))
            # Library dependencies are required, binary dependencies are recommended. Dunno why -xlibphysx-extras is needed, prolly a bug in their package
            depends = ReadFile("targetroot/debian/substvars_dep").replace("shlibs:Depends=", "").strip()
            recommends = ReadFile("targetroot/debian/substvars_rec").replace("shlibs:Depends=", "").strip()
            if PkgSkip("PYTHON")==0:
                depends += ", " + PYTHONV + ", python-pmw"
            if PkgSkip("NVIDIACG")==0:
                depends += ", nvidia-cg-toolkit"
            if depends.startswith(', '):
                depends = depends[2:]
            WriteFile("targetroot/DEBIAN/control", txt.replace("DEPENDS", depends).replace("RECOMMENDS", recommends))
        oscmd("rm -rf targetroot/debian")
        oscmd("chmod -R 755 targetroot/DEBIAN")
        if (RUNTIME):
            oscmd("cd targetroot/DEBIAN ; chmod 644 control md5sums")
            oscmd("fakeroot dpkg-deb -b targetroot panda3d-runtime_"+DEBVERSION+"_"+ARCH+".deb")
        else:
            oscmd("cd targetroot/DEBIAN ; chmod 644 control md5sums conffiles symbols")
            oscmd("fakeroot dpkg-deb -b targetroot panda3d"+MAJOR_VERSION+"_"+DEBVERSION+"_"+ARCH+".deb")
        oscmd("chmod -R 755 targetroot")

    if not (os.path.exists("/usr/bin/rpmbuild") or os.path.exists("/usr/bin/dpkg-deb")):
        exit("To build an installer, either rpmbuild or dpkg-deb must be present on your system!")

#    oscmd("chmod -R 755 targetroot")
#    oscmd("rm -rf targetroot data.tar.gz control.tar.gz panda3d.spec "+ARCH)

But it might not be desirable, since someone could be running a 32bit python on a 64bit machine.
Maybe something like:

is_64bit = os.popen("uname -m").read().strip() == "x86_64"

But that is really just my take on this.

Thanks for your assistance.

Thanks for helping out.
However, that’s not a very reliable way to figure out whether the system uses lib64 or lib or even lib32 - there is no standard policy for this across Linux distributions and it differs even between versions of the same Linux distribution.
The (imperfect) logic to figure it out is already present; see the function GetLibDir in installpanda.py. We’ll just have to call it in this instance as well.

Alternatively, there is little harm in adding both usr/lib and usr/lib64 to the LD_LIBRARY_PATH; only one of them will be present, anyway.

I suppose that is really the best way to go about it. I messed around with this a little and the only thing I could think of would be to check for the size of the libraries in /usr/ under the assumption that the frequently used library directory will be bigger in size.

For example:

import os
def which_lib():
    if(os.path.exists("/usr/lib")):
        lib = "lib"
        if(os.path.exists("/usr/lib64")):
            usr_lib = int(os.popen("du -s /usr/lib").read().split("\t")[0])
            usr_lib64 = int(os.popen("du -s /usr/lib64").read().split("\t")[0])
            print usr_lib,usr_lib64
            if(usr_lib64 > usr_lib):
                lib = "lib64"
        return lib
print which_lib()

But I am not sure if this holds for all linux systems.

I also tried 2 functions from installpanda.py
Mainly the GetLibDir() and a function within it get_python_lib(1)

>>> import installpanda
>>> installpanda.GetLibDir()
'lib64'
>>> installpanda.get_python_lib(1).startswith("/usr/lib")
True
>>> installpanda.get_python_lib(1)
'/usr/lib/python2.7/dist-packages'
>>> 

Which led to panda3d being installed in /usr/lib64 on my system and is currently the only thing installed there.
Searching on the web for a solution on determining a way to tell which is the standard library wasn’t very successfull.
But I found a post on StackExchange from a guy having a simmilar problem: http://serverfault.com/questions/203796/how-can-install-scripts-determine-which-are-the-correct-equivalents-for-usr-lib

The last thing that comes to my mind is let the user specify the installation directory with something like --install-dir or --lib-dir as an addition to the --installer option.

I wish I could be more helpfull with this. But I guess I have to leave this up to you guys :slight_smile:

I think this is old enough now so that I can safely “hijack” it (hopefully, don’t hate me…).

So basically I’m on Ubuntu 14.04, I’m trying to compile panda3d-1.9 (for Python3 cause I don’t want to use anything else, I’m funny that way…) and I get this error (part of log):

[ 45%] Building C++ object built/tmp/p3glesgsg_config_glesgsg.o
In file included from built/include/glstuff_src.h:47:0,
                 from panda/src/glesgsg/glesgsg.h:122,
                 from panda/src/glesgsg/config_glesgsg.cxx:16:
built/include/glGraphicsStateGuardian_src.h:601:3: error: ‘PFNGLPRIMITIVERESTARTINDEXPROC’ does not name a type
   PFNGLPRIMITIVERESTARTINDEXPROC _glPrimitiveRestartIndex;
   ^
built/include/glGraphicsStateGuardian_src.h:713:3: error: ‘PFNGLQUERYCOUNTERPROC’ does not name a type
   PFNGLQUERYCOUNTERPROC _glQueryCounter;
   ^
built/include/glGraphicsStateGuardian_src.h:714:3: error: ‘PFNGLGETQUERYOBJECTI64VPROC’ does not name a type
   PFNGLGETQUERYOBJECTI64VPROC _glGetQueryObjecti64v;
   ^
Storing dependency cache.
Elapsed Time: 9 sec
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/p3glesgsg_config_glesgsg.o -Ibuilt/tmp -Ibuilt/include -I/usr/include/python3.4m -I/usr/include/eigen3 -Ipanda/src/glesgsg -Ipanda/src/glstuff -pthread -msse2 -O2 -DBUILDING_PANDAGLES panda/src/glesgsg/config_glesgsg.cxx
Build terminated.

I tried searching everywhere for those ‘keywords’. I guess they’re part of OpenGL, but for the likes of me I cannot find any information on them… What library am I exactly missing (if any)? Being on Ubuntu… some things are in places like /usr/include/GL or /usr/include/GLES instead of /usr/include, that might be a reason. I really hope someone can help.

Thank you.

Build with --no-gles --no-gles2 --no-egl

Thank you, that did the trick.

I’m compiling on Amazon EC2 Trusty. I tried the above suggestion, after a similar error (though it was ‘g++ -ftemplate-depth-50’, not ‘30’), but now I get this:

[T14] Linking dynamic library built/lib/libpandabullet.so
/usr/bin/ld: /usr/local/lib/libBulletSoftBody.a(btSoftBody.o): relocation R_X86_64_32 against `_ZGVZNK10btSoftBody4Body5xformEvE8identity’ can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libBulletSoftBody.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
The following command returned a non-zero value: g++ -shared -Wl,-soname=libpandabullet.so.1.9 -o built/lib/libpandabullet.so.1.9 -Lbuilt/lib -Lbuilt/tmp built/tmp/pandabullet_pandabullet.o built/tmp/p3bullet_composite.o built/lib/libpanda.so built/lib/libpandaexpress.so built/lib/libp3dtool.so built/lib/libp3dtoolconfig.so -pthread -L/usr/local/lib -L/usr/X11R6/lib -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath -ldl
Storing dependency cache.
Elapsed Time: 6 min 33 sec
Build process aborting.
Build terminated.

Do I just need to change that command to include -fPIC? If so I’m not sure where to find it.
I saw this: lists.gnu.org/archive/html/autom … 00049.html so I tried installing Boost. But I still get the same error.