I will work with QT 4.8.6 and i install from Linux Mint software center this three: qt4-dev-tools, qt creator and qt4-make. But when i will open a project (.pro) programmed with qt4 i obtain this errors on qt creator:
Error while parsing file /home/daniel/SpiderOak Hive/Estudio de Desarrollo de interfaces/QT/Ejercicios QT/tema02/application/application.pro. Giving up.
Could not find qmake configuration file default.
Could not find qmake configuration file linux-g++-64.
Error while parsing file /home/daniel/SpiderOak Hive/Estudio de Desarrollo de interfaces/QT/Ejercicios QT/tema02/application/application.pro. Giving up.
Yes, i'm a newbie. What can i do for solve this?
Edit: Here is the image when i will load the project.
qmake.exe is in bin directory of your Qt installation folder (along with all the Qt dlls for deployment). Your compiler should be detected automatically (check the Tools > Options > Build & Run > Compilers tab).
I will paste here just some theory for further debugging, because there is not enough info to solve issue.
qmake
reads special "spec" file which contains information about what compiler You want to use etc etc etc
Using these options qmake
generates Makefile
After that, make
or cmake
calls compiler, linker etc and builds Your project.
"Could not find qmake configuration file default."
means exactly that: qmake could not find this "compiler configuration" file from step 1.
In $QTDIR/mkspecs folder where $QTDIR is a place where QT is installed. You should check this folder and see a lot of subfolders there, including some which are missing.
Just run qmake --version
and You will find where $QTDIR is located. On my machine, for example, it's, for example, /usr/lib/x86_64-linux-gnu/qt5
Warning: there can be A LOT OF DIFFERENT qmake
executables installed in Your system (one for each qt version!). So, first of all, see what qmake executable You qtcreator uses!
Figure where is Your $QTDIR. Ensure that Your QT creator knows it
Check mkspecs
folder and see what spec files are presented. If there is no such folder or you don't have the spec for Your compiler -- Your QT installation is broken.
To resolve this specific issue:
Could not find qmake configuration file default.
Review your Qt Creator default kit:
Now reopen your project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With