Hi,

I'm having problems building osg 2.9.11.71 with support for fbx. By building 
with visual studio 2008 skips the below linking error:


Code:
Linking...
10>fbxRAnimation.obj : error LNK2001: unresolved external symbol "private: 
static void (__cdecl* fbxsdk_2011_3_1::KFbxAnimCurveKey::mDeallocatorFct)(class 
fbxsdk_2011_3_1::KFbxAnimCurveKeyImpl *)" 
(?mDeallocatorFct@KFbxAnimCurveKey@fbxsdk_2011_3_1@@0P6AXPAVKFbxAnimCurveKeyImpl@2@@ZA)
10>fbxRMesh.obj : error LNK2019: unresolved external symbol "private: static 
void (__cdecl* fbxsdk_2011_3_1::KFbxAnimCurveKey::mDeallocatorFct)(class 
fbxsdk_2011_3_1::KFbxAnimCurveKeyImpl *)" 
(?mDeallocatorFct@KFbxAnimCurveKey@fbxsdk_2011_3_1@@0P6AXPAVKFbxAnimCurveKeyImpl@2@@ZA)
 referenced in function "class osg::Geometry * __cdecl getGeometry(class 
osg::Geode *,class std::map<unsigned int,class osg::ref_ptr<class 
osg::Geometry>,struct std::less<unsigned int>,class std::allocator<struct 
std::pair<unsigned int const ,class osg::ref_ptr<class osg::Geometry> > > > 
&,class std::vector<struct StateSetContent,class std::allocator<struct 
StateSetContent> > &,enum GeometryType,unsigned 
int,bool,bool,bool,bool,bool,class osgDB::Options const &,bool)" 
(?getGeometry@@YAPAVGeometry@osg@@PAVGeode@2@AAV?$map@IV?$ref_ptr@VGeometry@osg@@@osg@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIV?$ref_ptr@VGeometry@osg@@@osg@@@std@@@4@@std@@AAV?$vector@UStateSetContent@@V?$allocator@UStateSetContent@@@s
 td@@@5@W4GeometryType@@I_N4444ABVOptions@osgDB@@4@Z)
10>fbxRAnimation.obj : error LNK2001: unresolved external symbol "public: 
static class fbxsdk_2011_3_1::kFbxClassId 
fbxsdk_2011_3_1::KFbxAnimStack::ClassId" 
(?ClassId@KFbxAnimStack@fbxsdk_2011_3_1@@2VkFbxClassId@2@A)
10>fbxRMesh.obj : error LNK2019: unresolved external symbol "public: static 
class fbxsdk_2011_3_1::kFbxClassId fbxsdk_2011_3_1::KFbxAnimStack::ClassId" 
(?ClassId@KFbxAnimStack@fbxsdk_2011_3_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)
10>fbxRAnimation.obj : error LNK2001: unresolved external symbol "public: 
static class fbxsdk_2011_3_1::kFbxClassId 
fbxsdk_2011_3_1::KFbxAnimLayer::ClassId" 
(?ClassId@KFbxAnimLayer@fbxsdk_2011_3_1@@2VkFbxClassId@2@A)
10>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static 
class fbxsdk_2011_3_1::kFbxClassId fbxsdk_2011_3_1::KFbxAnimLayer::ClassId" 
(?ClassId@KFbxAnimLayer@fbxsdk_2011_3_1@@2VkFbxClassId@2@A)
10>fbxRAnimation.obj : error LNK2001: unresolved external symbol "public: 
static class fbxsdk_2011_3_1::kFbxClassId 
fbxsdk_2011_3_1::KFbxAnimCurve::ClassId" 
(?ClassId@KFbxAnimCurve@fbxsdk_2011_3_1@@2VkFbxClassId@2@A)
10>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static 
char const * const fbxsdk_2011_3_1::KFbxSurfaceMaterial::sEmissive" 
(?sEmissive@KFbxSurfaceMaterial@fbxsdk_2011_3_1@@2PBDB)
10>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol 
"public: static char const * const 
fbxsdk_2011_3_1::KFbxSurfaceMaterial::sEmissive" 
(?sEmissive@KFbxSurfaceMaterial@fbxsdk_2011_3_1@@2PBDB)
10>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static 
char const * const fbxsdk_2011_3_1::KFbxSurfaceMaterial::sReflection" 
(?sReflection@KFbxSurfaceMaterial@fbxsdk_2011_3_1@@2PBDB)
10>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol 
"public: static char const * const 
fbxsdk_2011_3_1::KFbxSurfaceMaterial::sReflection" 
(?sReflection@KFbxSurfaceMaterial@fbxsdk_2011_3_1@@2PBDB)
10>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static 
char const * const fbxsdk_2011_3_1::KFbxSurfaceMaterial::sTransparentColor" 
(?sTransparentColor@KFbxSurfaceMaterial@fbxsdk_2011_3_1@@2PBDB)
10>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol 
"public: static char const * const 
fbxsdk_2011_3_1::KFbxSurfaceMaterial::sTransparentColor" 
(?sTransparentColor@KFbxSurfaceMaterial@fbxsdk_2011_3_1@@2PBDB)
10>fbxRMesh.obj : error LNK2001: unresolved external symbol "public: static 
char const * const fbxsdk_2011_3_1::KFbxSurfaceMaterial::sDiffuse" 
(?sDiffuse@KFbxSurfaceMaterial@fbxsdk_2011_3_1@@2PBDB)
10>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol 
"public: static char const * const 
fbxsdk_2011_3_1::KFbxSurfaceMaterial::sDiffuse" 
(?sDiffuse@KFbxSurfaceMaterial@fbxsdk_2011_3_1@@2PBDB)
10>ReaderWriterFBX.obj : error LNK2001: unresolved external symbol "public: 
static class fbxsdk_2011_3_1::KFbxAxisSystem const 
fbxsdk_2011_3_1::KFbxAxisSystem::OpenGL" 
(?OpenGL@KFbxAxisSystem@fbxsdk_2011_3_1@@2V12@B)
10>fbxMaterialToOsgStateSet.obj : error LNK2001: unresolved external symbol 
"public: static class fbxsdk_2011_3_1::kFbxClassId 
fbxsdk_2011_3_1::KFbxTexture::ClassId" 
(?ClassId@KFbxTexture@fbxsdk_2011_3_1@@2VkFbxClassId@2@A)
10>C:\Documents and Settings\aardanza\My 
Documents\OSG\osg\build\bin\osgPlugins-2.9.11\osgdb_fbxd.dll : fatal error 
LNK1120: 10 unresolved externals



I think I've set correctly the directory and FBX libraries in cmake (include 
dir,  fbx lib and debug lib). I'm missing something else?

Thank you!

Cheers,
Aitor

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





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

Reply via email to