[CMake] Unix Makefiles for MinGW | Generator for MinGW

William A. Hoffman billlist at nycap.rr.com
Wed Feb 8 19:34:50 EST 2006


At 07:25 PM 2/8/2006, Martin Baumann wrote:
>Hi,
>
>I have massive problems configuring VTK-5.0 source with CMake for MinGW.
>What is the best way to do so?

You should be able to use the release cmake.  The trick is you have to run
CMakeSetup from the command prompt of msys, and select unix makefiles.
Then things should work.

>I tried to create Unix-Makefiles and compile with MinGW via MSYS. But the variables
>for make tool and compiler is not set by default in my system. I did so with commands
>set CMAKE_MAKE_PROGRAM=c:\programs\...
>but this didn't help!
>
>Then I read an mail on this list:
>
>//////////////////////////////////////////////////////////////////
>I have just checked in two new generators for CMake.
>If you cvs checkout cmake, you will find the following
>new generators:
>
> MSYS Makefiles              = Generates MSYS makefiles.
> MinGW Makefiles             = Generates a make file for use with
>                               mingw32-make.
>The MSys makefiles are for using the make and /bin/sh
>that comes with msys to do the build.  The MinGW makefiles
>are for using mingw32-make and the windows command shell.
>Also, the problem with running CMakeSetup from the Start menu
>and make crashing has been fixed, so you do not have to run
>CMakeSetup from an special shell or environment.  MinGW and
>MSYS are not even required to be in the PATH.
>
>-Bill
>//////////////////////////////////////////////////////////////////
>
>
>That sounds good. Maybe this is a good way?
>I just installed WinCVS and connected to the CVS-Server of CMake. Now what do I have to
>download to use the new generator?

You have to build cmake, you can run the bootstrap script, then make.
I would recommend the first approach.

-Bill



More information about the CMake mailing list