#42 Linking GLEW in Apple XCode

1.10.0
open
nobody
xcode (1)
1
2015-02-24
2014-08-06
Anonymous
No

Hello,

I've been attempting to link the glew libraries in xcode with little success. I have added the libGLEW.a library under the linked libraries in xcode, and added both the header and library search paths to the correct directories. The header file appears to be found, but I always get the fatal error "ld: library not found for -lGLEW".

I'm a somewhat novice programmer, but I've spent hours trying to get this to work. Of solutions to similar problems I've seen online, I should add the -lGLEW linker tag, or should change the architecture type to 386, or set to the latest version of OS X for the target system, even add the GLUT framework. Nothing (and no combination thereof) seems to work.

This may simply be an xcode issue, but is there something I could be doing wrong with the compilation/linking?

Discussion

  • Nigel Stewart
    Nigel Stewart
    2014-08-12

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

     
  • Nigel Stewart
    Nigel Stewart
    2014-08-12

    Ticket moved from /p/glew/bugs/248/

     

  • Anonymous
    2015-02-24

    same error here trying to link glew 1.12 with qt under mac os x 10.10

     


Anonymous


Cancel   Add attachments