Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compile my Qt project in Windows
Forum Update on Tuesday, May 27th 2025

Compile my Qt project in Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmakemakecommand
5 Posts 3 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tomy
    wrote on 16 Feb 2016, 10:01 last edited by tomy
    #1

    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?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 16 Feb 2016, 10:17 last edited by
      #2

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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply 16 Feb 2016, 10:55
      0
      • J jsulm
        16 Feb 2016, 10:17

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

        T Offline
        T Offline
        tomy
        wrote on 16 Feb 2016, 10:55 last edited by tomy
        #3

        @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?

        J 1 Reply Last reply 16 Feb 2016, 12:41
        0
        • N Offline
          N Offline
          Ni.Sumi
          wrote on 16 Feb 2016, 11:18 last edited by
          #4

          HI @tomy ,

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

          Check this. , it gave solution.

          1 Reply Last reply
          0
          • T tomy
            16 Feb 2016, 10:55

            @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?

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 16 Feb 2016, 12:41 last edited by jsulm
            #5

            @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

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            2/5

            16 Feb 2016, 10:17

            • Login

            • Login or register to search.
            2 out of 5
            • First post
              2/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved