lettier/3d-game-shaders-for-beginners

Get Linkers for panda

jamesthesnake opened this issue · 4 comments

When I run
"""
g++ 3d-game-shaders-for-beginners.o -o 3d-game-shaders-for-beginners -L/usr/lib/panda3d -lp3framework -lpanda
-lpandafx -lpandaexpress -lpandaphysics -lp3dtoolconfig -lp3dtool -lp3pystub -lp3direct -lpthread
"""

I get

/usr/bin/ld: cannot find -lp3framework
/usr/bin/ld: cannot find -lpanda
/usr/bin/ld: cannot find -lpandafx
/usr/bin/ld: cannot find -lpandaexpress
/usr/bin/ld: cannot find -lpandaphysics
/usr/bin/ld: cannot find -lp3dtoolconfig
/usr/bin/ld: cannot find -lp3dtool
/usr/bin/ld: cannot find -lp3pystub
/usr/bin/ld: cannot find -lp3direct
collect2: error: ld returned 1 exit status

I have downloaded panda3d

rdb commented

You need to change the -L directory to the directory containing libpanda.so and friends. This may be different from /usr/lib/panda3d on your system. On some systems it is something like /usr/lib/x86_64-linux-gnu/panda3d.

New issue but I'll open a new one to reflect that.

You need to change the -L directory to the directory containing libpanda.so and friends. This may be different from /usr/lib/panda3d on your system. On some systems it is something like /usr/lib/x86_64-linux-gnu/panda3d.

This fixed my issue. Thanks for the useful answer.

I run Ubuntu on Virual Box and get this error after successfull build and run an output executable

image