August 4, 2011

mikega1 mikega1
Lab Rat
5 posts

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.

Mike

10 replies

August 4, 2011

Eddy Eddy
Area 51 Engineer
1609 posts

How did you install it?

Do you have Qt Creator running?

 Signature 

Moderator
Qt Certified Specialist
Nokia Qt Ambassador

August 4, 2011

Volker Volker
Ant Farmer
5428 posts

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.

August 5, 2011

mikega1 mikega1
Lab Rat
5 posts

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!

August 5, 2011

Eddy Eddy
Area 51 Engineer
1609 posts

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.

 Signature 

Moderator
Qt Certified Specialist
Nokia Qt Ambassador

August 5, 2011

loladiro loladiro
Lab Rat
596 posts

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.

August 5, 2011

mikega1 mikega1
Lab Rat
5 posts

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.

August 5, 2011

Volker Volker
Ant Farmer
5428 posts

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

August 5, 2011

mikega1 mikega1
Lab Rat
5 posts

Thanks – it is working using QT Creator :)

August 5, 2011

Volker Volker
Ant Farmer
5428 posts

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

August 8, 2011

mikega1 mikega1
Lab Rat
5 posts

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

 
  ‹‹ QWidget window fails to open when "SetParent" is not null      MIDI callbackhook implementation ››

You must log in to post a reply. Not a member yet? Register here!