hashDefine
hashDefine

Reputation: 1491

Qt creator: qmake is not recognized

I am trying to understand 'qmake' by following this tutorial . but when I come the the following command:

qmake -o Makefile hello.pro

my command line console shows me this message:

'qmake' is not recognized as an internal or external command, operable program or batch file

I understood that qmake is part of Qt creator and thus it should be executed whenever I run it within my project's folder. so, why it is not recognized ?

Upvotes: 1

Views: 12736

Answers (3)

Luciano Galvan
Luciano Galvan

Reputation: 1

Sorry my friend, i don´t speak English very well.

In Qt 5.10.1 I resolved this problem running the command prompt in the next path, C:\Qt\5.10.1\mingw53_32>, after you need change the directory where is the file hello.pro and run the commnand qmake -o Makefile hello.pro after you can see the makefile in the respective folder.

Upvotes: 0

jwernerny
jwernerny

Reputation: 7048

In the start menu entry that was created by the installer for Qt, you should find an item that opens a command prompt with all the needed environment variables (including the PATH) already set. For my Qt 5.0.2 install using MingW, it is called "Qt 5.0.2 for Desktop (MinGW 4.7)".

Upvotes: 4

Sergey Shambir
Sergey Shambir

Reputation: 1592

On Windows, you can add path to qmake to PATH or run qmake from directory where it placed, or use absolute path.

Upvotes: 2

Related Questions