Hi Isabelle, It seems to be a qmake issue or something similar. I don't know qmake as well as CMake, but are you sure that libs are correctly linked, and that versions of those libs are also correct? You may try adding a gcc option that tells path for lib searching, and/or change libs order on the "LIBS += ..." line.
Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ ----- "Isabelle Gouwy" <[email protected]> a écrit : > Hi, > > I'm working under linux, and I'm using qmake to generate the > makefile. > Maybe it comes from my .pro file because I've tried to comment all the > code in my project, except for the heightfield creation and it doesn't > work either : > I've put my code in main function and commented the rest of my > project. If I compile it with the makefile generated by qmake, it > doesn't work (my heightfield is 100*0). > But if I compile it like that "g++ -losg -losgDB main.cpp" it works! > Here is my .pro file : > > > Code: > > #Project type > TEMPLATE = app > > #Binary > TARGET = map > > #Sources dir > DEPENDPATH += . src src/UI > > #Includes dirs > INCLUDEPATH += src src/AUTOGEN > > #Where to build > DESTDIR += bin > > #QT additional config > CONFIG+= qt opengl stl exceptions warn_on release > > #QT config > QT += core xml gui opengl > > #DISTFILES > DISTFILES += bin/ > > #Defines > DEFINES += > > #Added libs > LIBS += -ldl -lglut -lGLEW -lGLU -lGL -lm -losg -losgDB > > #Where to build MOCs > MOC_DIR = src/AUTOGEN > > #Where to build .o > OBJECTS_DIR = src/.o > > #Where to build .hpp from .ui > UI_DIR = src/AUTOGEN > > #Where to build .cpp from .qrc > RCC_DIR = src/AUTOGEN/RSC/ > > #Headers > HEADERS += Application.hpp \ > MainWindow.hpp \ > GLWidget.hpp \ > Map.hpp \ > Camera.hpp \ > Particles.hpp \ > > #UIs > FORMS += Ui_MainWindow.ui > > #Sources > SOURCES += main.cpp \ > Application.cpp \ > MainWindow.cpp \ > GLWidget.cpp \ > Map.cpp \ > Camera.cpp \ > Particles.cpp \ > > > > > I don't understand what's wrong... > > Thanks a lot > > Cheers, > Isabelle > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=21926#21926 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

