[osg-users] osgAudio doesn't compile against OSG 3.4

Michael Nolde mnolde at gmx.net
Thu Mar 3 02:04:33 PST 2016


Hi Chris,

as far as I understand, osgAudio tries to instance 'osg::Geometry::BIND_PER_PRIMITIVE' in both osgaudiomultiple.cpp and osgaudio.cpp, which appears to have been replaced in recent versions of OSG. Here's the error message produced by GNU make on my Ubuntu 15.10 64 bit machine (using ccmake for configuring):

Building CXX object examples/osgaudio/CMakeFiles/example_osgaudio.dir/osgaudio.cpp.o
/home/mic/Dev/source/osgaudio_gitmaster1602/examples/osgaudio/osgaudio.cpp: In function ‘osg::Node* createBase(const Vec3&, float)’:
/home/mic/Dev/source/osgaudio_gitmaster1602/examples/osgaudio/osgaudio.cpp:216:11: error: ‘class osg::Geometry’ has no member named ‘setVertexIndices’
     geom->setVertexIndices(coordIndices);
           ^
/home/mic/Dev/source/osgaudio_gitmaster1602/examples/osgaudio/osgaudio.cpp:219:11: error: ‘class osg::Geometry’ has no member named ‘setColorIndices’
     geom->setColorIndices(colorIndices);
           ^
/home/mic/Dev/source/osgaudio_gitmaster1602/examples/osgaudio/osgaudio.cpp:220:27: error: ‘BIND_PER_PRIMITIVE’ is not a member of ‘osg::Geometry’
     geom->setColorBinding(osg::Geometry::BIND_PER_PRIMITIVE);
                           ^
examples/osgaudio/CMakeFiles/example_osgaudio.dir/build.make:54: recipe for target 'examples/osgaudio/CMakeFiles/example_osgaudio.dir/osgaudio.cpp.o' failed
make[2]: *** [examples/osgaudio/CMakeFiles/example_osgaudio.dir/osgaudio.cpp.o] Error 1
CMakeFiles/Makefile2:290: recipe for target 'examples/osgaudio/CMakeFiles/example_osgaudio.dir/all' failed
make[1]: *** [examples/osgaudio/CMakeFiles/example_osgaudio.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2


Best regards,
Michael

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








More information about the osg-users mailing list