[CMake] help with CMake and Eclipse (using MinGW)

Eric Noulard eric.noulard at gmail.com
Sun Sep 30 05:11:50 EDT 2007


2007/9/29, Trevis Crane <trevis.crane at gmail.com>:
> Hi all,
>
> Using WinXP Pro, I installed Eclipse Europa and CDT using the Wascana
> package that installs the MinGW toolchain as well.  I want to use/develop
> VTK applications with this, so I've been trying to use CMake to start the
> process.  However, I'm not having any luck creating the makefiles.

I have a similar configuration.
Using this you have 2 options:

   1) put  <install_path>\wascana\msys   (path to msys exe like
sh.exe, make.exe)
        and <install_path>\wascana\mingw (path to mingw exe compilers tools)

        in your path and use "Unix Makefile Generator" (not MinGW)

   2) put "only" <install_path>\wascana\mingw in your path
       and use "MinGW Makefile Generator"
       With this option you need "windows native" make command
       like the one you may find in GnuWin32:
       http://gnuwin32.sourceforge.net/
       for installing make you may use the "setup link"
       http://gnuwin32.sourceforge.net/downlinks/make.php

       You should add Gnuwin32/bin in your path in order to
       make CMake find make.exe
       Or you should browse+specify the unfound command using
       the CMakeSetup GUI.
       (you may need to toggle the check box for "Advanced Variables")

>
> I run CMake 2.4.7, set my source directory which has the CMakeLists.txt file
> in it (from the VTK dist), and I set a directory for my binaries.  When I
> click on configure and select MinGW, I get the following error:
>
> "CMake Error: CMake was unable to find a build program corresponding to
> "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set.  You probably need to
> select a different build tool."

   CMake did not find the "make.exe" command need for MinGW Makefiles.

>
> Any other ideas how to fix this?
>

   As a side note you should know that the forthcoming CMake 2.6 will
   have a CDT4 - project file generator.
       http://www.cmake.org/Wiki/Eclipse_CDT4_Generator_Development
    you may try it using CMake nightly CVS Windows binary installer
       http://www.cmake.org/files/vCVS

    The usage of the CDT4 generator WILL NOT solve your current problem
    since CDT4 has "sub-generators" i.e.
          CDT4 - MinGW Makefiles
          CDT4 - Unix Makefiles
          etc...
     that is while generating CDT4 project file you still need to generate
     "underlying" makefiles.

-- 
Erk


More information about the CMake mailing list