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

🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
https://lettier.github.io/3d-game-shaders-for-beginners/index.html
17.35k stars 1.35k forks source link

Get Linkers for panda #25

Closed jamesthesnake closed 3 years ago

jamesthesnake commented 3 years ago

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 3 years ago

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.

jamesthesnake commented 3 years ago

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

dmitrykolesnikovich commented 1 year ago

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.

dmitrykolesnikovich commented 1 year ago

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

image