<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transational//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
</HEAD>
<BODY>Hello Eric,<br><br>thank you for your suggestions and support<br><br>I am going to try to detail more what I did:<br><br>- Install CMake on Program Files/CMake 2.8/bin<br>- Install CodeBlocks with its windows installer at the same time he asks if we want the gcc compiler I said ok<br>and he installed MinGW in Program Files/CodeBlocks/MinGW<br>- as you suggested he didn't set the path variable so now the path variable are:<br>C:\Program Files\CMake 2.8\bin;C:\Program Files\CodeBlocks\MinGW;<br>- I created a codeblock printhello project named pCMake<br><br>then at this step I didn't know what to do exactly:<br><br>First Attempt:<br>I put a CMakeLists.txt file in the codeblocks "Others" folders with the file containing:<br>cmake_minimum_required(2.8)<br>project(pCMake)<br>add_executable(pCMake main.cpp)<br><br>and in the Project Properties/Project Settings : I set :<br>Makefile:CMakeLists and check "This is a custom MakeFile"<br><br>I run a build and get the Result:<br>Running command: make.exe -f CMakeLists Debug<br>Execution of 'make.exe -f CMakeLists Debug' in 'C:\pCMake' failed.<br><br>Second Attempt:<br>use CMake cmake-gui interface <br>where is the source code:C:\pCMake<br>where to buid the binaries:C:\pCMake<br><br>I push the button: Generate<br>specify the generator for this project:<br>select in the combo :CodeBlocks-MinGW MakeFiles<br>check Use Default native compilers<br><br>result:<br><span style=" color:#ff0000;">CMake Error at CMakeLists.txt:1 (cmake_minimum_required):</span>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;"> cmake_minimum_required called with unknown argument "2.8".</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;">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.</span></p><br>thanks again if you can suggest something<br>pascal<br><br><br><br><br><br><br>
---- Message d'origine ----<br>
>De : "Eric Noulard" <eric.noulard@gmail.com><br>
>À : pasparis@noos.fr<br>
>Objet : Re: [CMake] message could not create named generator CodeBlocks -MinGW Makefiles<br>
>Date : 17/02/2012 09:47:43 CET<br>
>Copie à : cmake@cmake.org<br>
><br>
>2012/2/16 <pasparis@noos.fr>:<br>
> > Hello,<br>
> ><br>
> > I am trying to use CMake with codeblocks on windows, I created a simple<br>
> > project in the folder pCMake<br>
> > when I use the CMake interface I got the message:<br>
> <br>
> You mean "graphical interface" where you select the generator from a list?<br>
> <br>
> > CMake Error: CMake was unable to find a build program corresponding to<br>
> > "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to<br>
> > select a different build tool.<br>
> ><br>
> > and following the tutorial from florian-goujeon (CMake,CodeBlock), it's<br>
> > advise to execute a cmake --help from a console in the project folder in<br>
> > order to get the generator list<br>
> > codeblocks -MinGW Makefiles is listed but when I execute<br>
> > cMake . -G"CodeBlocks -MinGW Makefiles" I get also the following message<br>
> > CMake Error:could not create names generator CodeBlocks -MinGW Makefiles<br>
> <br>
> There must be a typo in the generator name you used, something like a<br>
> missing space after<br>
> the dash '-' or something similar.<br>
> <br>
> > I installed codeblocks with the windows installer with gcc compiler and<br>
> > cmake with the windows installer<br>
> ><br>
> > I don't know what to do, any suggestions will be very helpful<br>
> <br>
> From your first error message<br>
> > CMake was unable to find a build program corresponding to<br>
> > "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set.<br>
> <br>
> I would say that CMake is not finding mingw make program because it is<br>
> not in your PATH.<br>
> Did you add mingw tools to your path after installing Code::Blocks?<br>
> I don't remember whether if Code::Blocks does that by itself or not.<br>
> <br>
> -- <br>
> Erk<br>
> Membre de l'April - « promouvoir et défendre le logiciel libre » -<br>
> http://www.april.org<br>
> </BODY></HTML>