Community
Maya Programming
Welcome to Autodeskā€™s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Custom C++ plugin which uses a different version of Qt than Maya?

2 REPLIES 2
Reply
Message 1 of 3
Xiougks
378 Views, 2 Replies

Custom C++ plugin which uses a different version of Qt than Maya?

I must port a C++ legacy plugin from Maya 8.5 to Maya 2013, let's call it myPlugin.mll. I also have a short script MEL file which calls that MLL.

It compiles successfully for Maya 2013 with MS2008.

However when trying to load the plugin into Maya, it says:


// Error: line 1: The specified procedure could not be found.

 

I understand that it may have to do with the DLL dependencies.

 

I noticed with DependencyWalker that myPlugin.mll depends on OpenMaya.dll which in turns depends on the QtCore4.dll which is shipped with Maya (in the bin folder).
However the legacy code depends on another QtCore4.dll .
The two versions of that library are slightly different.


I tried changing my PATH and have myPlugin.mll find one or the other DLL, but either way there is allways a function referenced by an unexisting symbol. I tried to replace the Qt DLL's in Maya with mine, but Maya did not like that!

 

How to get around this?

Thanks in advance for some ideas šŸ™‚

 

 

Refs: I have read the thread http://forums.cgsociety.org/archive/index.php/t-1055408.html which inspired me to look for the dependencies.

2 REPLIES 2
Message 2 of 3
vijaya.prakash
in reply to: Xiougks

Hi,

 

Try to compile your mll file usinf VS2010.

 

Thanks,

Vijaya Prakash.

Message 3 of 3
Xiougks
in reply to: vijaya.prakash

Thank Prakash.

Unfortunately it is not possible to compile the legacy code in VS2010.

But good point, I assumed the problem being the conflicting library versions, while it may simply be that Maya needs the 2010 compiler.

The way I'm working around the problem is by re-writing a new self-contained plugin, that does not need the legacy code nor Qt.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report