Hi,
I'm trying to compile OSG 2.9.9 from the SVN but I have some errors with fbx
plugin during compilation:
Code:
[ 84%] Building CXX object
src/osgPlugins/fbx/CMakeFiles/osgdb_fbx.dir/fbxRMesh.o
In file included from
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxReader.h:7,
from
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:26:
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxMaterialToOsgStateSet.h:65:
warning: comma at end of enumerator list
In file included from
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:26:
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxReader.h: In constructor
'OsgFbxReader::OsgFbxReader(fbxsdk_2011_2::KFbxSdkManager&,
fbxsdk_2011_2::KFbxScene&, FbxMaterialToOsgStateSet&, const std::set<const
fbxsdk_2011_2::KFbxNode*, std::less<const fbxsdk_2011_2::KFbxNode*>,
std::allocator<const fbxsdk_2011_2::KFbxNode*> >&, const osgDB::Options&,
OsgFbxReader::AuthoringTool, bool, bool)':
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxReader.h:37: warning:
'OsgFbxReader::authoringTool' will be initialized after
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxReader.h:30: warning:
'bool OsgFbxReader::lightmapTextures'
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxReader.h:47: warning:
when initialized here
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In member
function 'osgDB::ReaderWriter::ReadResult
OsgFbxReader::readMesh(fbxsdk_2011_2::KFbxNode*, fbxsdk_2011_2::KFbxMesh*,
std::vector<StateSetContent, std::allocator<StateSetContent> >&, const char*)':
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:717: warning:
suggest parentheses around assignment used as truth value
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:737: error:
template argument for 'template<class _Alloc> class std::allocator' uses local
type 'OsgFbxReader::readMesh(fbxsdk_2011_2::KFbxNode*,
fbxsdk_2011_2::KFbxMesh*, std::vector<StateSetContent,
std::allocator<StateSetContent> >&, const char*)::PolygonRef'
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:737: error:
trying to instantiate 'template<class _Alloc> class std::allocator'
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:737: error:
template argument 2 is invalid
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:737: error:
invalid type in declaration before ';' token
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:807: error:
request for member 'push_back' in 'polygonRefList', which is of non-class type
'PolygonRefList'
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:840: error:
expected initializer before 'it'
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:841: error: 'it'
was not declared in this scope
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:841: error:
'itEnd' was not declared in this scope
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function 'int
getVertexIndex(const fbxsdk_2011_2::KFbxLayerElementTemplate<T>*, const
fbxsdk_2011_2::KFbxMesh*, int, int, int) [with T = fbxsdk_2011_2::KFbxVector4]':
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:563:
instantiated from here
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning:
enumeration value 'eNONE' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning:
enumeration value 'eBY_EDGE' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning:
enumeration value 'eALL_SAME' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function
'bool layerElementValid(const fbxsdk_2011_2::KFbxLayerElementTemplate<T>*)
[with T = fbxsdk_2011_2::KFbxVector4]':
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:697:
instantiated from here
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:59: warning:
enumeration value 'eINDEX' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function
'bool layerElementValid(const fbxsdk_2011_2::KFbxLayerElementTemplate<T>*)
[with T = fbxsdk_2011_2::KFbxColor]':
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:698:
instantiated from here
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:59: warning:
enumeration value 'eINDEX' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function
'bool layerElementValid(const fbxsdk_2011_2::KFbxLayerElementTemplate<T>*)
[with T = fbxsdk_2011_2::KFbxVector2]':
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:700:
instantiated from here
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:59: warning:
enumeration value 'eINDEX' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function 'int
getPolygonIndex(const fbxsdk_2011_2::KFbxLayerElementTemplate<T>*, int) [with T
= fbxsdk_2011_2::KFbxSurfaceMaterial*]':
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:744:
instantiated from here
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:103: warning:
enumeration value 'eINDEX' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function 'int
getVertexIndex(const fbxsdk_2011_2::KFbxLayerElementTemplate<T>*, const
fbxsdk_2011_2::KFbxMesh*, int, int, int) [with T = fbxsdk_2011_2::KFbxVector2]':
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:121:
instantiated from 'FbxT getElement(const
fbxsdk_2011_2::KFbxLayerElementTemplate<T>*, const fbxsdk_2011_2::KFbxMesh*,
int, int, int) [with FbxT = fbxsdk_2011_2::KFbxVector2]'
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:579:
instantiated from here
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning:
enumeration value 'eNONE' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning:
enumeration value 'eBY_EDGE' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning:
enumeration value 'eALL_SAME' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function 'int
getVertexIndex(const fbxsdk_2011_2::KFbxLayerElementTemplate<T>*, const
fbxsdk_2011_2::KFbxMesh*, int, int, int) [with T = fbxsdk_2011_2::KFbxColor]':
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:121:
instantiated from 'FbxT getElement(const
fbxsdk_2011_2::KFbxLayerElementTemplate<T>*, const fbxsdk_2011_2::KFbxMesh*,
int, int, int) [with FbxT = fbxsdk_2011_2::KFbxColor]'
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:602:
instantiated from here
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning:
enumeration value 'eNONE' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning:
enumeration value 'eBY_EDGE' not handled in switch
/tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning:
enumeration value 'eALL_SAME' not handled in switch
/usr/include/fbxfilesdk/kfbxplugins/kfbxanimcurvenode.h: At global scope:
/usr/include/fbxfilesdk/kfbxplugins/kfbxanimcurvenode.h:342: warning: 'void
fbxsdk_2011_2::CollectAnimFromCurveNode(fbxsdk_2011_2::KFCurve**,
fbxsdk_2011_2::KFCurveNode*, unsigned int, fbxsdk_2011_2::KFbxAnimCurveNode*)'
declared 'static' but never defined
make[2]: *** [src/osgPlugins/fbx/CMakeFiles/osgdb_fbx.dir/fbxRMesh.o] Error 1
make[1]: *** [src/osgPlugins/fbx/CMakeFiles/osgdb_fbx.dir/all] Error 2
make: *** [all] Error 2
I have gcc 4.3.3 on slackware 13 32bit. FBX SDK installed is 2011_2.
Thank you!
Cheers,
Dario[/code]
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30317#30317
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org