[root@localhost 2and3D]# qmake -project
//changed .pro file and added QT += opengl
[root@localhost 2and3D]# qmake
[root@localhost 2and3D]# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/root/qt-x11-opensource-src-4.2.2/mkspecs/linux-g++ -I. \
-I/usr/local/Trolltech/Qt-4.2.2/include/QtCore -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore -I/usr/local/Trolltech/Qt-4.2.2/include/QtGui \
-I/usr/local/Trolltech/Qt-4.2.2/include/QtGui -I/usr/local/Trolltech/Qt-4.2.2/include/QtOpenGL -I/usr/local/Trolltech/Qt-4.2.2/include -I. -I/usr/X11R6/include -I. -I. -o form.o form.cpp
In file included from form.h:5,
from form.cpp:2:
glwidget.h:5:30: error: QtOpenGL/QGLWidget: No such file or directory
glwidget.h:8: error: expected class-name before ‘{’ token
glwidget.h:36: error: ‘GLuint’ does not name a type
glwidget.h:37: error: ‘GLdouble’ has not been declared
glwidget.h:37: error: ‘GLdouble’ has not been declared
glwidget.h:37: error: ‘GLdouble’ has not been declared
glwidget.h:37: error: ‘GLdouble’ has not been declared
glwidget.h:38: error: ‘GLdouble’ has not been declared
glwidget.h:38: error: ‘GLdouble’ has not been declared
glwidget.h:38: error: ‘GLdouble’ has not been declared
glwidget.h:38: error: ‘GLdouble’ has not been declared
glwidget.h:39: error: ‘GLdouble’ has not been declared
glwidget.h:39: error: ‘GLdouble’ has not been declared
glwidget.h:39: error: ‘GLdouble’ has not been declared
glwidget.h:39: error: ‘GLdouble’ has not been declared
glwidget.h:42: error: ‘GLuint’ does not name a type
glwidget.h:8: warning: ‘class GLWidget’ has virtual functions but non-virtual destructor
form.cpp: In constructor ‘MainWindow::MainWindow(QMainWindow*)â€℠¢:
form.cpp:41: error: ‘class GLWidget’ has no member named ‘setGeometry’
make: *** [form.o] Error 1
[root@localhost 2and3D]#
[root@localhost ~]# env
SSH_AGENT_PID=2598
HOSTNAME=localhost.localdomain
DESKTOP_STARTUP_ID=
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
WINDOWID=41950507
QTDIR=/root/qt-x11-opensource-src-4.2.2
QTINC=/root/qt-x11-opensource-src-4.2.2/include
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:s o=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com =00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;3 1:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00; 31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:\
*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
GNOME_KEYRING_SOCKET=/tmp/keyring-lB9HNn/socket
SSH_AUTH_SOCK=/tmp/ssh-TkJpfF2555/agent.2555
KDEDIR=/usr
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/2555
MAIL=/var/spool/mail/root
DESKTOP_SESSION=default
PATH=/root/qt-x11-opensource-src-4.2.2/bin:/root/qt-x11-opensource-src-4.2.2/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:\
/usr/X11R6/bin:/root/qt-x11-opensource-src-4.2.2/bin:/root/bin
GDM_XSERVER_LOCATION=local
INPUTRC=/etc/inputrc
PWD=/root
LANG=en_US.UTF-8
QMAKESPEC=/root/qt-x11-opensource-src-4.2.2/mkspecs/linux-g++
GDMSESSION=default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HOME=/root
SHLVL=2
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=root
QTLIB=/root/qt-x11-opensource-src-4.2.2/lib
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-XG0E1vGhF5,guid=752ef945ca242e50a5d2bb9767ffcd00
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/root/.Xauthority
_=/bin/env
[root@localhost ~]#
Bookmarks