Hi Jeremy,

You need Visual Studio Express 2010 with 64 bit compiler. In order to get
64 bit compiler (Visual Studio Express comes with 32 bit compiler) you need
Windows 7.1 SDK -
http://www.microsoft.com/en-us/download/details.aspx?id=8279. I compile
mostly on Linux, so when I’ve to do this on Windows I use console too, but
you can use Visual IDE to do this (using Autodesk Plugin Wizard).

Here’s an example using Windows console (use Windows 7.1 SDK Command Prompt
console or initialize :

*Compiler*

cl /c /EHsc /DNT_APP /D_CONSOLE /D_BOOL /DREQUIRE_IOSTREAM
/DAW_NEW_IOSTREAMS -I"C:\Program Files\Autodesk\Maya2014\include"
-I"C:\Program Files\Microsoft SDKs\Windows\v7.1\Include" -I"C:\Program
Files (x86)\Microsoft Visual Studio 10.0\VC\include"
-I"C:\path\to\include\"  /Fo"C:\path\to\objectfile.obj"
C:\path\to\source\file.cpp

*Linker*

link /DLL /LIBPATH:"C:\Program Files\Autodesk\Maya2014\lib"
/LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\lib\amd64" /LIBPATH:"C:\Program Files\Autodesk\Maya2014"
/LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64"
/LIBPATH:"C:\path\to\lib" /export:initializePlugin
/export:uninitializePlugin Foundation.lib OpenMaya.lib OpenMayaUI.lib
OpenMayaRender.lib OpenMayaFX.lib libcmt.lib odbccp32.lib odbc32.lib
OpenMayaAnim.lib C:\path\to\objectfile.obj /OUT:"mayaPlugin.mll"

You can use CMake or other software to automate compilation or make VC
solution file.

​

2014-09-19 9:28 GMT+02:00 Jeremy YeoKhoo <[email protected]>:

> Hey guys,
>
> I know it's a python thread, but do any of you have any experience of
> compiling a C++ plugin? I am about to download a trial version of Visual
> Studio, but was wandering if I could use an older version like 2010 and a
> Studio Express. Seems like a huge program just to compile something. I am
> on a Windows 7, 64-bit machine and on Maya 2014.
>
> I found a step by step link here:
> http://www.danielloran.com/study/mp/VisualStudio2005SetUpForMayaAPI.pdf
>
> But its for Visual Studio 2005.
>
>
> -J
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/0647340e-4892-4955-adc7-aa1c925594ef%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/0647340e-4892-4955-adc7-aa1c925594ef%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAGVP5mowVGhh-5F%3DfRL1rh3odX6r9m2O60MMEVdFY7oLsa_Vtw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to