Results 1 to 7 of 7

Thread: Could not find make command: mingw32-make.exe in the build environment

  1. #1
    Join Date
    May 2009
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Red face Could not find make command: mingw32-make.exe in the build environment

    Hey guys,

    I'm using QT Creator but I keep running into the following error:

    "Could not find make command: mingw32-make.exe in the build environment"

    On a project I received from a friend. This error occurs when I try to build / rebuild the project.

    I ran qmake before this with no problems.

    The funny thing is, in another project, it runs and builds fine.

    I was wondering if anyone had any idea on how to solve this. Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Could not find make command: mingw32-make.exe in the build environment

    Try to delete all make files and object files in the project. Then run qmake again and it should be ok.

  3. #3
    Join Date
    May 2009
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Could not find make command: mingw32-make.exe in the build environment

    Doesn't work, same error.

    Deleted the following files / directories:
    /debug
    /release
    Makefile
    Makefile.Debug
    Makefile.Release

    Regards,
    Pembar

  4. #4
    Join Date
    Feb 2009
    Posts
    33
    Thanks
    6
    Thanked 7 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Could not find make command: mingw32-make.exe in the build environment

    Just a shot in the dark, but maybe the *.pro.user file is hiding the path containing mingw32-make.exe? Try renaming it or deleting it so QtCreator creates a new default .user file, then run qmake again.

    Cheers,
    -andy.f

  5. #5
    Join Date
    May 2009
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Could not find make command: mingw32-make.exe in the build environment

    The .pro.user file doesn't exist, I think I deleted it earlier.

    Regards,
    Pembar

  6. #6
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Could not find make command: mingw32-make.exe in the build environment

    Another shot in the dark, I had a project with some errors, I deleted all the files you did and the problems didnt disaper. Then I delete .pro file, wich has already a mess, and created a new in the qt comand line, with 'qmake -project'. It works fine now, altought I have had to edit the pro file to add some librarys. Hope this helps

  7. #7
    Join Date
    Mar 2011
    Posts
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Could not find make command: mingw32-make.exe in the build environment

    Hi Pembar,
    (I'm from Spain, so sorry for my English).
    Maybe it's late but I tell you how I solve that issue.
    I'm in Qt4 (4.7.0) in Windows platform.
    Think is that the program doesn’t find MinGW in your Qt version.
    First, we`re going to see in Qt Creator’s Options >> Qt4. In my case, I only have one version. If I click on it I can see where MinGW is in “MinGW directory:”. In my case is C:\Qt\2010.05\mingw
    I had to copy this location in my Auto-detected version.
    Try that and tell me.
    On the other hand, each project has his own “Build settings”, there you can change its Qt version and see if in “Tool chain” it can find MinGW.

  8. The following user says thank you to johndrama for this useful post:

    corrado1972 (20th October 2011)

Similar Threads

  1. problems installing Qt opensource with msvc2008 support
    By odin1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 24th May 2008, 10:06
  2. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 06:57

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.