|
Hi~ maya programmers
We came across this problem when loading a deformer node plug-in
Say our plug-in is named myDeformer
So far we can identify 3 cases cause this problem
1. open a maya file which has require “myDeformer”, it is supposed to be auto-load but always fails with the error message as that in title
2. maya -prompt -command “loadPlugin \"myDeformer\"”. The same error happens
3. Manually load “myDeformer” in maya plug-in manager. Most of the time the plug-in can be load with no problem, but sometimes the error takes place unexpectedly
The strange thing is:
once if case 1 and case 2 occur, then case 3 will always get error. But if we remove the userPrefs.mel in our maya prefs dir. case 3 works again. We don’t know how userPrefs.mel relates to this problem
From the error message we know it’s about that maya may not find the file libOpenMayaAnim.so (which defines the class MPxDeformerNode, if we didn’t misunderstand API doc). But we’ve tried force the LD_LIBRARY_PATH to /usr/autodesk/maya2011-x64/lib then open maya and it still doesn’t work
I compiled the plug-in and loaded it on Ubuntu 10.04 x86_64 maya2011, and my partner on Ubuntu 8.04 x86_64 maya2011, both g++-4.1.
We also built another plugin which is a custom MPxNode with the same compile configuration. And it can be loaded in maya with no problem.
Now we really have no clue to solve this problem
Does anyone has the same experience or any idea to trace the cause of this problem ?
forward appreciated
And sorry if my poor English
yglin@RD,digimax,TW
|