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

Reply via email to