venugopal gudimetla wrote:

Gordon,
Thank you for the pointers. I shall try to post sensibly.

Robert,
This is how I tried to compile the example:
OS:Linux Ubuntu 8.0.4
OSG->version:2.4.0, QT4.
I tried to compile directly instead of running Cmake as below:
g++ -DUSE_QT4 -I/usr/include/qt4 -I/usr/include/ -L/usr/lib -losg -losgDB -losgGA -losgViewer -lQtCore -lQtGui -lQtOpenGL -o test osgviewerQT.cpp

Here is the dump with errors, did I not include any libraries? what am I doing wrong? :

/tmp/ccYoMFP2.o:(.rodata._ZTV8ViewerQT[vtable for ViewerQT]+0xd8): undefined reference to `osgViewer::View::setSceneData(osg::ref_ptr<osg::Node>)'
collect2: ld returned 1 exit status

Well, for one the example consists of 3 C++ files, not just osgviewerQT.cpp.

The command-line that works for me here is (not the 2 extra files at the end): g++ -DUSE_QT4 -I ~/qt4.3/include -I ~/local/include/ -L ~/local/lib/ -L ~/qt4.3/lib/ -losg -losgDB -losgGA -losgViewer -lQtCore -lQtGui -lQtOpenGL -o test osgviewerQT.cpp AdapterWidget.cpp QOSGWidget.cpp

This doesn't directly explain the linking error you're getting, though...

Paul
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to