查看: 3923|回复: 2

fbx插件编译问题

[复制链接]

该用户从未签到

发表于 2011-7-15 15:17:33 | 显示全部楼层 |阅读模式
用osg3.0 和fbxSDK2012.1编译fbx插件出现链接错误,版本对应都对,库也没问题,怎么会出现链接错误呢?osg3.0应该更新到支持2012.1了啊




Linking...
1>fbxRAnimation.obj : error LNK2019: unresolved external symbol "private: static void (__cdecl* fbxsdk_2012_1::KFbxAnimCurveKey::mDeallocatorFct)(class fbxsdk_2012_1::KFbxAnimCurveKeyImpl *)" (?mDeallocatorFct@KFbxAnimCurveKey@fbxsdk_2012_1@@0P6AXPAVKFbxAnimCurveKeyImpl@2@@ZA) referenced in function "public: virtual __thiscall fbxsdk_2012_1::KFbxAnimCurveKey::~KFbxAnimCurveKey(void)" (??1KFbxAnimCurveKey@fbxsdk_2012_1@@UAE@XZ)
1>fbxRMesh.obj : error LNK2001: unresolved external symbol "private: static void (__cdecl* fbxsdk_2012_1::KFbxAnimCurveKey::mDeallocatorFct)(class fbxsdk_2012_1::KFbxAnimCurveKeyImpl *)" (?mDeallocatorFct@KFbxAnimCurveKey@fbxsdk_2012_1@@0P6AXPAVKFbxAnimCurveKeyImpl@2@@ZA)
1>fbxRAnimation.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxAnimStack::ClassId" (?ClassId@KFbxAnimStack@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "class fbxsdk_2012_1::KFbxAnimStack * __cdecl fbxsdk_2012_1::KFbxCast<class fbxsdk_2012_1::KFbxAnimStack>(class fbxsdk_2012_1::KFbxPlug *)" (??$KFbxCast@VKFbxAnimStack@fbxsdk_2012_1@@@fbxsdk_2012_1@@YAPAVKFbxAnimStack@0@PAVKFbxPlug@0@@Z)
1>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxAnimStack::ClassId" (?ClassId@KFbxAnimStack@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxRNode.obj : error LNK2001: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxAnimStack::ClassId" (?ClassId@KFbxAnimStack@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxRAnimation.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxAnimLayer::ClassId" (?ClassId@KFbxAnimLayer@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "public: int __thiscall fbxsdk_2012_1::KFbxCollection::GetMemberCount<class fbxsdk_2012_1::KFbxAnimLayer>(class fbxsdk_2012_1::KFbxAnimLayer const *)const " (??$GetMemberCount@VKFbxAnimLayer@fbxsdk_2012_1@@@KFbxCollection@fbxsdk_2012_1@@QBEHPBVKFbxAnimLayer@1@@Z)
1>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxAnimLayer::ClassId" (?ClassId@KFbxAnimLayer@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxRNode.obj : error LNK2001: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxAnimLayer::ClassId" (?ClassId@KFbxAnimLayer@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxRAnimation.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxAnimCurve::ClassId" (?ClassId@KFbxAnimCurve@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "class fbxsdk_2012_1::KFbxAnimCurve * __cdecl fbxsdk_2012_1::KFbxCast<class fbxsdk_2012_1::KFbxAnimCurve>(class fbxsdk_2012_1::KFbxPlug *)" (??$KFbxCast@VKFbxAnimCurve@fbxsdk_2012_1@@@fbxsdk_2012_1@@YAPAVKFbxAnimCurve@0@PAVKFbxPlug@0@@Z)
1>fbxRNode.obj : error LNK2001: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxAnimCurve::ClassId" (?ClassId@KFbxAnimCurve@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxRCamera.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxCamera::ClassId" (?ClassId@KFbxCamera@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "class fbxsdk_2012_1::KFbxCamera * __cdecl fbxsdk_2012_1::KFbxCast<class fbxsdk_2012_1::KFbxCamera>(class fbxsdk_2012_1::KFbxPlug *)" (??$KFbxCast@VKFbxCamera@fbxsdk_2012_1@@@fbxsdk_2012_1@@YAPAVKFbxCamera@0@PAVKFbxPlug@0@@Z)
1>fbxRLight.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxLight::ClassId" (?ClassId@KFbxLight@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "class fbxsdk_2012_1::KFbxLight * __cdecl fbxsdk_2012_1::KFbxCast<class fbxsdk_2012_1::KFbxLight>(class fbxsdk_2012_1::KFbxPlug *)" (??$KFbxCast@VKFbxLight@fbxsdk_2012_1@@@fbxsdk_2012_1@@YAPAVKFbxLight@0@PAVKFbxPlug@0@@Z)
1>fbxRMesh.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxBlendShape::ClassId" (?ClassId@KFbxBlendShape@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "class fbxsdk_2012_1::KFbxBlendShape * __cdecl fbxsdk_2012_1::KFbxCast<class fbxsdk_2012_1::KFbxBlendShape>(class fbxsdk_2012_1::KFbxPlug *)" (??$KFbxCast@VKFbxBlendShape@fbxsdk_2012_1@@@fbxsdk_2012_1@@YAPAVKFbxBlendShape@0@PAVKFbxPlug@0@@Z)
1>fbxRMesh.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxMesh::ClassId" (?ClassId@KFbxMesh@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "class fbxsdk_2012_1::KFbxMesh * __cdecl fbxsdk_2012_1::KFbxCast<class fbxsdk_2012_1::KFbxMesh>(class fbxsdk_2012_1::KFbxPlug *)" (??$KFbxCast@VKFbxMesh@fbxsdk_2012_1@@@fbxsdk_2012_1@@YAPAVKFbxMesh@0@PAVKFbxPlug@0@@Z)
1>fbxRMesh.obj : error LNK2019: unresolved external symbol "public: static char const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sEmissive" (?sEmissive@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl getUVChannelForTextureMap(class std::vector<struct StateSetContent,class std::allocator<struct StateSetContent> > &,char const *)" (?getUVChannelForTextureMap@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV?$vector@UStateSetContent@@V?$allocator@UStateSetContent@@@std@@@2@PBD@Z)
1>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol "public: static char const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sEmissive" (?sEmissive@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB)
1>fbxRMesh.obj : error LNK2019: unresolved external symbol "public: static char const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sReflection" (?sReflection@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl getUVChannelForTextureMap(class std::vector<struct StateSetContent,class std::allocator<struct StateSetContent> > &,char const *)" (?getUVChannelForTextureMap@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV?$vector@UStateSetContent@@V?$allocator@UStateSetContent@@@std@@@2@PBD@Z)
1>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol "public: static char const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sReflection" (?sReflection@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB)
1>fbxRMesh.obj : error LNK2019: unresolved external symbol "public: static char const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sTransparentColor" (?sTransparentColor@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl getUVChannelForTextureMap(class std::vector<struct StateSetContent,class std::allocator<struct StateSetContent> > &,char const *)" (?getUVChannelForTextureMap@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV?$vector@UStateSetContent@@V?$allocator@UStateSetContent@@@std@@@2@PBD@Z)
1>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol "public: static char const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sTransparentColor" (?sTransparentColor@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB)
1>fbxRMesh.obj : error LNK2019: unresolved external symbol "public: static char const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sDiffuse" (?sDiffuse@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl getUVChannelForTextureMap(class std::vector<struct StateSetContent,class std::allocator<struct StateSetContent> > &,char const *)" (?getUVChannelForTextureMap@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV?$vector@UStateSetContent@@V?$allocator@UStateSetContent@@@std@@@2@PBD@Z)
1>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol "public: static char const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sDiffuse" (?sDiffuse@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB)
1>ReaderWriterFBX.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxGeometry::ClassId" (?ClassId@KFbxGeometry@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "class fbxsdk_2012_1::KFbxGeometry * __cdecl fbxsdk_2012_1::KFbxCast<class fbxsdk_2012_1::KFbxGeometry>(class fbxsdk_2012_1::KFbxPlug *)" (??$KFbxCast@VKFbxGeometry@fbxsdk_2012_1@@@fbxsdk_2012_1@@YAPAVKFbxGeometry@0@PAVKFbxPlug@0@@Z)
1>ReaderWriterFBX.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::KFbxAxisSystem const fbxsdk_2012_1::KFbxAxisSystem::OpenGL" (?OpenGL@KFbxAxisSystem@fbxsdk_2012_1@@2V12@B) referenced in function "public: virtual class osgDB::ReaderWriter::ReadResult __thiscall ReaderWriterFBX::readNode(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osgDB::Options const *)const " (?readNode@ReaderWriterFBX@@UBE?AVReadResult@ReaderWriter@osgDB@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBVOptions@4@@Z)
1>fbxMaterialToOsgStateSet.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxSurfaceLambert::ClassId" (?ClassId@KFbxSurfaceLambert@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "class fbxsdk_2012_1::KFbxSurfaceLambert const * __cdecl fbxsdk_2012_1::KFbxCast<class fbxsdk_2012_1::KFbxSurfaceLambert>(class fbxsdk_2012_1::KFbxPlug const *)" (??$KFbxCast@VKFbxSurfaceLambert@fbxsdk_2012_1@@@fbxsdk_2012_1@@YAPBVKFbxSurfaceLambert@0@PBVKFbxPlug@0@@Z)
1>fbxMaterialToOsgStateSet.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxFileTexture::ClassId" (?ClassId@KFbxFileTexture@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "class fbxsdk_2012_1::KFbxFileTexture * __cdecl fbxsdk_2012_1::KFbxCast<class fbxsdk_2012_1::KFbxFileTexture>(class fbxsdk_2012_1::KFbxPlug *)" (??$KFbxCast@VKFbxFileTexture@fbxsdk_2012_1@@@fbxsdk_2012_1@@YAPAVKFbxFileTexture@0@PAVKFbxPlug@0@@Z)
1>fbxMaterialToOsgStateSet.obj : error LNK2019: unresolved external symbol "public: static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxSurfacePhong::ClassId" (?ClassId@KFbxSurfacePhong@fbxsdk_2012_1@@2VkFbxClassId@2@A) referenced in function "class fbxsdk_2012_1::KFbxSurfacePhong const * __cdecl fbxsdk_2012_1::KFbxCast<class fbxsdk_2012_1::KFbxSurfacePhong>(class fbxsdk_2012_1::KFbxPlug const *)" (??$KFbxCast@VKFbxSurfacePhong@fbxsdk_2012_1@@@fbxsdk_2012_1@@YAPBVKFbxSurfacePhong@0@PBVKFbxPlug@0@@Z)
1>D:\OpenSourceUsing\OpenSceneGraph-3.0\build2008\bin\osgPlugins-3.0.0\osgdb_fbx.dll : fatal error LNK1120: 17 unresolved externals
1>Build log was saved at "file://d:\OpenSourceUsing\OpenSceneGraph-3.0\build2008\src\osgPlugins\fbx\osgdb_fbx.dir\Release\BuildLog.htm"
1>Plugins fbx - 28 error(s), 0 warning(s)

该用户从未签到

 楼主| 发表于 2011-7-15 15:25:46 | 显示全部楼层
已解决,用md库就没问题了,不知fbxsdk-2012.1 fbxsdk-2012.1md fbxsdk-2012.1mt有何区别

该用户从未签到

发表于 2011-7-15 16:57:08 | 显示全部楼层
OSG就是dynamic multithread的,因此您也必须用相应RTTI的依赖库
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表