Interested in this question: How to build a Qt-project manually? (Without using the QtCreator development environment from cmd).

I use the MinGW compiler, so I would like to know the compilation commands and its features for QT projects for this compiler.

When qmake * pro writes an error

QMAKESPEC has not been set, so configuration cannot be deduced. Error processing project file: Calculator.pro.

And one more question:

Can I set up another IDE (say Geany) to compile Qt projects and what do I need to do to do this?

  • The same way as with the Creator. qmake * .pro then make ... - Alexander Chernin
  • @AlexanderChernin qmake * pro writes an error QMAKESPEC has not been set, so you can not be deduced. Error processing project file: Calculator.pro. - Konstantin_SH
  • My script for building a program from the command line is as follows: create a folder for the build, get up into it, C:\Qt\Qt5.7_x64\bin\qmake.exe $pro_path -r -spec win32-g++ (pro_path no matter how strange path to the pro file, then mingw32-make -f Makefile.Release -j 12 - Bearded Beaver

1 answer 1

In general, I brought the QtCreator compiler to the IDE console, copied its commands into cmd and it all worked ... I quote the compilation commands. Explain, please, what they mean.

C: \ Qt \ 4.8.2 \ bin \ qmake.exe C: \ Qt \ untitled \ untitled.pro -r -spec win32-g ++ "CONFIG + = declarative_debug"

C: \ Users \ User \ Documents \ mingw \ bin \ mingw32-make.exe

Interpret the -r , -spec and CONFIG+=declarative_debug commands. The rest is file paths, as I understand it.

  • I think that you can start to understand cmake and then there will be no problems, two teams and everything is assembled - jNX February