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
QtWS25 Last Chance

make command not working

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 1.8k 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.
  • S Offline
    S Offline
    sandro4912
    wrote on 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
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 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
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on 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 last edited by
          #4

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

          mrjjM 1 Reply Last reply
          0
          • S sandro4912

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

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on 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 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