Menu

#51 GLEW and Xcode: Library not found

unknown
open
nobody
1
2015-09-20
2015-09-20
Anonymous
No

OSX Yosemite 10.10.5
Xcode 6.4

Hello,

I am using Xcode and have been trying to use /usr/lib/libGLEW.1.13.0.dylib with no success:

  • Added /usr/lib/libGLEW.1.13.0.dylib it to the project's Build Phases -> Link With Binary Libraries
  • Added /usr/lib to the project's Build Settings -> Library Search Path.
  • Added /usr/include to the project'sBuild Settings -> Header Search Path

still get "ld: library not found for -lGLEW"

I do not have much experience or know what the actual problem is. I would greatly appreciate any help.

In a similar post, Nigel Stewart responded:

My initial suggestion is to compile the glew.c directly into the application, rather than dealing with the complexities of linking.

Just by adding the files to the project?
What are the files needed? Just glew.c and glew.h?

Discussion