QMake/compilieren geht nicht...

Alles rund um die Programmierung mit Qt
Antworten
Thrake
Beiträge: 10
Registriert: 25. November 2007 13:57

QMake/compilieren geht nicht...

Beitrag von Thrake »

Hi Leute!

Aus irgendeinem Grund kann ich keinen QT-Code mehr kompilieren und ich weiß nicht, warum.

Unter Eclipse mit der QT-Extension ist der build-Button grau. Wenn ich in QMake in der Console kompilieren möchte, dann spuckt er solche Fehler aus:

Code: Alles auswählen

track.h:4:25: error: QtGui/QWidget: No such file or directory
track.h:5:17: error: QtGui: No such file or directory
main.cpp:4:24: error: QApplication: No such file or directory
main.cpp:5:19: error: QString: No such file or directory
In file included from main.cpp:1:
track.h:8: error: expected class-name before ‘{’ token
track.h:9: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
track.h:11: error: expected ‘;’ before ‘public’
track.h:16: error: ISO C++ forbids declaration of ‘QMenuBar’ with no type
track.h:16: error: expected ‘;’ before ‘*’ token
track.h:17: error: ISO C++ forbids declaration of ‘QMenu’ with no type
track.h:17: error: expected ‘;’ before ‘*’ token
track.h:18: error: ISO C++ forbids declaration of ‘QMenu’ with no type
track.h:18: error: expected ‘;’ before ‘*’ token
track.h:19: error: ISO C++ forbids declaration of ‘QMenu’ with no type
track.h:19: error: expected ‘;’ before ‘*’ token
main.cpp: In function ‘int main(int, char**)’:
Was mache ich falsch? Ich bin echt schon am verzweifeln.
franzf
Beiträge: 3114
Registriert: 31. Mai 2006 11:15

Beitrag von franzf »

Dann schau dir nochmal die Qt-Installationsanleitung für Windows an, und überprüfe die ganzen Umgebungsvariablen auf Korrektheit, z.B. den PATH oder QTDIR.
Antworten