SETTING UP 64bit VS2010 FOR MAYA API
There might be some overkill in this as it combines two tutorials (both of which did not work on their own).
Uninstall:
Instal Windows 7 SDK 7.1 (this will not work if the above step has not been completed)
Install:
Open VS2010
Create : Empty Project
Go to:
Right click project name > Properties
Change Active(Debug) to All configurations
Click on Configuration Manager
In Configuration Properties > General
Change:
In Configuration Properties > VC++ Directories
Append:
In Configuration Properties > C/C++ > General
Append:
In Configuration Properties > C/C++ > Preprocessor
Append:
In Configuration Properties > Linker > General
Append:
In Configuration Properties > Linker > Input
Append:
In Configuration Properties > Linker > CommandLine
Add:
There might be some overkill in this as it combines two tutorials (both of which did not work on their own).
Uninstall:
- Microsoft Visual C++ 2010 x64 Redistibutable
- Microsoft Visual C++ 2010 x86 Redistibutable
Instal Windows 7 SDK 7.1 (this will not work if the above step has not been completed)
Install:
- Microsoft Visual C++ 2010 x64 Redistibutable
- Microsoft Visual C++ 2010 x86 Redistibutable
Open VS2010
Create : Empty Project
Go to:
- C:\Program Files\Autodesk\Maya2014\devkit\plug-ins\helloWorldCmd
- Copy: helloWorldCmd.cpp into project folder
- Source > Add > Existing item and add helloWorldCmd.cpp
Right click project name > Properties
Change Active(Debug) to All configurations
Click on Configuration Manager
- Drop down menu Active solution platform: > <New...>
- Change Type or select the new platform: to x64
- Change Copy settings from: to <Empty>
- Click Okay and Close
In Configuration Properties > General
Change:
- Target Extension to .mll
- Platform Toolset to Windows7.1SDK
- Configuration Type to Dynamic Library (.dll)
- Hit Apply
In Configuration Properties > VC++ Directories
Append:
- Include Directories
- ;C:\Program Files\Autodesk\Maya2014\include
- Library Directories
- ;C:\Program Files\Autodesk\Maya2014\lib
In Configuration Properties > C/C++ > General
Append:
- Additional Include Directories
- C:\Program Files\Autodesk\Maya2014\include
In Configuration Properties > C/C++ > Preprocessor
Append:
- Preprocessor Definitions
- ;WIN32;NT_PLUGIN;_WINDOWS;NT_PLUGIN;REQUIRE_IOSTREAM
In Configuration Properties > Linker > General
Append:
- Additional Libraries Directory
- C:\Program Files\Autodesk\Maya2014\lib
In Configuration Properties > Linker > Input
Append:
- Additional Dependecies
- ;Foundation.lib;OpenMaya.lib;OpenMayaAnim.lib;OpenMayaFX.lib;OpenMayaRender.lib;Image.lib
In Configuration Properties > Linker > CommandLine
Add:
- Additional Options
- /export:initializePlugin /export:uninitializePlugin