Hi,

I'm trying to compile OSG 2.9.16.77 SVN with FBX 2012.1
on Win7 x64 using Visual Studio 2008. 

FBX-Include: C:/Program Files/Autodesk/FBX/FbxSdk/2012.1/include
FBX-lib: C:/Program 
Files/Autodesk/FBX/FbxSdk/2012.1/lib/vs2008/x86/fbxsdk-2012.1.lib
FBX-libd: C:/Program 
Files/Autodesk/FBX/FbxSdk/2012.1/lib/vs2008/x86/fbxsdk-2012.1d.lib

I get the following link error:

Code:

1>Linking...
1>fbxRAnimation.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>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 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>fbxRMesh.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 "public: __thiscall std::vector<class osg::Vec3d,class 
std::allocator<class osg::Vec3d> >::vector<class osg::Vec3d,class 
std::allocator<class osg::Vec3d> >(void)" 
(??0?$vector@VVec3d@osg@@V?$allocator@VVec3d@osg@@@std@@@std@@QAE@XZ)
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 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>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 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>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 LNK2001: unresolved external symbol "public: static 
class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxCamera::ClassId" 
(?ClassId@KFbxCamera@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxRLight.obj : error LNK2001: unresolved external symbol "public: static 
class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxLight::ClassId" 
(?ClassId@KFbxLight@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static char 
const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sEmissive" 
(?sEmissive@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB)
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 LNK2001: unresolved external symbol "public: static char 
const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sReflection" 
(?sReflection@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB)
1>fbxMaterialToOsgStateSet.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 
__ehhandler$?_Insert@?$_Tree@V?$_Tmap_traits@PBVKFbxSurfaceMaterial@fbxsdk_2012_1@@UStateSetContent@@U?$less@PBVKFbxSurfaceMaterial@fbxsdk_2012_1@@@std@@V?$allocator@U?$pair@QBVKFbxSurfaceMaterial@fbxsdk_2012_1@@UStateSetContent@@@std@@@5@$0A@@std@@@std@@IAE?AViterator@12@_NPAU_Node@?$_Tree_nod@V?$_Tmap_traits@PBVKFbxSurfaceMaterial@fbxsdk_2012_1@@UStateSetContent@@U?$less@PBVKFbxSurfaceMaterial@fbxsdk_2012_1@@@std@@V?$allocator@U?$pair@QBVKFbxSurfaceMaterial@fbxsdk_2012_1@@UStateSetContent@@@std@@@5@$0A@@std@@@2@ABU?$pair@QBVKFbxSurfaceMaterial@fbxsdk_2012_1@@UStateSetContent@@@2@@Z
1>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static char 
const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sTransparentColor" 
(?sTransparentColor@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB)
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 LNK2001: unresolved external symbol "public: static char 
const * const fbxsdk_2012_1::KFbxSurfaceMaterial::sDiffuse" 
(?sDiffuse@KFbxSurfaceMaterial@fbxsdk_2012_1@@2PBDB)
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>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static 
class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxBlendShape::ClassId" 
(?ClassId@KFbxBlendShape@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static 
class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxMesh::ClassId" 
(?ClassId@KFbxMesh@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>ReaderWriterFBX.obj : error LNK2001: unresolved external symbol "public: 
static class fbxsdk_2012_1::KFbxAxisSystem const 
fbxsdk_2012_1::KFbxAxisSystem::OpenGL" 
(?OpenGL@KFbxAxisSystem@fbxsdk_2012_1@@2V12@B)
1>ReaderWriterFBX.obj : error LNK2001: unresolved external symbol "public: 
static class fbxsdk_2012_1::kFbxClassId fbxsdk_2012_1::KFbxGeometry::ClassId" 
(?ClassId@KFbxGeometry@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol 
"public: static class fbxsdk_2012_1::kFbxClassId 
fbxsdk_2012_1::KFbxFileTexture::ClassId" 
(?ClassId@KFbxFileTexture@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol 
"public: static class fbxsdk_2012_1::kFbxClassId 
fbxsdk_2012_1::KFbxSurfaceLambert::ClassId" 
(?ClassId@KFbxSurfaceLambert@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol 
"public: static class fbxsdk_2012_1::kFbxClassId 
fbxsdk_2012_1::KFbxSurfacePhong::ClassId" 
(?ClassId@KFbxSurfacePhong@fbxsdk_2012_1@@2VkFbxClassId@2@A)
1>C:\Users\aardanza\Documents\OSG\osg\build\bin\osgPlugins-2.9.16\osgdb_fbxd.dll
 : fatal error LNK1120: 17 unresolved externals




If I use FBX SDK 2011.3.1 I gel compile errors...
What I'm doing wrong?

Thank you!

Cheers,
Aitor

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=40521#40521





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to