A default build of the OSG won't build the examples, so won't build
osgviewerQt.  Did you enable the build of the examples?

I compiled the example separately with g++ -o osgviewerQt '/home/palmer/fs_dev/git/osg/examples/osgviewerQt/osgviewerQt.cpp' -DUSE_QT4 -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -losgQt -lQtOpenGL -lQtGui -lQtCore -losg -losgDB -losgFX -losgGA -losgParticle -losgSim -losgText -losgUtil -losgTerrain -losgManipulator -losgViewer -losgWidget -losgShadow -losgAnimation -losgVolume -lOpenThreads, and have checked that it links to this build of OSG and not the Ubuntu one.

try compiling OSG with Qt5.  At least this combination doesn't crash on
my system.

osgviewerQt is now single threaded by default on Qt 5 (http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2014-January/065916.html), to avoid another vaguely similar bug ("Cannot make QOpenGLContext current in a different thread"; XInitThreads() doesn't help with this one). Does yours give this error if you explicitly re-enable multithreading (osgviewerQt --CullDrawThreadPerContext)?
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to