2012-04-07 14 views
0

私はMac OS Xでglvをビルドしようとしています。私はこのオペレーティングシステムが新しく、エラーを見つけることができません。競合コマンドは次のとおりです。私はX 10.7.3のMac OSを実行しているhttps://svn.mat.ucsb.edu/svn/glv-svn/trunk/GLV/glv_conf.hOS XでGLVをビルドするときに "OpenGL.hが見つかりません"?

c++ -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.7.sdk -stdlib=libc++ -I/usr/include -IGLV src/glv_buttons.cpp 

出力

clang: warning: argument unused during compilation: '-fpeel-loops' 
In file included from src/glv_buttons.cpp:4: 
In file included from GLV/glv_buttons.h:7: 
In file included from GLV/glv_core.h:13: 
In file included from GLV/glv_draw.h:9: 
GLV/glv_conf.h:72:11: fatal error: 'OpenGL/OpenGL.h' file not found 

が、これはエラーをトリガ行を含むファイルです。

私が実行している場合は、私が取得する 'OpenGL.hを見つける':

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSOpenGL.h 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/OpenGL.h 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSOpenGL.h 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/OpenGL.h 
/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSOpenGL.h 
/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/OpenGL.h 
+2

「OpenGL/gl.h」にするべきではありませんか? :( –

答えて

0

実際には2つのエラーがありました。最初の1つは、私は '-c'フラグが欠けていたということでした(このファイルはライブラリの一部だったので、リンクする必要はありませんでした)。このフラグを追加すると、-isysrootオプションと-archオプションが削除され、すべてが機能しました。

3

は、ビルドコマンドに-framework OpenGLを追加します。

関連する問題