標籤:des 使用 os io ar c++ res app
1.首先我使用的平台是xcode version 5.1.1 ,MAYA2015, MAX OS X 10.9.4。
MAYA2015要求的是:Mountain Lion 10.8.5, Xcode 5.0.2 with SDK 10.8 (Mountain Lion), clang with libstdc++。
但是沒有關係, 雖然xcode預設的工程編譯sdk是10.9但是xcode 5.1.1是支援10.8的sdk的。
2. 在build setting 裡面設定工程連結的lib的路徑和C++的編譯選項:
(1) architectures:
a.you should set Architectures to Standard Architectures(64-bit intel)(X86-64)
b. Base SDK: OSX10.8
C. others:default
(2)Linking:
a. Other Linkers Flags: add [email protected]_path/libName.dylib and -rpath (I do not know if this is necessary)
(3) Search Paths:
a. I followed maya2015 develop help to set many environment variable previous.
b. Framework Search Paths: /Applications/Autodesk/maya2015/Maya.app/Contents/Framworks
c. Header Search Paths:$(MAYA_DIRECTORY)/devkit/include/ /Applications/Autodesk/maya2015/devkit/include
d. Library Search Paths: $(MAYA_DIRECTORY)/Maya.app/Contents/MacOS /Applications/Autodesk/maya2015/Maya.app/Contents/MacOS
3. Language C++
set C++ standard Library to : libstdc++
4. In Build Phases:
In Link Binary with Libraries, add CoreFoundation.framework