jujut
Hello,

I am on Linux Ubuntu 10.4 with Maya2013 SP2 and gcc4.1.2.
I tried to compile a custom deformer plugin : deformer.cpp

I 've already compil my plugin in windows without problem.

But under linux i've the following error :

julien@julien:~$ /opt/gcc412/bin/g++412 /home/julien/Documents/deformer.cpp -o /home/julien/Documents/deformer.so -I/usr/autodesk/maya2013-x64/include -L/usr/autodesk/maya2013-x64/lib -Wno-deprecated -DREQUIRE_IOSTREAM
In file included from /usr/autodesk/maya2013-x64/include/maya/M3dView.h:50,
                 from /usr/autodesk/maya2013-x64/include/maya/MPxLocatorNode.h:52,
                 from /home/julien/Documents/deformer.cpp:9:
/usr/autodesk/maya2013-x64/include/maya/MNativeWindowHdl.h:82:3: error: #error Unsupported platform.
In file included from /usr/autodesk/maya2013-x64/include/maya/MPxLocatorNode.h:52,
                 from /home/julien/Documents/deformer.cpp:9:
/usr/autodesk/maya2013-x64/include/maya/M3dView.h:84:2: error: #error Unknown OS
/usr/autodesk/maya2013-x64/include/maya/M3dView.h:266: error: ‘MGLContext’ does not name a type
/usr/autodesk/maya2013-x64/include/maya/M3dView.h:274: error: ‘MNativeWindowHdl’ does not name a type
/usr/autodesk/maya2013-x64/include/maya/M3dView.h:277: error: ‘MNativeWindowHdl’ does not name a type
/usr/autodesk/maya2013-x64/include/maya/M3dView.h:294: error: ‘GLuint’ has not been declared
/usr/autodesk/maya2013-x64/include/maya/M3dView.h:294: error: ‘GLsizei’ has not been declared
/usr/autodesk/maya2013-x64/include/maya/M3dView.h:295: error: ‘GLint’ does not name a type
/usr/autodesk/maya2013-x64/include/maya/M3dView.h:298: error: ‘GLuint’ has not been declared
/usr/autodesk/maya2013-x64/include/maya/M3dView.h:299: error: ‘GLuint’ has not been declared



Anybody know how to fix this issues?

when i test with the helloWorld.cpp exemple given on the API helpdocs : http://docs.autodesk.com/MAYAUL/201...tion/index.html
It's working fine.

But the problem comeback again in the helloWorld.cpp exemple when i include this :
#include <maya/MPxLocatorNode.h>

Thanks







pshipkov
hard to say really.
these messages spell trouble to me :)
Reply 0 0
jujut
Problem resolved.

My mistake was to use -DLINUX_64 flags instead of -DLINUX only ...

Plugin can now be compiled
Reply 0 0
Reply