Looks to me like you&#39;re using the cygwin cmake.<br><br>Use the native Windows cmake instead for generating with the &quot;MSYS Makefiles&quot; generator.<br><br>They differ in how they treat paths to file names.<br><br>
<br><div class="gmail_quote">On Fri, Apr 29, 2011 at 9:01 PM, David Henderson <span dir="ltr">&lt;<a href="mailto:dnadavewa@yahoo.com">dnadavewa@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I&#39;m having trouble compiling a project using cmake.  Here is the output from the<br>
command line execution of the offending line of my Makefile on Windows 7 64bit:<br>
<br>
<br>
E:&gt; cmake -G &quot;MSYS Makefiles&quot; ../src/explorergui -DR_LIBRARIES=${LIBR}<br>
CMakeCache.txt -DR_INCLUDES=${R_INCLUDE_DIR}<br>
-DCMAKE_INSTALL_PREFIX=../inst/libs/<br>
-- The C compiler identification is GNU<br>
-- The CXX compiler identification is GNU<br>
-- Check for working C compiler: C:/Rtools/MinGW/bin/gcc.exe<br>
-- Check for working C compiler: C:/Rtools/MinGW/bin/gcc.exe -- broken<br>
CMake Error at C:/CMake-2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52<br>
(MESSAGE):<br>
  The C compiler &quot;C:/Rtools/MinGW/bin/gcc.exe&quot; is not able to compile a<br>
  simple test program.<br>
<br>
  It fails with the following output:<br>
<br>
   Change Dir:<br>
E:/workspace/GSDesignGUI/package/gsDesignExplorer/explorergui-build/CMakeFiles/CMakeTmp<br>
<br>
<br>
<br>
<br>
  Run Build Command:C:/Rtools/bin/make.exe &quot;cmTryCompileExec/fast&quot;<br>
<br>
  /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make<br>
  CMakeFiles/cmTryCompileExec.dir/build<br>
<br>
  make[1]: Entering directory<br>
  `/cygdrive/e/workspace/GSDesignGUI/package/gsDesignExplorer/explorergui-build/<br>
CMakeFiles/CMakeTmp&#39;<br>
<br>
<br>
  /C/CMake-2.8/bin/cmake.exe -E cmake_progress_report<br>
  /E/workspace/GSDesignGUI/package/gsDesignExplorer/explorergui-build/CMakeFiles<br>
/CMakeTmp/CMakeFiles<br>
  1<br>
<br>
  /C/CMake-2.8/bin/cmake.exe: not found<br>
<br>
  make[1]: Leaving directory<br>
  `/cygdrive/e/workspace/GSDesignGUI/package/gsDesignExplorer/explorergui-build/<br>
CMakeFiles/CMakeTmp&#39;<br>
<br>
<br>
  make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj] Error<br>
  127<br>
<br>
  make: *** [cmTryCompileExec/fast] Error 2<br>
<br>
<br>
<br>
<br>
<br>
  CMake will not be able to correctly generate this project.<br>
Call Stack (most recent call first):<br>
  CMakeLists.txt:3 (project)<br>
<br>
<br>
-- Configuring incomplete, errors occurred!<br>
<br>
E:&gt;<br>
<br>
<br>
<br>
cmake is in C:\CMake-2.8\bin, so why am I getting this error?  I initially<br>
thought the problem was with the space used in Program Files, but moving cmake<br>
2.8 to the root didn&#39;t seem to fix the error.  Any idea on what is going on?<br>
<br>
Thanks!!<br>
<br>
Dave H<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>