The QtCreator run the program normally. However, in order to test memory, I need to run it from command line. When I make it,
make -lGLEW -lGL
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iudp -Ithread_safe -I. -I. -o camera.o camera.cpp
In file included from camera.cpp:1:0:
camera.
h:4:21: fatal error
: QGLWidget: No such
file or directory
compilation terminated.
make -lGLEW -lGL
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iudp -Ithread_safe -I. -I. -o camera.o camera.cpp
In file included from camera.cpp:1:0:
camera.h:4:21: fatal error: QGLWidget: No such file or directory
compilation terminated.
To copy to clipboard, switch view to plain text mode
As I checked the .pro file, what it includes is exactly the same thing that QtCreator has when it runs the program successfully.
.pro file:
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets opengl
TARGET = SonarDisplay
TEMPLATE = app
LIBS += -lGLEW -lGL
...
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets opengl
TARGET = SonarDisplay
TEMPLATE = app
LIBS += -lGLEW -lGL
...
To copy to clipboard, switch view to plain text mode
Am I missing something?
Bookmarks