<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>I have been trying to get cmake to work with MinGW.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have trolled around the net and looked for clues and tried
a bunch of things without success. Here are the particulars:<o:p></o:p></p>
<p class=MsoNormal>- cmake 2.6<o:p></o:p></p>
<p class=MsoNormal>- cmake installed C:\cmake<o:p></o:p></p>
<p class=MsoNormal>- mingw installed C:\mingw<o:p></o:p></p>
<p class=MsoNormal>- SET PATH=.;C:\mingw\bin;C:\cmake\bin<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Here’s what I get:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>S:\software\packages\utility\build>cmake -G "MinGW
Makefiles" ..<o:p></o:p></p>
<p class=MsoNormal>-- The C compiler identification is GNU<o:p></o:p></p>
<p class=MsoNormal>-- The CXX compiler identification is GNU<o:p></o:p></p>
<p class=MsoNormal>-- Check for working C compiler: C:/mingw/bin/gcc.exe<o:p></o:p></p>
<p class=MsoNormal>-- Check for working C compiler: C:/mingw/bin/gcc.exe --
broken<o:p></o:p></p>
<p class=MsoNormal>CMake Error at
C:/cmake/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):<o:p></o:p></p>
<p class=MsoNormal> The C compiler "C:/mingw/bin/gcc.exe" is
not able to compile a simple test<o:p></o:p></p>
<p class=MsoNormal> program.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> It fails with the following output:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> Change Dir:
S:/software/packages/utility/build/CMakeFiles/CMakeTmp<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> Run Build Command:C:/mingw/bin/mingw32-make.exe
"cmTryCompileExec/fast"<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> C:/mingw/bin/mingw32-make.exe -f
CMakeFiles\cmTryCompileExec.dir\build.make<o:p></o:p></p>
<p class=MsoNormal> CMakeFiles/cmTryCompileExec.dir/build<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> process_begin:
CreateProcess(C:\mingw\bin\mingw32-make.exe,<o:p></o:p></p>
<p class=MsoNormal> C:/mingw/bin/mingw32-make.exe -f
CMakeFiles\cmTryCompileExec.dir\build.make<o:p></o:p></p>
<p class=MsoNormal> CMakeFiles/cmTryCompileExec.dir/build, ...) failed.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> make (e=234): More data is available.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> mingw32-make.exe: *** [cmTryCompileExec/fast] Error
234<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> CMake will not be able to correctly generate this
project.<o:p></o:p></p>
<p class=MsoNormal>Call Stack (most recent call first):<o:p></o:p></p>
<p class=MsoNormal> CMakeLists.txt:1 (PROJECT)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>-- Configuring done<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>S:\software\packages\utility\build><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any ideas?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>-phil<o:p></o:p></p>
</div>
</body>
</html>