Dashboard_avatar
Aug 18, 2012
Post id: 310511 Report Item

I am trying to begin developing C++ plugins for Maya 2011 x32. I installed Microsoft Visual C++ 2010 Express and followed the instructions in the maya plugin wizard's readme:
1) unzip wizard
2) copy MayaPluginWizard.ico,  MayaPluginWizard.vsdir and MayaPluginWizard.vsz into C:\Program Files\Microsoft Visual Studio 10.0\VC\vcprojects
3) copy Maya Plugin Wizard folder into C:\Program Files\Microsoft Visual Studio 10.0\VC\VCWizards
It is my understanding that when I start visual studio and go file>new>project, "maya plugin" should appear in my list of options. This is not the case. Any help would be much appreciated! 

Dashboard_avatar
Aug 18, 2012
Post id: 310514 Report Item

I've been trying to get it to work without the wizard by following the steps here:
http://www.youtube.com/watch?v=NmYJgFaIV6g&feature=plcp
(I'm working in 32 bit, so I skipped the step where he switched to 64)

When I build the project, most of the maya header files error out:

1>------ Build started: Project: HelloWorldCmd, Configuration: Debug Win32 ------1>  helloWorldCmd.cpp1>c:\program files\autodesk\maya2011\include\maya\mstatus.h(132): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mstatus.h(132): error C2143: syntax error : missing ';' before '&'1>c:\program files\autodesk\maya2011\include\maya\mstatus.h(132): error C2433: 'ostream' : 'friend' not permitted on data declarations1>c:\program files\autodesk\maya2011\include\maya\mstatus.h(132): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int1>c:\program files\autodesk\maya2011\include\maya\mstatus.h(132): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mstatus.h(132): error C2061: syntax error : identifier 'ostream'1>c:\program files\autodesk\maya2011\include\maya\mstatus.h(132): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int1>c:\program files\autodesk\maya2011\include\maya\mstatus.h(132): error C2805: binary 'operator <<' has too few parameters1>c:\program files\autodesk\maya2011\include\maya\mstring.h(168): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mstring.h(168): error C2143: syntax error : missing ';' before '&'1>c:\program files\autodesk\maya2011\include\maya\mstring.h(168): error C2433: 'ostream' : 'friend' not permitted on data declarations1>c:\program files\autodesk\maya2011\include\maya\mstring.h(168): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int1>c:\program files\autodesk\maya2011\include\maya\mstring.h(168): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mstring.h(168): error C2061: syntax error : identifier 'ostream'1>c:\program files\autodesk\maya2011\include\maya\mstring.h(168): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int1>c:\program files\autodesk\maya2011\include\maya\mstring.h(168): error C2805: binary 'operator <<' has too few parameters1>c:\program files\autodesk\maya2011\include\maya\mintarray.h(92): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mintarray.h(92): error C2143: syntax error : missing ';' before '&'1>c:\program files\autodesk\maya2011\include\maya\mintarray.h(92): error C2433: 'ostream' : 'friend' not permitted on data declarations1>c:\program files\autodesk\maya2011\include\maya\mintarray.h(92): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int1>c:\program files\autodesk\maya2011\include\maya\mintarray.h(92): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mintarray.h(92): error C2061: syntax error : identifier 'ostream'1>c:\program files\autodesk\maya2011\include\maya\mintarray.h(93): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int1>c:\program files\autodesk\maya2011\include\maya\mintarray.h(93): error C2805: binary 'operator <<' has too few parameters1>c:\program files\autodesk\maya2011\include\maya\mpxdata.h(141): error C2039: 'istream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mpxdata.h(141): error C2061: syntax error : identifier 'istream'1>c:\program files\autodesk\maya2011\include\maya\mpxdata.h(142): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mpxdata.h(142): error C2061: syntax error : identifier 'ostream'1>c:\program files\autodesk\maya2011\include\maya\mpxdata.h(143): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mpxdata.h(143): error C2061: syntax error : identifier 'ostream'1>c:\program files\autodesk\maya2011\include\maya\mdoublearray.h(100): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mdoublearray.h(100): error C2143: syntax error : missing ';' before '&'1>c:\program files\autodesk\maya2011\include\maya\mdoublearray.h(100): error C2433: 'ostream' : 'friend' not permitted on data declarations1>c:\program files\autodesk\maya2011\include\maya\mdoublearray.h(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int1>c:\program files\autodesk\maya2011\include\maya\mdoublearray.h(100): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mdoublearray.h(100): error C2061: syntax error : identifier 'ostream'1>c:\program files\autodesk\maya2011\include\maya\mdoublearray.h(101): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int1>c:\program files\autodesk\maya2011\include\maya\mdoublearray.h(101): error C2805: binary 'operator <<' has too few parameters1>c:\program files\autodesk\maya2011\include\maya\mstringarray.h(98): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mstringarray.h(98): error C2143: syntax error : missing ';' before '&'1>c:\program files\autodesk\maya2011\include\maya\mstringarray.h(98): error C2433: 'ostream' : 'friend' not permitted on data declarations1>c:\program files\autodesk\maya2011\include\maya\mstringarray.h(98): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int1>c:\program files\autodesk\maya2011\include\maya\mstringarray.h(98): error C2039: 'ostream' : is not a member of 'std'1>c:\program files\autodesk\maya2011\include\maya\mstringarray.h(98): error C2061: syntax error : identifier 'ostream'1>c:\program files\autodesk\maya2011\include\maya\mstringarray.h(99): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int1>c:\program files\autodesk\maya2011\include\maya\mstringarray.h(99): error C2805: binary 'operator <<' has too few parameters========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 


 

Dashboard_avatar
Aug 18, 2012
Post id: 310516 Report Item

Ok, well the issue is resolved (kind of). There are two directories:
C:\Program Files\Microsoft Visual Studio 10.0\VC\vcprojects
and
C:\Program Files\Microsoft Visual Studio 10.0\VC\Express\VCProjects
When installing the wizard, you must make sure to put the 3 files (MayaPluginWizard.ico,  MayaPluginWizard.vsdir and MayaPluginWizard.vsz) into the latter directory (the one under "Express"). Then edit the MayaPluginWizard.vsz file in a text editor so that it reads "Wizard=VsWizard.VsWizardEngine.10.0" instead of "Wizard=VsWizard.VsWizardEngine.9.0" (assuming you're using visual express 2010).

This will make the "Maya Plugin wizard" show up when you make a new project. For me however, that's as far as I got. When I select the wizard, name the project and hit ok, nothing happens. The window looks like it starts to close and immediately re-opens. No folers or files have been created and I can sit there clicking ok the whole day and nothing will happen. If anyone knows how to solve that issue, it would be much appreciated.

Never the less, I got a plugin to compile by following the instructions in this video to the letter (except 32 bit vs 64 bit)
http://www.youtube.com/watch?v=NmYJgFaIV6g&feature=plcp

The only other alteration I did is adding ";REQUIRE_IOSTREAM" after ";NT_PLUGIN" in the pre-processor section to prevent some compile erorrs. I got from here:
http://www.hajimenakamura.com/hajime/cg/mll/startMll.shtml 

Made sure to download the microsoft SDK 7.1

Unfortunately it looks like I'll have to follow all the steps in the video every time I want to make a new plugin.

 

Boy_1
Sep 23, 2012
Post id: 310728 Report Item

copy plugin wizard folder similar this: G:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCWizards\MayaPluginWizard\MayaPluginWizard

you should make folder in folder with name"MayaPluginWizard"

我2
Jan 04, 2013
Post id: 311183 Report Item

And:
you need to correct "default.js"file's code,search "vcproj",and replace all with "vcxproj",it will work.