Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Compile my Qt project in Windows

    General and Desktop
    qmake make command
    3
    5
    1163
    Loading More Posts
    • 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.
    • tomy
      tomy last edited by tomy

      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 Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

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

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

        tomy 1 Reply Last reply Reply Quote 0
        • tomy
          tomy @jsulm last edited by 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?

          jsulm 1 Reply Last reply Reply Quote 0
          • Ni.Sumi
            Ni.Sumi last edited by

            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 Reply Quote 0
            • jsulm
              jsulm Lifetime Qt Champion @tomy last edited by jsulm

              @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 Reply Quote 0
              • First post
                Last post