Probleme beim kompilieren

Gandalfx86

Lieutenant
Registriert
Apr. 2004
Beiträge
734
Ich versuche gerade das Programm fracplanet zu kompilieren, bekomme aber ein Fehlermeldung:

QTDIR not defined
You almost certainly need QTDIR defined and pointing at your QT installation
If you know different, edit ./configure and remove this test.

Ich habe gcc 3.3 und libqt3-dev installiert. Warum funktioniert das nicht?
 
gib folgendes ein
echo $QTDIR

falls nichts angezeigt wird, versuche folgendes vor dem kompilieren einzugeben:

export QTDIR=/usr/lib/qt3 (falls es den ordner qt3 bei dir nicht gibt suche nach was was mit qt zu tun hat)
 
OK Danke! Das mit dem QT funktioniert jetzt. Aber jetzt hat der irgendwelche Probleme beim mit make oder g++ oder so:

Your qmake version is:
Qmake version: 1.07a (Qt 3.3.3)
Qmake is free software from Trolltech AS.

Your gcc version is (unless qmake is set up to use a different one):
gcc (GCC) 3.3.5 (Debian 1:3.3.5-8ubuntu2)
Copyright © 2003 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für VERKAUFBARKEIT oder FÜR SPEZIELLE ZWECKE.

Running qmake...
...configuration completed - ready to do 'make' now
g++ -c -pipe -Wall -W -g '-DFRACPLANET_VERSION="0.2.0"' '-DFRACPLANET_BUILD="0.2.0 (debug build)"' -DQT_NO_ASCII_CAST -DQT_SHARED -DQT_NO_DEBUG -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -I/usr/X11R6/include -I/usr/X11R6/include -Imoc/ -o control_about.o control_about.cpp
make: g++: Kommando nicht gefunden
make: *** [control_about.o] Fehler 127

ich bin aber sicher, dass g++-3.3 drauf ist
 
überprüfe ob du unter usr bin was findest was mit g++ zu tun hat (z.B. g++-gcc...). falls ja könntest du versuchen einen link namens g++ darauf zu erstellen

oder deinstalliere es und installiere es neu
 
Zuletzt bearbeitet:
Ich hab grad gesehen, dass g++-3.3 installiert ist, aber g++ nicht. Hab das mal gemacht, aber jetzt kommt wieder ein anderer Fehler:

Code:
Your qmake version is:
Qmake version: 1.07a (Qt 3.3.3)
Qmake is free software from Trolltech AS.

Your gcc version is (unless qmake is set up to use a different one):
gcc (GCC) 3.3.5 (Debian 1:3.3.5-8ubuntu2)
Copyright © 2003 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für VERKAUFBARKEIT oder FÜR SPEZIELLE ZWECKE.

Running qmake...
...configuration completed - ready to do 'make' now
g++ -c -pipe -Wall -W -g '-DFRACPLANET_VERSION="0.2.0"' '-DFRACPLANET_BUILD="0.2 .0 (debug build)"' -DQT_NO_ASCII_CAST  -DQT_SHARED -DQT_NO_DEBUG -I/usr/share/qt 3/mkspecs/default -I. -I/usr/include/qt3 -I/usr/X11R6/include -I/usr/X11R6/inclu de -Imoc/ -o control_about.o control_about.cpp
g++ -c -pipe -Wall -W -g '-DFRACPLANET_VERSION="0.2.0"' '-DFRACPLANET_BUILD="0.2 .0 (debug build)"' -DQT_NO_ASCII_CAST  -DQT_SHARED -DQT_NO_DEBUG -I/usr/share/qt 3/mkspecs/default -I. -I/usr/include/qt3 -I/usr/X11R6/include -I/usr/X11R6/inclu de -Imoc/ -o control_render.o control_render.cpp
g++ -c -pipe -Wall -W -g '-DFRACPLANET_VERSION="0.2.0"' '-DFRACPLANET_BUILD="0.2 .0 (debug build)"' -DQT_NO_ASCII_CAST  -DQT_SHARED -DQT_NO_DEBUG -I/usr/share/qt 3/mkspecs/default -I. -I/usr/include/qt3 -I/usr/X11R6/include -I/usr/X11R6/inclu de -Imoc/ -o control_save.o control_save.cpp
In Datei, eingefügt von triangle_mesh_viewer.h:43,
                    von fracplanet_main.h:51,
                    von control_save.cpp:20:
triangle_mesh_viewer_display.h:27:17: qgl.h: Datei oder Verzeichnis nicht gefund en
In file included from triangle_mesh_viewer.h:43,
                 from fracplanet_main.h:51,
                 from control_save.cpp:20:
triangle_mesh_viewer_display.h:40: error: base class `QGLWidget' has incomplete
   type
triangle_mesh_viewer_display.h:40: Warnung: `class TriangleMeshViewerDisplay'
   has virtual functions but non-virtual destructor
make: *** [control_save.o] Fehler 1
 
hat dein qt zufälligerweise keine opengl unterstützung eingebaut?
 
hier ein auszug aus der qt Hilfe, vielleicht hilft es .

When you install Qt for X11, the configure script will autodetect if OpenGL headers and libraries are installed on your system, and if so, it will include the Qt OpenGL module in the Qt library. (If your OpenGL headers or libraries are placed in a non-standard directory, you may need to change the QMAKE_INCDIR_OPENGL and/or QMAKE_LIBDIR_OPENGL in the config file for your system). Some configurations require threading to be enabled for OpenGL, so if OpenGL is not detected, try configure -thread.
 
Zurück
Oben