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 -install_name@excutable_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
手机扫一扫
移动阅读更方便
你可能感兴趣的文章