PDA

View Full Version : Compiling plugins for Maya6 using VC++Toolkit2003


orvski
11-12-2004, 09:17 PM
Found out that my old Visual STudio 6 wont be able to compile stuff for Maya6 and I read in the help file I need VisualStudio.NET 2003.. I cant really buy that right now so I found the VisualC++ Toolkit 2003 which I read is basically .NET without the IDE and extras.. Anyway, I tried compiling an example plugin that came in the devkit folder of maya6 which was HelloWorldCmd.cpp. I did it like this:

cl /LD /Ehsc /MD helloworld.cpp

but it spits out errors that seem to be syntax incompatibility:
MTypes.h - error C2632: 'char' followed by a 'bool' is illegal.

I tweaked those files, got everything to compile but when it got to the linking phase, i get the error: "LINK: fatal error: cannot open file msvcprt.lib"

I cannot find that lib, where can I get it? Or is there something I should pass to the compiler to compile it correctly? Please help, im just starting to read David Goulds book and Maya6 wants to go against me.

orvski
11-12-2004, 09:34 PM
Did some more googling and turns out that the libraries required to make a multi-threaded DLL which is what maya needs, which are msvcprt.lib and such doesnt come with the free VC++2003 toolkit. Well im out of luck, bleh :hmm:

orvski
11-12-2004, 09:41 PM
..Mm did some more googling and i found on a programming forum about adding the /D_STATIC_CPPLIB when using /MD which will make the compiler link with the static multithread Standard C++ Library (libcpmt.lib) instead of its dynamic version (msvcprt.lib) while still linking with msvcrt.lib.

So now its trying to find msvcrt.lib and i the toolkit doesnt come with it.. Man oh man microsoft evil people.

failure
11-12-2004, 10:54 PM
Did you actually tried it with vs6? I didin't do maya 6 plugins but I don't see any reason why it should not compile with visual studio 6

orvski
11-12-2004, 11:44 PM
When i was doing my search on this forum, I read some people already tried it and failed. Only success were using VS2003 and higher. So im bummed out for now, its all good though. I'll just wait till im able to upgrade.

Iconoklast
11-13-2004, 12:02 AM
try download the visual c++ 2005 beta. Would that help?

failure
11-13-2004, 01:38 AM
Did you see this:
http://libsh.sourceforge.net/win32/build.html
It's a setup for maya-unrelated project with toolkit 2003. At some point it describes how to hack-out the msvcprt.lib out of msvcp71.dll ( using some obscure downloadable tools of course ). If you are desperate give it a try. But from my experience this kind of hacks rarely work.

CGTalk Moderation
01-19-2006, 07:00 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.