Mingw32-make instead of make



  • I installed Qt SDK 1.1.1 on my windows 7 PC and had some time to look through documentation about building and compiling Qt projects. I found that to build my project I need to use make.exe tool which location is pointed in environment variables during install Qt SDK on PC.

    I was also looking through Qt SDK file system and didn't found make.exe in QtSDK\Desktop\mingw\bin only in QtSDK\Symbian directories. Instead of it there is mingw32-make.exe which I assume is the same. Will it be bad if I rename mingw32-make.exe to make.exe?

    I develop in Eclipse for Java Developers with installed CDT plugin and qt plugin and Eclipse can't build my project automatically when I save it, because (as I assume) it try to launch make.exe instead of mingw32-make.exe.

    Allso (correct me if I'm wrong) I think if I would build my projetcs manually using Windows command line I should use mingw32-make.exe instead of make.exe, as describe in official documentation isn't it?



  • mingw32-make.exe is mingw's version of make, and nmake is the MSVC version of it. Use the one that belongs to the toolchain you're building with.



  • I use mingw32-make, because it is situated in Qt's SDK. But my question is: how can I integrate it with eclispe?



  • Hi,

    you have to set your PATH environment variable to MinGW MSYS.

    You need MSYS for correct execution of the make files (which uses UNIX commands -> MSYS) generated by the Qt integration plugin. So do the following steps to fix the problem:

    1. uninstall your current MinGW installation
    2. reinstall MinGW and select the following option in the setup dialog
      a) Custom
      b) Compilers C & C++
      c) MSYS
    3. extend your PATH environment variable in the System Properties / Environment Variables dialog of windows by adding C:\MinGW\msys\1.0\bin;C:\MinGW\bin; in front of the values that are already there
    4. restart machine
    5. create new Qt project and try building it

    Now make.exe (C:\MinGW\msys\1.0\bin\make.exe) will be called correctly.

    It took me hours to figure that out.

    So lonG



  • "I use mingw32-make, because it is situated in Qt’s SDK"

    I experienced several problems by trying to use mingw32-make of the Qt SDK too. So i recommend you to download the Qt libraries and install MinGW seperately as i mentioned above.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.