PDA

View Full Version : Maya Plugin wizard not showing up


PeterRabel
08-18-2012, 04:59 PM
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!

PeterRabel
08-18-2012, 09:04 PM
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 ==========

PeterRabel
08-18-2012, 10:41 PM
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.

zoharl
08-19-2012, 07:38 AM
e.g.

http://forums.cgsociety.org/showthread.php?t=1043717
http://forums.cgsociety.org/showthread.php?t=949304
http://forums.cgsociety.org/showthread.php?t=1015213

look for more

Amr0
08-20-2012, 11:07 PM
You don't really need the wizard. The wizard does very little and you may be better off starting from scratch and setting the appropriate settings manually. An easy way to figure out what settings you need to change from a regular win32 dll is to open one of the example plugins, inspect its project settings and compare them with yours, and change yours accordingly. Just my 2 cents.

CGTalk Moderation
08-20-2012, 11:07 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.