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

Compile my Qt project in Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmakemakecommand
5 Posts 3 Posters 1.6k Views
  • 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.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on 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
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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

      tomyT 1 Reply Last reply
      0
      • jsulmJ jsulm

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

        tomyT Offline
        tomyT Offline
        tomy
        wrote on 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?

        jsulmJ 1 Reply Last reply
        0
        • Ni.SumiN Offline
          Ni.SumiN Offline
          Ni.Sumi
          wrote on 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
          • tomyT tomy

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

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on 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

            • Login

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