Salut,
j'essaye de passer sur Qt, j'ai donc téléchargé le dernière version et je l'ai installé sans problème.
La j'essaye Qt creator, je fait un projet d'application GUI de base sans rien ajouté et il ne me le compile pas, apparement il ne trouve pas les fichiers de Qt :
Est-ce que cela peut provenir d'un mauvaise installation ou c'est moi qui fait quelque chose de mal ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 Running build steps for project Test... Creating gdb macros library... Configuration unchanged, skipping QMake step. Starting: D:/Program Files/Qt/2009.01/mingw/bin/mingw32-make.exe debug -w mingw32-make: Entering directory `D:/Mes Documents/Mes projets/C++/testQt/Test' D:/Program Files/Qt/2009.01/mingw/bin/mingw32-make -f Makefile.Debug mingw32-make[1]: Entering directory `D:/Mes Documents/Mes projets/C++/testQt/Test' g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"d:\Program" -I"Files\Qt\2009.01\qt\include\QtCore" -I"Files\Qt\2009.01\qt\include\QtGui" -I"Files\Qt\2009.01\qt\include" -I"Files\Qt\2009.01\qt\include\ActiveQt" -I"debug" -I"." -I"d:\Program Files\Qt\2009.01\qt\mkspecs\win32-g++" -o debug\main.o main.cpp mingw32-make[1]: Leaving directory `D:/Mes Documents/Mes projets/C++/testQt/Test' mingw32-make: Leaving directory `D:/Mes Documents/Mes projets/C++/testQt/Test' main.cpp:1:30: QtGui/QApplication: No such file or directory In file included from main.cpp:2: mainwindow.h:4:29: QtGui/QMainWindow: No such file or directory In file included from main.cpp:2: mainwindow.h:12: error: expected class-name before '{' token mainwindow.h:15: error: ISO C++ forbids declaration of `Q_OBJECT' with no type mainwindow.h:15: error: expected `;' before "public" main.cpp: In function `int main(int, char**)': main.cpp:6: error: `QApplication' was not declared in this scope main.cpp:6: error: expected `;' before "a" mainwindow.h:17: error: `MainWindow::~MainWindow()' is private main.cpp:7: error: within this context main.cpp:8: error: 'class MainWindow' has no member named 'show' main.cpp:9: error: `a' was not declared in this scope main.cpp:6: warning: unused variable 'QApplication' main.cpp:9: warning: unused variable 'a' mingw32-make[1]: *** [debug/main.o] Error 1 mingw32-make: *** [debug] Error 2 Exited with code 2. Error while building project Test When executing build step 'Make'
Partager