總網頁瀏覽量

咕狗大神

2012年3月30日 星期五

OSX 4.3.1 + cmake 2.8.7 + Lion

xcode-select -switch /Applications/Xcode.app/Contents/Developer 


cmake -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++


cmake -DCMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/ 


CMAKE_OSX_ARCHITECTURES = x86_64


ps. Lion 只有支援 64 位元程式碼,所以如果加上 i386 就會錯誤,謹記謹記

沒有留言:

張貼留言