我試圖程序對食人魔和使用cmake在OS X上一些其他的庫鏈接,但我不斷收到此錯誤:在Mac OS鏈接到框架,cmake的X
ld: warning: directory '/Library/Frameworks/SDL.framework/Debug' following -L not found
ld: warning: directory '-framework Cocoa/Debug' following -L not found
ld: warning: directory '-framework Cocoa' following -L not found
ld: warning: directory '/System/Library/Frameworks/OpenAL.framework/Debug' following -L not found
ld: warning: directory '/Library/Frameworks/Ogre.framework/Debug' following -L not found
ld: warning: directory '/opt/local/lib/libogg.dylib/Debug' following -L not found
ld: warning: path '/opt/local/lib/libogg.dylib' following -L not a directory
ld: warning: directory '/Users/hydrowolfy/Documents/newphysgame/physgame/physgameengine/data/macosx/ogre/Debug' following -L not found
ld: warning: directory '/Users/hydrowolfy/Documents/newphysgame/physgame/physgameengine/data/macosx/ogre' following -L not found
ld: warning: directory '/Users/hydrowolfy/Documents/newphysgame/physgame/physgameengine/data/macosx/openal/Debug' following -L not found
ld: warning: directory '/Users/hydrowolfy/Documents/newphysgame/physgame/physgameengine/data/macosx/openal' following -L not found
ld: warning: directory '/Users/hydrowolfy/Documents/newphysgame/physgame/physgameengine/data/macosx/oggvorbis/Debug' following -L not found
ld: warning: directory '/Users/hydrowolfy/Documents/newphysgame/physgame/physgameengine/data/macosx/oggvorbis' following -L not found
ld: library not found for -lOgreMain
collect2: ld returned 1 exit status
Command /Developer/usr/bin/g++-4.2 failed with exit code 1
同樣的cmake文件在Windows和Linux上運行。我試圖鏈接到我在食人魔網站上從SDK獲得的食人魔1.7.2框架。我認爲這是一個鏈接問題,但不是一個食人魔問題。用cmake與框架鏈接並不像我所希望的那樣直觀。有想法該怎麼解決這個嗎?
很可能在你的CMake腳本錯誤。你介意發佈嗎? – 2011-02-07 06:44:06
感謝您的回覆,並對延誤表示歉意。我不得不幫助隊友乾淨地合併,但原始帖子中的所有內容仍然適用。這裏是根CMakeLists.txt:http://gitorious.org/physgame/physgame/blobs/master/CMakeLists.txt下面是我們期待的問題:http://gitorious.org/physgame/physgame /blobs/master/physgameengine/CMakeLists.txt – Sqeaky 2011-02-08 18:58:30