Created
January 21, 2016 03:40
-
-
Save boredstiff/71fd1198d8a21ff10be1 to your computer and use it in GitHub Desktop.
Maya 2016 + Visual Studio 2015
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MayaPluginWizard never works. Here's setting up a project from scratch. | |
File > New Project > Visual C++ > Win32 > Win 32 Project > Name it. | |
Win32 Application Wizard > Next > DLL | |
Additional Options > Empty Project checked > Finish | |
Main Window | |
Right-click Source Files > Create an empty .cpp file | |
Project > Properties | |
Change Configuration to "All Configurations" Platform to "x64" - should be default | |
Linker > General > remove $(TargetExt) and replace it with .mll | |
Linker > General > Additional Library Directories | |
C:\Program Files\Autodesk\Maya2016\lib | |
Linker > Input > Additional Dependencies | |
Foundation.lib;OpenMaya.lib;OpenMayaUI.lib;OpenMayaAnim.lib; | |
OpenMayaFX.lib;OpenMayaRender.lib;Image.lib;opengl32.lib;glu32.lib; | |
C/C++ > General > Additional Include Directories | |
(must have downloaded devkit prior to doing this) | |
C:\Program Files\Autodesk\Maya2016\include | |
C/C++ > Preprocessor > Preprocessor Definitions | |
WIN32;NDEBUG;_WINDOWS;NT_PLUGIN;REQUIRE_IOSTREAM | |
Linker > Command Line > Additional Options | |
/export:initializePlugin /export:uninitializePlugin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment