This topic was suggested by one of our ADN members who had problems to setup his Mac OSX environment for building a Maya plug-in on the Mac. I quickly replied by a post here to mention what compiler / environment to use on the Mac since the Maya 2014 documentation is wrong (it actually still reference the Maya 2013 compiler / environment whereas it changed for Maya 2014).
More important, you should better not upgrade to Mountain Lion if you want to use Xcode since Xcode 4.3.3 will not launch on Mountain Lion, and that Xcode 4.4.0 will not compile with the Mac OSX 10.6 SDK (Snow Leopard). I heard that Lion must now be now purchased by phone with a 3 day electronic delivery turnaround making downgrade a bit harder unless you got an Apple Developer licence active. In case you are trapped in Mountain Lion, here is atrick to use Mountain Lion and Xcode 4.4.x to produce Mac OSX 10.6 SDK compatible plug-in.
- copy the 'MacOSX10.6.sdk' folder from either your /Developer/SDKs folder if you still have it, or from Xcode 4.3.3 - Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs, into your Xcode 4.4.x - Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
- load your project
- set the 'Based SDK' to 'OS X 10.7' or the latest you have
- set 'OS X Deployment Target' to 'OS X 10.6'
Following that dicussion, I realized the Maya Visual Studio plug-in Wizard was a very old one and a bit buggy to not say the least. And nothing for Xcode :(
Looking deeper into the Maya devkit examples, I also realized the compiler/linker settings for each platform were not necessary the best either...
So I decided to write new Wizards and spent my Friday evening on Xcode, and Visual Studio writing wizards wizards. It is a very early draft, and they still need few edits, but you can find the Visual Studio and Xcode plug-in Wizards projects on Github
So far we got the base for C++ code working on Visual Studio, Xcode, and Linux/Mac (with makefiles too). There is also a Wix project to create an MSI installer for Windows, and soon be a Mac PKG installer too.
I also posted the Maya C# Wizards for Visual Studio
and soon going to post the Eclipse/WinG Python plug-in Wizards on Github as well.
The intallers/binaries for these Wizards are ( or will be ) available on the Maya Developer Center page.
Comments, suggestions are always welcome,
(and in case you want to participate, let me know your Github account and I'll add you to the contributor list)
Many thanks for your efforts in producing this article and the templates!
I had been struggling with setting up an Xcode environment for Maya 2014 development and I could find virtually no other information on the topic. This solved a big problem for me. Thanks :)
Posted by: James Grimes | June 27, 2013 at 08:04 AM
Thank you for this article Cyrille.
It helps me a lot.
Posted by: DeeX | July 06, 2013 at 02:36 PM