[osg-users] issues compiling 3.0.1

Lonnie.CTR.Souder at faa.gov Lonnie.CTR.Souder at faa.gov
Wed Sep 26 13:59:36 PDT 2018


Hello, I am trying to upgrade some image generators and found that we can no longer compile our code.  In fact I cannot compile OSG 3.0.1 anymore.  Here is the error I getting:



/data/oldproject/OpenSceneGraph/src/osg/State.cpp: In constructor ‘osg::State::State()’:
/data/oldproject/OpenSceneGraph/src/osg/State.cpp:112:26: error: cannot convert ‘bool’ to ‘bool*’ in assignment
    _abortRenderingPtr = false;
                         ^~~~~
/data/oldproject/OpenSceneGraph/src/osg/State.cpp: In member function ‘const osg::StateAttribute* osg::State::getLastAppliedTextureAttribute(unsigned int, osg::StateAttribute::Type, unsigned int) const’:
/data/oldproject/OpenSceneGraph/src/osg/State.cpp:692:55: error: cannot convert ‘bool’ to ‘const osg::StateAttribute*’ in return
    if (unit>=_textureAttributeMapList.size()) return false;
                                                      ^~~~~
src/osg/CMakeFiles/osg.dir/build.make:2702: recipe for target 'src/osg/CMakeFiles/osg.dir/State.o' failed
make[2]: *** [src/osg/CMakeFiles/osg.dir/State.o] Error 1
CMakeFiles/Makefile2:300: recipe for target 'src/osg/CMakeFiles/osg.dir/all' failed
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2



We made an effort to upgrade our software to use the latest and greatest OSG but failed because of some low level code issues which we just don't understand.  We plan to do a tech refresh.  This is just a band aid to keep things usable.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180926/d74ed870/attachment.html>


More information about the osg-users mailing list