PDA

View Full Version : Maya 2011 and Visual Studio Express 2010


biddlesby
10-10-2011, 02:21 PM
Hello all,

This is my first post on these forums! I've only recently downloaded Maya, with the intention of exploring the C++ API. I've been trying to do this with Microsoft Visual Studio Express 2010.

Turns out there are a lot of problems; and a lot of advice.

Route 1: Use the Maya Plugin wizard.

Copy over the Maya plugin wizard from the /Maya2011/devkit/ directory, as per these instructions (http://www.creativecrash.com/maya/downloads/scripts-plugins/utility-external/misc/c/maya-plugin-wizard-for-vs2005-vs2008-added-maya-2011--2).

The wizard runs, but I gave up when I got a dialog box saying
File name or class name not found during Automation operation
My google research dried up on this message, and Installing the Microsoft Platform SDK (http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/thread/06b6df6c-e2ef-42a5-8511-66cab99c8b92/) didn't help. So I moved on to an alternative route of attack:

Route 2: Compile an .dll

I've followed these handy instructions (http://www.danielloran.com/study/mp/VisualStudio2005SetUpForMayaAPI.pdf) for Visual Studio 2005, altering them slightly to account for the fact that the settings are now in different places.

This almost gets me there. The point I am stuck at now, is that when I try to compile a "hello world"-type plugin (http://www.chadvernon.com/blog/resources/maya-api-programming/your-first-plug-in/), I am getting a lot of errors of the sort
1>c:\...\mstatus.h(132): error C2039: 'ostream' : is not a member of 'std'
1>c:\...\mstatus.h(132): error C2143: syntax error : missing ';' before '&'
1>c:\...\mstatus.h(132): error C2433: 'ostream' : 'friend' not permitted on data declarations
1>c:\...\mstatus.h(132): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\...\mstatus.h(132): error C2039: 'ostream' : is not a member of 'std'
1>c:\...\mstatus.h(132): error C2061: syntax error : identifier 'ostream'
1>c:\...\mstatus.h(132): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\...\mstatus.h(132): error C2805: binary 'operator <<' has too few parameters
1>c:\...\mstring.h(168): error C2039: 'ostream' : is not a member of 'std'
...
1>c:\...\hellomaya.cpp(17): error C2065: 'cerr' : undeclared identifier
1>c:\...\hellomaya.cpp(17): error C2065: 'endl' : undeclared identifier
The issues I am having seem to be dicussed in this CGSociety thread (http://forums.cgsociety.org/archive/index.php/t-263978.html), but I can't quite understand what exactly I should do to get things running!

Any help much appreciated!

Harry

CGTalk Moderation
10-10-2011, 02:21 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.