[gelöst] Undefined reference QGLWidget

Verschiedenes zu Qt
Antworten
fkmaster
Beiträge: 1
Registriert: 10. März 2007 09:50
Wohnort: Graz

[gelöst] Undefined reference QGLWidget

Beitrag von fkmaster »

Hallo,

ich versuche ein QT 3.3. Projekt von mir das auf OpenSuse 10 erfolgreich lief jetzt unter Ubuntu zum laufen zu bringen. Habe QT 3.3.7 mit OpenGL support kompiliert in /usr/local/qt. Mittels bashrc habe ich QTDIR etc. dorthin eingetragen, ldconfig -p liefert folgenden output (habe den Lib Pfad in /etc/ld.so.conf an erster Stelle eingetragen). ATI Grafikkartentreiber sind auch installiert und laufen (fglrxinfo). Das Projekt läuft wenn ich es direkt in das examples Verzeichnis gebe.

ldconfig -p | grep "qt"
libqui.so.1 (libc6) => /usr/local/qt/lib/libqui.so.1
libqui.so (libc6) => /usr/local/qt/lib/libqui.so
libqtmcop.so.1 (libc6) => /usr/lib/libqtmcop.so.1
libqt.so.3 (libc6) => /usr/local/qt/lib/libqt.so.3
libqt.so (libc6) => /usr/local/qt/lib/libqt.so
libqt-mt.so.3 (libc6) => /usr/local/qt/lib/libqt-mt.so.3
libqt-mt.so (libc6) => /usr/local/qt/lib/libqt-mt.so
libpoppler-qt.so.1 (libc6) => /usr/lib/libpoppler-qt.so.1
libdbus-qt-1.so.1 (libc6) => /usr/lib/libdbus-qt-1.so.1
libavahi-qt3.so.1 (libc6) => /usr/lib/libavahi-qt3.so.1

Qmake läuft ohne Probleme, aber wenn ich make aufrufe bekomme ich folgende Fehlermeldung

make
g++ -Wl,-rpath,/usr/local/qt/lib -o box glbox.o globjwin.o coord.o marker.o system.o main.o markercontainer.o Marker3DListExt.o frame.o markertable.o signalhandler.o player.o color.o colorhandler.o interpolationmanager.o cleanupmanager.o statistic.o filehandler.o jointhierarchylist.o jointcontainer.o joint.o exception.o mymath.o markerhistogram.o skeletontracker.o markertracker.o moc_glbox.o moc_globjwin.o moc_markertable.o moc_signalhandler.o moc_player.o moc_jointhierarchylist.o moc_markerhistogram.o -L/usr/local/qt/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -lqt -lGLU -lGL -lXmu -lXext -lX11 -lm
glbox.o: In function `MyGLWidget::paintSkeleton(Joint*)':
glbox.cpp:(.text+0x1f6): undefined reference to `QGLWidget::qglColor(QColor const&) const'
glbox.o: In function `MyGLWidget::initializeGL()':
glbox.cpp:(.text+0x467): undefined reference to `QGLWidget::qglClearColor(QColor const&) const'
glbox.o: In function `MyGLWidget::paintGL()':
glbox.cpp:(.text+0x55d): undefined reference to `QGLWidget::qglColor(QColor const&) const'
glbox.cpp:(.text+0x5e0): undefined reference to `QGLWidget::qglColor(QColor const&) const'
glbox.cpp:(.text+0x615): undefined reference to `QGLWidget::qglColor(QColor const&) const'
glbox.cpp:(.text+0x64a): undefined reference to `QGLWidget::qglColor(QColor const&) const'

Diverse Info's
Ubuntu 4.1.1-13ubuntu5 Edgy Eft 6.10
qmake -version
Qmake version: 1.07a (Qt 3.3.7)
g++ --version
g++ (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9600 Generic
OpenGL version string: 2.0.6011 (8.28.8)

Freue mich über jeden Problemlösungsvorschag,

Martin

----------- Lösung ------------------
habe vergessen qmake -project neu auszuführen.
Antworten