Important: Please read the Qt Code of Conduct -

Complete newbie: Getting 'make' is not recognized as an internal or external command, operable program or batch file.

  • Hi, I'm following the beginner tutorial. Have created cpp file and run qmake to create project but make or nmake are not recognised.
    I have downloaded the 1.1.2 SDK and am using a windows Vista machine.

    Any help much appreciated.


  • How did you install it?

    Do you have Qt Creator running?

  • As far as I know, the SDK is installed together with MinGW. You can either start that from the mingw shell, or - better - use Qt Creator. Just launch Qt Creator (it should have been installed together with the SDK) and open the generated .pro file. You should be able to build the sample then.

  • I installed it using the on line installer for Windows.
    I've been trying to run from the command line using the mingw desktop.

    The tutorial starts using the text editor and the command line so I've been trying to stay away from QTCreator for now!

  • Do you use mingw32-make?

    QtCreator makes life much easier if I were you I would have a look into it. The Qt Creator manual has tutorials too.

  • Make sure you have you paths set to both the mingw/bin folder and the Desktop\Qt\4.7.3\mingw\bin folder. Also, with mingw it's mingw32-make and not simply make.

  • I am using the mingw desktop that automatically sets the path when you use it. I checked the path and it included both mingw/bin folder and the Desktop\Qt\4.7.3\mingw\bin. All the tutorials, including those on the QT website say use make (or maybe nmake on windows). I understood that QT included a make.bat file to launch mingw-make.

    I'll try mingw-make.

    Thanks for all the quick replies. Awesome.

  • And you really can use Qt Creator. It just calls qmake and (n)make for you and parses the output and probably errors for you :)

  • Thanks - it is working using QT Creator :)

  • Nice! Now good luck with the other examples and have fun using Qt :-)

    And of course, you're welcome to ask here if you have further questions. And don't miss the good documentation on :)

  • OK - I've now solved this!

    It seems that -QT- Qt used to have a make.bat file to call mingw32-make but now no longer includes this for some reason. A number of places on the web - forums and stackoverflow etc - have a discussion of this and the answer is to create your own batch file and put it in the mingw\bin folder, with the following command;

    @echo off
    mingw32-make %*

    Hopefully this may help other newbies, especially as every beginner tutorial and book seems to start on the command line and assumes that make will work!!

  • Banned

    This post is deleted!

  • Still good advice today with 5.15.2/mingw81_64. Thanks!

Log in to reply