Sign in to follow this  

Maya 8 API troubles...

This topic is 3768 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have downloaded Maya PLE so that I can use it to do basic model testing with my engine with my custom 3d mesh file. Issue is while writing the Exporter using tutorials for maya exporters, I ended up with linker errors that dont make any sense. The error is quoted below but to save time reading it. It is perty much saying all the functions from Maya's API suffering external errors. Now I have Linked the Maya/libs I have linked the Maya/include I have Linked the DLL. What else would be missing. I ever tried putting the DLL in the same folder as the compiler. Anyone know what I missed. Anyone actauly familar with Maya API?
Quote:
1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MPxFileTranslator::MPxFileTranslator(void)" (__imp_??0MPxFileTranslator@@QAE@XZ) referenced in function "public: __thiscall MayaFileTranslator::MayaFileTranslator(void)" (??0MayaFileTranslator@@QAE@XZ) 1>MayaFileTranslator.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall MPxFileTranslator::haveNamespaceSupport(void)const " (?haveNamespaceSupport@MPxFileTranslator@@UBE_NXZ) 1>MayaFileTranslator.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall MPxFileTranslator::haveReferenceMethod(void)const " (?haveReferenceMethod@MPxFileTranslator@@UBE_NXZ) 1>MayaFileTranslator.obj : error LNK2001: unresolved external symbol "public: virtual class MString __thiscall MPxFileTranslator::filter(void)const " (?filter@MPxFileTranslator@@UBE?AVMString@@XZ) 1>MayaFileTranslator.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall MPxFileTranslator::canBeOpened(void)const " (?canBeOpened@MPxFileTranslator@@UBE_NXZ) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall MPxFileTranslator::~MPxFileTranslator(void)" (__imp_??1MPxFileTranslator@@UAE@XZ) referenced in function "public: virtual __thiscall MayaFileTranslator::~MayaFileTranslator(void)" (??1MayaFileTranslator@@UAE@XZ) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MStatus::MStatus(enum MStatus::MStatusCode)" (__imp_??0MStatus@@QAE@W4MStatusCode@0@@Z) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::reader(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?reader@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall MItDependencyNodes::~MItDependencyNodes(void)" (__imp_??1MItDependencyNodes@@UAE@XZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall MFnDependencyNode::~MFnDependencyNode(void)" (__imp_??1MFnDependencyNode@@UAE@XZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall MObject::apiTypeStr(void)const " (__imp_?apiTypeStr@MObject@@QBEPBDXZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MString __thiscall MFnDependencyNode::name(class MStatus *)const " (__imp_?name@MFnDependencyNode@@QBE?AVMString@@PAVMStatus@@@Z) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MObject::~MObject(void)" (__imp_??1MObject@@QAE@XZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaMain.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall MObject::~MObject(void)" (__imp_??1MObject@@QAE@XZ) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MFnDependencyNode::MFnDependencyNode(class MObject const &,class MStatus *)" (__imp_??0MFnDependencyNode@@QAE@ABVMObject@@PAVMStatus@@@Z) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MObject __thiscall MItDependencyNodes::item(class MStatus *)const " (__imp_?item@MItDependencyNodes@@QBE?AVMObject@@PAVMStatus@@@Z) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall MItDependencyNodes::isDone(class MStatus *)const " (__imp_?isDone@MItDependencyNodes@@QBE_NPAVMStatus@@@Z) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MStatus __thiscall MItDependencyNodes::next(void)" (__imp_?next@MItDependencyNodes@@QAE?AVMStatus@@XZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MItDependencyNodes::MItDependencyNodes(enum MFn::Type,class MStatus *)" (__imp_??0MItDependencyNodes@@QAE@W4Type@MFn@@PAVMStatus@@@Z) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MString::~MString(void)" (__imp_??1MString@@QAE@XZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaMain.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall MString::~MString(void)" (__imp_??1MString@@QAE@XZ) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall MString::asChar(void)const " (__imp_?asChar@MString@@QBEPBDXZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MString __thiscall MFileObject::fullName(void)const " (__imp_?fullName@MFileObject@@QBE?AVMString@@XZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MStringArray::~MStringArray(void)" (__imp_??1MStringArray@@QAE@XZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall MString::asInt(void)const " (__imp_?asInt@MString@@QBEHXZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall MString::operator==(class MString const &)const " (__imp_??8MString@@QBE_NABV0@@Z) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MString & __thiscall MStringArray::operator[](unsigned int)" (__imp_??AMStringArray@@QAEAAVMString@@I@Z) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MStatus __thiscall MStringArray::clear(void)" (__imp_?clear@MStringArray@@QAE?AVMStatus@@XZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall MStringArray::length(void)const " (__imp_?length@MStringArray@@QBEIXZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MStatus __thiscall MString::split(char,class MStringArray &)const " (__imp_?split@MString@@QBE?AVMStatus@@DAAVMStringArray@@@Z) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MStringArray::MStringArray(void)" (__imp_??0MStringArray@@QAE@XZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall MString::length(void)const " (__imp_?length@MString@@QBEIXZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MString::MString(char const *)" (__imp_??0MString@@QAE@PBD@Z) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaMain.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall MString::MString(char const *)" (__imp_??0MString@@QAE@PBD@Z) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MStatus::MStatus(void)" (__imp_??0MStatus@@QAE@XZ) referenced in function "public: virtual class MStatus __thiscall MayaFileTranslator::writer(class MFileObject const &,class MString const &,enum MPxFileTranslator::FileAccessMode)" (?writer@MayaFileTranslator@@UAE?AVMStatus@@ABVMFileObject@@ABVMString@@W4FileAccessMode@MPxFileTranslator@@@Z) 1>MayaMain.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall MStatus::MStatus(void)" (__imp_??0MStatus@@QAE@XZ) 1>MayaFileTranslator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MString __thiscall MFileObject::name(void)const " (__imp_?name@MFileObject@@QBE?AVMString@@XZ) referenced in function "public: virtual enum MPxFileTranslator::MFileKind __thiscall MayaFileTranslator::identifyFile(class MFileObject const &,char const *,short)const " (?identifyFile@MayaFileTranslator@@UBE?AW4MFileKind@MPxFileTranslator@@ABVMFileObject@@PBDF@Z) 1>MayaMain.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall MFnPlugin::~MFnPlugin(void)" (__imp_??1MFnPlugin@@UAE@XZ) referenced in function "class MStatus __cdecl initializePlugin(class MObject)" (?initializePlugin@@YA?AVMStatus@@VMObject@@@Z) 1>MayaMain.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MStatus::MStatus(class MStatus const &)" (__imp_??0MStatus@@QAE@ABV0@@Z) referenced in function "class MStatus __cdecl initializePlugin(class MObject)" (?initializePlugin@@YA?AVMStatus@@VMObject@@@Z) 1>MayaMain.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall MStatus::perror(char const *)const " (__imp_?perror@MStatus@@QBEXPBD@Z) referenced in function "class MStatus __cdecl initializePlugin(class MObject)" (?initializePlugin@@YA?AVMStatus@@VMObject@@@Z) 1>MayaMain.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall MStatus::operator!=(enum MStatus::MStatusCode)const " (__imp_??9MStatus@@QBE_NW4MStatusCode@0@@Z) referenced in function "class MStatus __cdecl initializePlugin(class MObject)" (?initializePlugin@@YA?AVMStatus@@VMObject@@@Z) 1>MayaMain.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MStatus & __thiscall MStatus::operator=(class MStatus const &)" (__imp_??4MStatus@@QAEAAV0@ABV0@@Z) referenced in function "class MStatus __cdecl initializePlugin(class MObject)" (?initializePlugin@@YA?AVMStatus@@VMObject@@@Z) 1>MayaMain.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MStatus __thiscall MFnPlugin::registerFileTranslator(class MString const &,char *,void * (__cdecl*)(void),char *,char *,bool)" (__imp_?registerFileTranslator@MFnPlugin@@QAE?AVMStatus@@ABVMString@@PADP6APAXXZ11_N@Z) referenced in function "class MStatus __cdecl initializePlugin(class MObject)" (?initializePlugin@@YA?AVMStatus@@VMObject@@@Z) 1>MayaMain.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MFnPlugin::MFnPlugin(class MObject &,char const *,char const *,char const *,class MStatus *)" (__imp_??0MFnPlugin@@QAE@AAVMObject@@PBD11PAVMStatus@@@Z) referenced in function "class MStatus __cdecl initializePlugin(class MObject)" (?initializePlugin@@YA?AVMStatus@@VMObject@@@Z) 1>MayaMain.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MStatus __thiscall MFnPlugin::deregisterFileTranslator(class MString const &)" (__imp_?deregisterFileTranslator@MFnPlugin@@QAE?AVMStatus@@ABVMString@@@Z) referenced in function "class MStatus __cdecl uninitializePlugin(class MObject)" (?uninitializePlugin@@YA?AVMStatus@@VMObject@@@Z) 1>SimpleExporterPlugin.mll : fatal error LNK1120: 40 unresolved externals

Share this post


Link to post
Share on other sites
No real idea but once i compiled an Cal3D export plugin with this settings

linker: "Foundation.lib OpenMaya.lib OpenMayaAnim.lib"
includes: "X:\Maya8.5\include\maya"

You probably need to read the doc and see in which lib those functions are, since there're 19 different in 8.5

Share this post


Link to post
Share on other sites
From the Maya site:

* The API developer's kit is not included with Autodesk Maya Personal Learning Edition.

* It is not possible to load plug-ins from the commercial version of Autodesk Maya or third party plug-ins or other versions of Autodesk Maya Personal Learning Edition.


I'm not sure how you've actually managed to get as far as compiling, let alone linking? You shouldn't have any includes or libs with the install of Maya PLE. You don't happen to have another copy lying about as an install do you? It seems to be finding some header files for the API (Or the example you are working from contains the pre-compiled .obj files maybe?). It's not however able to find the libraries, but then you shouldn't have those anyway with PLE....

Share this post


Link to post
Share on other sites
It's the lib folder you are lacking maybe? That's where you normally find the openMaya.lib etc. Without that it doesn't matter if you have the includes. I'd still be very suprised if this was at all possible. If you provide the API for Maya, then it is possible to subvert all restrictions placed on it's usage (i.e. the watermarks, in-ability to export models etc). I'm still certain that you will not be able to do anything with Maya API unless you have the full version.

Share this post


Link to post
Share on other sites

This topic is 3768 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this