Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / Undefined symbol: _ZNK15MPxDeformerNode4typeEv when load our custom plug-in?
  RSS 2.0 ATOM  

Undefined symbol: _ZNK15MPxDeformerNode4typeEv when load our custom plug-in?
Rate this thread
 
56305
 
Permlink of this thread  
avatar
  • yglin
  • Posted: 27 May 2011 12:50 AM
  • Total Posts: 2
  • Joined: 09 March 2010 04:47 AM

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



Replies: 0
avatar
  • yglin
  • Posted: 13 June 2011 03:00 PM

Problem solved with adding -lOpenMayaAnim to the CXXFLAG,
but still we have no idea how does userPref.mel get involved in this, phew~



Replies: 0