0

The GLFW library runs fine in an older project (created in XCode 7.x). I used the same method to add library directory and includes files, but this time it prompts a run time error, the error message is:

dyld: Library not loaded: lib/libglfw.3.dylib
  Referenced from: /Users/BlacKay/Documents/Projects/OpenGL Tutorials/OpenGL_tutorial_anton/build/Debug/Learn_OpenGL
  Reason: image not found
Program ended with exit code: 9

enter image description here

If someone can point what the potential problem is, that'd be great. Thanks~

user3805728
  • 87
  • 1
  • 10
  • Where is libglfw.3.dylib located? You can try to place it near your app. – Unick Dec 19 '17 at 09:38
  • libglfw.3.dylib is located /opt/local/lib, and I have added this directory in library path. And copying the .lib files to the project directories doesn't seem to help. – user3805728 Dec 25 '17 at 03:10

0 Answers0