[osg-users] [osgPlugins] fbx plugin compile error

Pelle Nordqvist nordqvist at gmail.com
Tue Jun 21 05:31:00 PDT 2016


Hi Robert, I grabbed the latest master today and I got this compilation
error
on xubuntu 14.04, g++ 4.8.4

[ 83%] Building CXX object
src/osgPlugins/fbx/CMakeFiles/osgdb_fbx.dir/ReaderWriterFBX.o
/home/simuser/Downloads/OpenSceneGraph-master/src/osgPlugins/fbx/ReaderWriterFBX.cpp:
In member function ‘virtual osgDB::ReaderWriter::WriteResult
ReaderWriterFBX::writeNode(const osg::Node&, const string&, const Options*)
const’:
/home/simuser/Downloads/OpenSceneGraph-master/src/osgPlugins/fbx/ReaderWriterFBX.cpp:602:75:
error: cannot convert ‘const char* const*’ to ‘const char*’ in
initialization
             char const * versions =
lExporter->GetCurrentWritableVersions();

I think I dropped into this #ifdef branch due to an older fbx SDK installed,
anyway I simply changed the offending line to
const char* const* versions = lExporter->GetCurrentWritableVersions();

I attached the updated file for review.

Cheers,

/Per
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160621/20de2601/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ReaderWriterFBX.cpp
Type: text/x-c++src
Size: 22899 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160621/20de2601/attachment-0002.cpp>


More information about the osg-users mailing list