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. Complete newbie: Getting 'make' is not recognized as an internal or external command, operable program or batch file.

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

Scheduled Pinned Locked Moved General and Desktop
12 Posts 6 Posters 22.9k 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.
  • M Offline
    M Offline
    mikega1
    wrote on 4 Aug 2011, 21:41 last edited by
    #1

    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.

    Mike

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Eddy
      wrote on 4 Aug 2011, 21:51 last edited by
      #2

      How did you install it?

      Do you have Qt Creator running?

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on 4 Aug 2011, 21:52 last edited by
        #3

        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.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mikega1
          wrote on 4 Aug 2011, 22:01 last edited by
          #4

          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!

          1 Reply Last reply
          0
          • E Offline
            E Offline
            Eddy
            wrote on 4 Aug 2011, 22:04 last edited by
            #5

            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.

            Qt Certified Specialist
            www.edalsolutions.be

            1 Reply Last reply
            0
            • L Offline
              L Offline
              loladiro
              wrote on 4 Aug 2011, 22:04 last edited by
              #6

              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.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mikega1
                wrote on 4 Aug 2011, 22:10 last edited by
                #7

                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.

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on 4 Aug 2011, 22:14 last edited by
                  #8

                  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 :)

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mikega1
                    wrote on 4 Aug 2011, 22:21 last edited by
                    #9

                    Thanks - it is working using QT Creator :)

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      goetz
                      wrote on 4 Aug 2011, 22:24 last edited by
                      #10

                      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 http://developer.qt.nokia.com/doc/qt-4.7/ :)

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mikega1
                        wrote on 8 Aug 2011, 10:29 last edited by
                        #11

                        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!!

                        R 1 Reply Last reply 1 Feb 2021, 21:03
                        0
                        • M mikega1
                          8 Aug 2011, 10:29

                          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!!

                          R Offline
                          R Offline
                          robmilne
                          wrote on 1 Feb 2021, 21:03 last edited by
                          #12

                          Still good advice today with 5.15.2/mingw81_64. Thanks!

                          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