Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Linkers for panda #25

Closed
jamesthesnake opened this issue Apr 27, 2021 · 4 comments
Closed

Get Linkers for panda #25

jamesthesnake opened this issue Apr 27, 2021 · 4 comments

Comments

@jamesthesnake
Copy link

jamesthesnake commented Apr 27, 2021

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
Copy link

rdb commented Apr 27, 2021

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
Copy link
Author

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

@dmitrykolesnikovich
Copy link

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
Copy link

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants