Compile my Qt project in Windows



  • Hi guys,

    I created a Qt Designer Form named Hello and added a main.cpp file containing a code to it. Then I went to the folder containing those flies (.ui and .cpp) by a command prompt:
    cd C:\Users\CS\Documents\Qt\Forms\Hello

    then I typed:
    C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\qmake -project

    The .pro files created.
    My reference says that I then should type:qmake hello.pro, so I typed:
    C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\qmake hello.pro

    Until now everything fine.
    Then the reference says that I should type make to build the program. An then Run it by typing hello on Windows!
    I tried this: C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\make
    The command prompt said:
    'make' is not recognized as an internal or external command,
    operable program or batch file.

    Now my questions are:
    Where to type that make to be right?
    And then how to run that program please?


  • Moderators

    On Windows with MinGW the name of make command is: mingw32-make.exe



  • @jsulm said:

    mingw32-make.exe

    But there isn't such a file in C:\Qt\Qt5.5.1\5.5\mingw492_32\bin!
    Where do I type it?



  • HI @tomy ,

    Seems , you have to make your own batch file and put in the bin folder.

    Check this. , it gave solution.


  • Moderators

    @tomy Did you realize that you are looking in the wrong directory? MinGW is in c:\Qt\Tools\mingw492_32\bin!
    You should be more proactive and look by yourself instead of asking for exact answers. You can search in Windows-Explorer for

    *make*.exe
    

    On my machine I get 4 hits one of them is mingw32-make.exe


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.