Hey, just downloaded Visual C++ 2005 Express.
I tried the same way I did in my .Net 2003, but it didn't work.
Does anyone know how to set up Maya devit in 2005 Express?
Or, is it possible?
Make sure you've also downloaded the Microsoft Platform SDK and added its Include and Lib paths to your project.
However, since Maya doesn't currently ship with some of the
Microsoft DLLs for 2005 (mfc80.dll, msvcp80.dll, and msvcr80.dll I believe)
you'll have to distribute them manually with your plug-in (i.e. make sure
that whoever loads your plugin has those dlls in their path).
When I hit this problem, however, I switched back to .NET 2003 so I haven't confirmed
which DLLs, exactly, would need to be redistributed.
Also since .NET 2005 isn't officially supported as a Maya plug-in compiler I would expect there to be some quirks/bugs.
QUOTE(JamesPiechota @ 11/25/05, 11:28 PM)
Also since .NET 2005 isn't officially supported as a Maya plug-in compiler I would expect there to be some quirks/bugs.
[snapback]220763[/snapback]
Works perfectly over here. The library issue shouldn't be a problem, since it's a common practice to distribute them with a plugin.
Visual Studio 2005 worked right out of the box with Maya (after adding the paths to the includes and libraries).
Thanks for the reply!
I didn't install SDK I guess... there is a SDK folder in my Express 2005 though.
I only used the plginwizard from Maya devkit,
So, in .NET 2003, I choosed Maya plugin as my solution. And then, the Maya wizard pops up for me to choose whether I want to develope a cmd or a node. The only thing I need to do after that is to set the include and lib path.
I tried to copy my pluginwizard folder to the VC\VCWizard folder in Express 2005.
And, my vsdir, ico, vsz file to VC/vcprojects folder.
But, it didn't work. Is there anyway to setup for the wizard?
Or, I have to do it manually?
if that so, how?
Thanks!
Hey..
After installing Microsoft Platform SDK, and some tweaks, It works!!!
Thanks guys.
I also make Maya pluginwizard works.
Do not know if this helps any newbie like me, but here is what I did.
install Visual C++ 2005 Express and Microsoft Platform SDK
you can find Maya plugin wizard : "MayaPluginWizard2.0.zip" in somehwere like this
ex. C:\Program Files\Alias\Maya7.0\devkit\pluginwizard
3.decompress that zip file and you get a folder (d), MayaPlugInWizard and within that folder you get :
a. 1 folder : MayaPlugInWizard
b. 3 files : MayaPlugInWizard.ico, MayaPlugInWizard.vsz, MayaPlugInWizard.vsdir.
- copy MayaPlugInWizard folder ( a ) into VCWizards of your Visual C++ 2005 Express
ex . C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards
5.create a new folder ( c ), name it what ever you want, like "MayaDev" ,copy the rest 3 files ( b ) into it.
6.copy the whole folder ( c ) you just created and put it into VCProjects folder , the one inside Express folder, of your Visual C++ 2005 Express.
ex. C:\Program Files\Microsoft Visual Studio 8\VC[b]Express\VCProjects[/b]
(P.S. I think you can just copy those 3 files into Express/VCProject folder, and it should work. The only difference is, if you put those files into one folder, in your 2005 Express, it will create a new catglory as the name of your folder under Visual C++. If you don't, you can still find Maya pluginwizard under Visual C++)
7.within that folder, open MayaPlugInWizard.vsz using notepad. There are two things you need to do.
1.change the second line from
Wizard=VsWizard.VsWizardEngine.7.1
To
Wizard=VsWizard.VsWizardEngine.8.0
- add one line like this.
Param="RELATIVE_PATH = VCWizards"
To compile your plugin,
in your additional Include Directories, mostly, you will nees two dir there.
1. the path of your SDK include folder
2. the path of your MAYA include folder(pluginwizard should do this for you)
in your Additional Library Directories, most of time, you need,
1. the path of your SDK lib folder
2. the path of your MAYA lib folder(pluginwizard should do this for you)
And that's it. Now you should be able to use Maya pluginwizard and compile your plugin without problem.(cross my finger...
)
P.S. I have not tried to compile my plugin and put it on other computer, so I don't know if I should distribute those dll with my plugin. I will try recently.
Just make a test.
I complied one plugin from Visual C++ 2005 Express.
It worked fine on my computer which has Visual C++ 2005 Express installed on it.
But, It did not work on the one that has no Visual C++ 2005 Express.
Just like James mentioned before, I think that my second computer is lack of some .dll.
I copied mfc80.dll, msvcp80.dll, and msvcr80.dll to that computer, but did not work.
- I tried to put them all into system32 folder -> failed
- I tried to put them all into Maya bin folder -> failed
Does anyone know what else files I shoud copy and where or I should paste them to?
Thanks!!!!
i think its the visual c runtimes thet are missing. They are uysed by teh coimpiler, express or not. Atleast thats my experience i could be worng but all the computers i work on have thet dll
I thought that msvcr80.dll is the runtime dll I need ?!
If it is not, do you know which one I need?
And where I should copy them to?
Hey folks..
I've kept trying, but failed.
It works all fine on the one that has Visual C++ 2005 Express.
I got an Error message evert time I tried to load the plugin in Maya.
CODE
// Error: line 1: Unable to dynamically load : C:/Program Files/Alias/Maya7.0/bin/plug-ins/myFirstPlugIn.mll
I almost copied and pasted every possible dll file to both the bin folder under Maya or the system32 folder under window.
by the way, the one that has 2005 Express on it is XP Home Edition, the other one is XP Professional, does that matter?
HELP!!!
thing is that maya shouldnt work on xp home... It does but ist glitches.
however, the plugin works fine on my XP Home edition......
All the infomation I got right now is that I only need to copy the runtime dll, msvcr80.dll and msvcp80.dll, to the bin folder of Maya. I did that, but failed.
Sigh......
I think I will try
- uninstall 2005 Express from my Home Edition
- install 2005 Express on my Professional Edition
- complie the plugin.
- copy the mll and two run time dll back to home edition
see if this works.... I doubt it though...... but.....
Anyway,
Thanks a lot, guys.
Is your plugin compiled as Debug or Release?
In this thread Daniel_Faust pointed out that if your plugin is compiled as Debug you'll need to include the debug versions of the runtime DLLs (they're named the same as the regular runtime DLLs but with a d at the end).
It's out as a release.
but I will try to copy that dll, see what happen.
Thanks
failed again......
Copy and paste the debug dll did not fix the problem.
I wonder if that is the problem of Window Service Pack.
If I complie the plugin with Visual C++ 2005 Express on WinXP SP2, will that makes my plugin failed to be loaded in on the machine with WinXP SP1?
BTW, I have successfully used CodeBlocks with Visual C++ 2003 Toolkit to build my plugin. It works on both of my computers. But, still, I would like to figure out why it doesn't work with Visual C++ 2005 Express.
..... I don't get it....
It works perfectly on the machine that has Visual C++ 2005 Express and Platform SDK installed.
I guess that means the the plugin is good.
So, there must be some files missing on the other computers.
(It does not mater it's SP1 or SP2)
I'd tried almost every dll in WinSxS folders, I put all in my bin folder under Maya, but failed.
Anybody has any clue?
If you are interested in testing the plugin on your computer.
Here is the link to the simple hello command plugin that I used to test.
Sorry,
forgot to mention that this plugin was complied by
Microsoft Visual C++ 2005 Express for Maya 7.
QUOTE(mnhan32 @ 12/07/05, 04:53 PM)
..... I don't get it....
It works perfectly on the machine that has Visual C++ 2005 Express and Platform SDK installed.
I guess that means the the plugin is good.
So, there must be some files missing on the other computers.
(It does not mater it's SP1 or SP2)
I'd tried almost every dll in WinSxS folders, I put all in my bin folder under Maya, but failed.
Anybody has any clue?
If you are interested in testing the plugin on your computer.
Here is the link to the simple hello command plugin that I used to test.
Sorry,
forgot to mention that this plugin was complied by
Microsoft Visual C++ 2005 Express for Maya 7.
[snapback]221781[/snapback]
Hi,
I just had the problem 2 days ago, then I found this thread, and after some searches, I found the solution :
SImply install the ".NET Framework 2.0 redistributable package" on the other computers, and it will run ^^
(google for .NET Framework 2.0, it's the seconde link if I remember well)
I switched back to VC7 already, using CodeBlocks and Visual C++ 2003 Toolkit.
I will try it, though I can't ask all the clients installing this.
But it's very good to know that.
Thanks for the information.
I'll be attempting the same using MSVS 8.0 2005, on Win 2k, for Maya 7.0. I'll let you know if simply installing the Platform SDK does it.
01/17/06
Just as an update... Installing the platform SDK allowed me to compile and run maya plug-ins. I have not yet attempted to run the .mll on another machine, but for my (educational) purposes it really isn't a concern. When I get the chance, I'll try it on another machine and see if it runs.
THANK YOU SO MUCH FOR CONTRIBUTING TO THIS THREAD!!! I'D BE STUCK OTHERWISE.
Hey mortald,
I am glad that you found something helpful from this thread.
From my tests, as long as you got MSVC 8.0, the mll should work fine.
I'd asked some of friedns trying to load the mll without MSVC8.0, or 2005Express, on their machines, but all failed. As paic pointed out that this problem could be easily solved by simply installing .NET Framework 2.0 on the machine. However, if you find any other way to work around, please do let me know!
Hi everyone,
You can't get the dll working by copying the msvc8 dll on another machine.
You have to install them properly by using a tool given with Visual 8. This tools is not present in the Express Edition.
I d'ont remember the folder location but the tool's name is vcredist_x86.exe for x86 architectures. Juste execute it the target machine.
I think that this tool is emmbedded in the msi packages, thanks to that, these dll are automaticely installed when U install an application with the msi installer.
I hope it helps.
pipoun