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. make command not working
Forum Updated to NodeBB v4.3 + New Features

make command not working

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 2.0k Views 2 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.
  • S Offline
    S Offline
    sandro4912
    wrote on 29 Jun 2019, 12:36 last edited by
    #1

    I tryed to compile to make a project from command line and create a exe

    i tryed the following steps:

    qmake -project -> generates the pro file (here hello_world.pro)
    qmake hello_world.pro -> generates makefiles etc

    But then:
    make -> it gives me the errror that the command is not recognized.

    Do I have to add make to the Windows Path Variable? If yes were is it located?

    1 Reply Last reply
    1
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 29 Jun 2019, 12:55 last edited by
      #2

      Which platform and compiler do you use? When you're on windows it's either mingw32-make for mingw or nmake for msvc.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      4
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 29 Jun 2019, 17:53 last edited by
        #3

        Hi
        If on windows, you can run
        "C:\Qt\5.12.3\msvc2017_64\bin\qtenv2.bat"
        (or similar depending on compiler)
        Also, vcvarsall.bat if VS compiler
        to have all the paths setup.

        1 Reply Last reply
        2
        • S Offline
          S Offline
          sandro4912
          wrote on 30 Jun 2019, 09:06 last edited by
          #4

          When I run the bat it just flashes and closes the window immidiately. So how to use it?

          M 1 Reply Last reply 30 Jun 2019, 09:11
          0
          • S sandro4912
            30 Jun 2019, 09:06

            When I run the bat it just flashes and closes the window immidiately. So how to use it?

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 30 Jun 2019, 09:11 last edited by mrjj
            #5

            @sandro4912
            :)
            Open command prompt first, run the bat file inside.
            same with vcvarsall.bat

            1 Reply Last reply
            3
            • Z Offline
              Z Offline
              zv0r
              wrote on 24 Aug 2020, 16:49 last edited by
              #6

              If you're using mingw, maybe you should use mingw32-make command instead of make

              1 Reply Last reply
              1

              • Login

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