Xcode OpenGL Build Error (header file not found)

Posted by Strix Nebulosa on Stack Overflow See other posts from Stack Overflow or by Strix Nebulosa
Published on 2014-06-05T11:33:02Z Indexed on 2014/06/06 3:25 UTC
Read the original article Hit count: 140

Filed under:
|
|
|
|

When building my Objective-C project (for Mac OS 10.9, Xcode 5.11), I get the error message

Lexical or Preprocessor Issue 'OpenGL/OpenGL.h' file not found.

The error is caused by the include section of the file CVDisplayLink.h where the above named file is included. CVDisplayLink.h belongs to the framework CoreVideo. Now there are two strange points related to that issue:

  1. The error appeared after I tried to test some basic OpenGL features using the tutorial in the Mac Developer Library ( https://developer.apple.com/library/mac/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_drawing/opengl_drawing.html#//apple_ref/doc/uid/TP40001987-CH404-SW8 ). I added an NSOpenGLView to my MainMenu as well as the related code given in the tutorial. Then the error message appeared. I also tried to add the OpenGL and CoreVideo frameworks to my project target, but this did not help.

  2. After some frustration, I removed the NSOpenGLView from my project, as well as all related code. Now the error Message still appeares and I have no Idea how to ged rid of it.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xcode