[CMake] CMake and MinGW on Windows

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed May 21 02:03:23 EDT 2008


> Von: "Shriramana Sharma"
> Hello.
> 
> I would like to use CMake to build some CMake-ready Qt-based
> applications on Windows using MinGW.
> 
> I get an error saying "Make was not found". I used
> -DCMAKE_MAKE_PROGRAM="<path to mingw>". But then I got an error saying
> C compiler could not compile the test program.
> 
> I tried on the CMake wiki but both the MinGW-related pages I found:
> 
> http://www.cmake.org/Wiki/CMake_MinGW_Compiler_Issues
> http://www.cmake.org/Wiki/CmakeMingw
> 
> did not solve my problem. Please can anyone give clear instructions as
> to how to use CMake with MinGW, especially for compiling Qt programs
> on Windows?
> 
> Thanks in advance.
> 
There are no special things to do. Looks like your PATH environment variable is missing the path to 'bin' directory from MinGW. Otherwise mingw32-make and gcc would be found by cmake without any additional parameters.


Christian
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger


More information about the CMake mailing list