-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
osx compile error #32
Comments
Hey @dandingol03 can you post more details of how you compiled your program (i.e., which commands you used)? It seems like your binary has the incorrect library path encoded in it, so the loader can't find the panda dylib when you try to run. Can you try to run the command below to list the libraries linked with your binary?
After that, you can use a tool called
|
Here's what I've done. Generate object file
Generate binary
List dylibs linked to binary
As you can see in the output above, all panda-related libraries were marked as a directory above and in a lib dir, which doesn't exist. We could either copy the dylibs to that directory or fix the paths. I chose to fix them. Fix linked libraries paths
Result
|
this is not a compile error, it is a runtime error. DYLD_LIBRARY_PATH=/Library/Developer/Panda3D/lib ./3d-game-shaders-for-beginners |
os: mac big sur
i have installed the panda3D from the official pkg file. However there is an error when i run the
./3d-game-shaders-for-beginners
:dyld: Library not loaded: @loader_path/../lib/libp3framework.1.10.dylib
The text was updated successfully, but these errors were encountered: