Hello Srikanth,
Srikanth Bemineni wrote:
> I am repeatedly getting this error.I am new to opensg can helpme out
> with this.
>
> [EMAIL PROTECTED] openglgm]# make
> g++ -c -pipe -D_GNU_SOURCE -DQT_CLEAN_NAMESPACE -DOSG_WITH_GLUT
> -DOSG_WITH_QT -DOSG_WITH_TIF -DOSG_WITH_JPG -DOSG_WITH_PNG
> -D_OSG_HAVE_CONFIGURED_H_ -DQT_NO_XINERAMA -DQT_NO_XRENDER
> -DQT_NO_XFTFREETYPE -DQT_NO_XKB -DQT_NO_SM_SUPPORT -DQT_NO_IMAGEIO_MNG
> -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_MAC
> -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_COMPACT -ansi
> -use_readonly_const -ftemplate-depth-100 -g -DOSG_DEBUG -DOSG_WITH_QT
> -DOSG_WITH_GLUT -DOSG_WITH_TIF -DOSG_WITH_JPG -DOSG_WITH_PNG
> -I/usr/lib/qt-3.3/include
^^^^^^^^^^^^^
this and ...
> -I/tmp/OpenSG_db_gc3/OpenSG/Builds/i686-pc-linux-gnu-g++/include -O2
> -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
> -DQT_SHARED -I/usr/local/Trolltech/Qt-4.3.4/mkspecs/linux-g++ -I.
> -I/usr/local/Trolltech/Qt-4.3.4/include/QtCore
> -I/usr/local/Trolltech/Qt-4.3.4/include/QtCore
> -I/usr/local/Trolltech/Qt-4.3.4/include/QtGui
> -I/usr/local/Trolltech/Qt-4.3.4/include/QtGui
> -I/usr/local/Trolltech/Qt-4.3.4/include -I.
^^^^^^^^^^
this
looks a bit suspicious. How did you configure OpenSG ?
> -I/usr/local/OpenSG-1.8.0-redhat4-dbg/include
> -I/usr/local/Trolltech/Qt-4.3.4/include/QtOpenGL -I. -I. -o
> gmmainwidget.o gmmainwidget.cpp
> /usr/local/OpenSG-1.8.0-redhat4-dbg/include/OpenSG/OSGDynamicVolume.inl:
> In member function 'const osg::Volume&
> osg::DynamicVolume::getInstance() const':
> /usr/local/OpenSG-1.8.0-redhat4-dbg/include/OpenSG/OSGDynamicVolume.inl:62:
> warning: dereferencing type-punned pointer will break strict-aliasing
> rules
> /usr/local/OpenSG-1.8.0-redhat4-dbg/include/OpenSG/OSGDynamicVolume.inl:
> In member function 'osg::Volume& osg::DynamicVolume::getInstance()':
> /usr/local/OpenSG-1.8.0-redhat4-dbg/include/OpenSG/OSGDynamicVolume.inl:69:
> warning: dereferencing type-punned pointer will break strict-aliasing
> rules
> /usr/local/OpenSG-1.8.0-redhat4-dbg/include/OpenSG/OSGActorBase.inl:
> At global scope:
> /usr/local/OpenSG-1.8.0-redhat4-dbg/include/OpenSG/OSGActorBase.inl:63:
> warning: unused parameter 'source'
> /usr/local/OpenSG-1.8.0-redhat4-dbg/include/OpenSG/OSGQGLWidget_qt.h:94:
> error: 'WFlags' has not been declared
> /usr/local/OpenSG-1.8.0-redhat4-dbg/include/OpenSG/OSGQGLWidget_qt.h:100:
> error: 'WFlags' has not been declared
> make: *** [gmmainwidget.o] Error 1
>
I haven't used the Qt stuff in a while, but there are two versions of it
in the OpenSG sources, one for Qt 3.x and one for Qt 4.x. Are you using
the right ones ?
The error seems to indicate that the type WFlags is not declared in any
of the headers included by OSGQGLWidget_qt.h. I'm pretty sure this
worked at one time, so maybe Qt has changed its internal include
structure and now the WFlags is not visible anymore. Can you try adding
an include for the header that declares WFlags in OSGQGLWidget_qt.h or
as maybe in your application before including OSGQGLWidget ?
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users