Maya2009 API Setup for VS2008

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 04 April 2009   #1
Maya2009 API Setup for VS2008

Hi People

My Name is Sa’ed and i wanna ask a Q if any one can help me i will be very thankful , can any one till me by steps how to setup VS2008 for Maya2009 API ? and if the Plug in wizard didn’t show up in the VS menu is there a way to set it up without re installing Maya2009 Again

thanks

__________________
Ability can take you to the top, but it takes character to keep you there.
 
Old 04 April 2009   #2
here's how it worked for me in VS 2008 Express Edition (no plugin wizard required):

1. create a new empty win32 dll projekt
2. create an empty c++ file
3. set up configuration for project for c/c++ compiler:
- include the maya header files directory (usually c:\program files\autodesk\maya2009\include)
- preprocessor definitions: NT_PLUGIN REQUIRE_IOSTREAM NDEBUG_WINDOWS
4. set up configuration for project for linker:
- change outputfile from dll to mll
- include dependencies OpenMaya.lib OpenMayaUI.lib Foundation.lib
- under commandline add: /export:initializePlugin /export:uninitializePlugin

I think that's it but maybe I forgot something.. just try it. sorry I can't give you the exact names for the configuration but I'm using a german version here - but I'm sure you'll find everything.
 
Old 04 April 2009   #3
cant find that c/c++ configuration propriety in VS2008

thankx bro but ... i really cant find that c/c++ configuration propriety .. the general and preprocessor i saw them in VS2005 but i think it changed in VS2008 .. can any one know how to set c/c++ configuration propriety in VS2008 ?

thankx again Bro ...
__________________
Ability can take you to the top, but it takes character to keep you there.
 
Old 04 April 2009   #4
It's not changed in VS2008 for me.

Just make sure you have a project actually selected in the Solution Explorer before you goto 'Project > Properties'. It's been this way for a while.

The other step missing for the linker setup is to ensure the Additional Library Directories (under Linker > General) includes:

c:\program files\autodesk\maya2009\lib
 
Old 04 April 2009   #5
Quote: thankx bro but ... i really cant find that c/c++ configuration propriety .. the general and preprocessor i saw them in VS2005 but i think it changed in VS2008 .. can any one know how to set c/c++ configuration propriety in VS2008 ?


be sure to add an empty c++ file... otherwise the configuration won´t show up.
 
Old 04 April 2009   #6
Talking :)

it worked !! thankx alot dude ... the proplem was that i didnt add the C/C++ File
__________________
Ability can take you to the top, but it takes character to keep you there.
 
Old 04 April 2009   #7
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 01:03 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.