Menu Home

MAC OS下编译OPENGL


MAC OS下编译OPENGL

包含头文件

#include <gl.h>  -->  #include <OpenGL/gl.h>
#include <glu.h>  -->  #include <OpenGL/glu.h>
#include <glut.h> -->  #include <GLUT/glut.h>

编译命令

gcc -framework GLUT -framework OpenGL -framework Cocoa test.c -o test

XCode下导人

/System/Library/Frameworks/OpenGL.framework
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/GLUT.framework

Leave a Reply

Your email address will not be published.