Hello.


I started reading a book on Qt 4 , and ran into a problem at the compilation stage, nothing works at all, namely:
0) I clog the code from the example in Qt Creator , save it in D: \ ... \ Hello , close Qt Creator .
1) Run MinGW - A command line opens with settings under Qt .
2) I prescribe the path to. Срр - Path D: \ ... \ Hello
3) I am writing - qmake -project - this is where the message "qmake is not an internal or external command, an executable program or a batch file" appears

Strange, if you don’t change the default path that leads to System32 and deeper, then qmake works, but it’s not clear what files it works there, but not the essence.

Book: Qt4: C ++ GUI Programming
Authors: Jasmine Blanchet and Mark Summerfield.

Ps. If you go through point 2 and set Hello.cpp, then this .cpp ' file runs in Qt Creator , that is, the console sees it and goes to the correct directory.


Question: How is it all right to compile in MinGW ?

    2 answers 2

    The second item is wrong. You need to go to the directory in which hello.cpp is located, and not to register it in the PATH

    But QtCreator can create projects by itself, isn't it?

    • The book is not written, so I thought that this is the only way) And how to go to the directory in the console? I just use it for the first time) cd also does not help ( - BlackOverlord
    • one
      cd to change to another directory within the same disk. To change the disk, you just need the disk name and a colon, for example "d:", and then the second command "cd hello \" - beardog
    • Thank you) _ - BlackOverlord

    You take and add qmake.exe to the folder with the project. For reference: the "Build" command itself builds a project, generates a class from your form. Need to constantly open the console and write something there.