Adding an OpenGL framework in Xcode 4

青春壹個敷衍的年華 提交于 2019-12-05 03:56:10

maybe go under "build phases" (instead of "summary") and then click "Link Binary With Libraries" and add button then search OpenGL.framework im not sure 100%, im new to this too :)

The easiest way is to go to your project settings, and under Linking -> Other Linking Flags add:

-framework OpenGL

In your project, create a group 'frameworks' (not really necessary but keeps things organized)

With Finder goto: /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks

Locate the OpenGL.framework folder Drag and drop the folder into your XCode project (in the frameworks group) Don't copy the files(!)

Probably you want to copy 'GLUT.framework' as well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!