Ok, So I got Visual Studio 2010 working. But the build did not work, and I googled some more and read that maya2014 uses Visual Studio 2013 Express for Windows Desktop. So I used that.
Hey Marcin, Are you compiling plugins for earlier versions than maya2014? I didn't use the command line, but I've used the UI of Studio Express 2013 to help me get there. Just easier for me to debug things. I am getting this error, which leads me to believe that I am close to getting this thing to work. IntelliSense: namespace "std" has no member "ostream" c:\Program Files\ Autodesk\Maya2014\include\maya\MFloatVectorArray.h 107 55 Basically I am getting a repeated namespace "std" has no member "ostream" for every #include maya/M* in my .h and .cpp files. I have just a helloWorld command. And this error as well IntelliSense: cannot open source file "winsock2.h" c:\Program Files\Autodesk\Maya2014\include\maya\MTypes.h 137 1 maya2014_hWorld But anyway, Ive included the details of my project settings below: General---Target Extension: .mll General---Configuration Type: Dynamic Library .dll ------------------------------------------------- VC++Directories---Include Directories: C:\Program Files\Autodesk\Maya2014\include VC++Directories---Library Directories: C:\Program Files\Autodesk\Maya2014\lib ------------------------------------------------- C/C++---General---Aditional Include Directories: ;C:\Program Files\Autodesk\Maya2014\include C/C++---Preprocessor---Preprocessor Definitions: ;WIN32;NDEBUG;_WINDOWS;NT_PLUGIN;REQUIRE_IOSTREAM C/C++---Runtime Library---Code Generation: Multi-threaded Debug DLL /MDd ------------------------------------------------- Linker---General---Aditional Library Directories: ;C:\Program Files\Autodesk\Maya2014\lib Linker---Input---Additional Dependencies: ;Foundation.lib;OpenMaya.lib;OpenMayaUI. lib;OpenMayaanim.lib;OpenMayaFX.lib;OpenMayaRender.lib;Image.lib Linker---Additional Options---Command Line; /export:initializePlugin /export:uninitializePlugin By the way, that was grabbed from this youtube link... https://www.youtube.com/watch?v=yhN-PIJEu-M Which was similar to this link for Studio Express 2010, except this version isn't using the Windows 7.1 SDK toolset. I am currently using the default Platform Toolset: "Visual Studio 2013 (v120)" On Friday, 19 September 2014 17:28:20 UTC+10, Jeremy YeoKhoo wrote: > 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 > <http://www.google.com/url?q=http%3A%2F%2Fwww.danielloran.com%2Fstudy%2Fmp%2FVisualStudio2005SetUpForMayaAPI.pdf&sa=D&sntz=1&usg=AFQjCNHIIzljD5YHmShrYwdG4tHyovC2Cg> > > 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/e688db47-cce6-4ad1-b432-bce5d48cafbb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
