MAYA 2013 Plugin Compile error on Ubuntu with gcc4.1.2

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 :


/opt/gcc412/bin/g++412 -c -I. -I.. -I/usr/autodesk/maya2013-x64/include -I/usr/X11R6/include -m64 -O3 -pthread -pipe -D_BOOL -DLINUX_64 -DREQUIRE_IOSTREAM -fPIC -Wno-deprecated -fno-gnu-keywords /home/julien/plugin/deformer.cpp
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/plugin/deformer.cpp:8:
/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/plugin/deformer.cpp:8:
/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