Hi Antoine, Could you send the .pro file as a separate attachment as your mail tool has inlined.
Cheers. Robert. On 2/25/07, Antoine Hue <[EMAIL PROTECTED]> wrote:
GNUMakefile provided with osgsimpleviewerQT4 is not very well suited for any QT install. Try attached .pro file: qmake-qt4 osgsimpleviewer.pro make -f Makefile ./<your ARCH>/osgsimpleviewerQT4/osgsimpleviewerQT4 Robert, feel free to add this contribution to the OSG. Antoine elekis wrote: > hi all > I try to compil the QT4 example > like here > http://openscenegraph.org/viewcvs/*checkout*/examples/osgsimpleviewerQT4/osgsimpleviewerQT4.cpp > <http://openscenegraph.org/viewcvs/*checkout*/examples/osgsimpleviewerQT4/osgsimpleviewerQT4.cpp> > > with > g++ osgsimpleviewerQT4.cpp -losgViewer -losgText -losgGA -losgDB > -losgUtil -losg -lQtOpenGL -lQtGui -lQtCore > > but the first error line are > > [EMAIL PROTECTED]:~/Desktop$ > [EMAIL PROTECTED]:~/Desktop$ g++ osgsimpleviewerQT4.cpp -losgViewer > -losgText -losgGA -losgDB -losgUtil -losg -lQtOpenGL -lQtGui -lQtCore > osgsimpleviewerQT4.cpp:6:34: error: osgViewer/SimpleViewer: Aucun > fichier ou répertoire de ce type > osgsimpleviewerQT4.cpp :10:25: error: QtCore/QTimer: Aucun fichier ou > répertoire de ce type > osgsimpleviewerQT4.cpp:11:27: error: QtGui/QKeyEvent: Aucun fichier ou > répertoire de ce type > osgsimpleviewerQT4.cpp:12:30: error: QtGui/QApplication: Aucun fichier > ou répertoire de ce type > osgsimpleviewerQT4.cpp:13:30: error: QtOpenGL/QGLWidget: Aucun fichier > ou répertoire de ce type > osgsimpleviewerQT4.cpp:17: error: expected class-name before ',' token > osgsimpleviewerQT4.cpp:17: error: 'osgViewer' has not been declared > osgsimpleviewerQT4.cpp:17: error: expected `{' before 'GraphicsWindow' > osgsimpleviewerQT4.cpp:17: error: invalid function declaration > > > I don't understand is viewer not in osg package??(ubuntu fiesty fawn). > > thanks > > > ------------------------------------------------------------------------ > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ QT += opengl UNAME= $$system(uname -s) MACHINE= $$system(uname -m) contains(MACHINE, x86_64){ ARCH=$${UNAME}64 }else{ ARCH=$${UNAME}32 } LIBS += -L../../lib/$${ARCH} LIB_DIRS= $(OPENTHREADS_LIB_DIR) for(dir, LIB_DIRS) { exists($$dir){ LIBS += -L$$dir } } LIBS += -losgDB -losgGA -losg -lOpenThreads \ -losgViewer -losgText -losgFX -losgUtil TEMPLATE = app TARGET = ./$$ARCH/osgsimpleviewerQT4 CONFIG += # debug # warn_on FORMS += RESOURCES= HEADERS += SOURCES += osgsimpleviewerQT4.cpp INCLUDEPATH += ../../include $(OPENTHREADS_INC_DIR) OBJECTS_DIR=$${ARCH} _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
