[CMake] Error using cygwin with Matlab2007a installed

David Cole david.cole at kitware.com
Thu Sep 27 11:38:37 EDT 2007


What happens if you type "gmake --help" or "which gmake" from the same
prompt...?

CMake should just use the PATH env variable to find the right gmake
first. If not there, it may look in some other well known places, but
if there is one in your PATH, it will use it...

Most likely considered a feature. :-)


On 9/27/07, Dirk Colbry <dirk at colbry.com> wrote:
> I got a new XP computer at work so I installed some of my standard tools
> (including cygwin and a new copy of MATLAB 2007a).  When I try to compile
> one of my cmake projects in cygwin, I get an new error (see end of message
> for error printout).  It seems that cmake is incorrectly associating an
> executable ( gmake.exe) in my MATLAB R2007a directory as the make program.
> Fortunately, there is an easy fix, all I need to do is redirect cmake to the
> correct file:
>
> $ cmake ../ThreeDID/
> -DCMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
>
> However, it seems odd to me that cmake would identify the MATLAB program as
> the proper make program.  Can someone explain the method cmake uses to
> identify the make program, and why it would pick the MATLAB program?  This
> would help me determine if the error I got is a "bug" or a "feature" of
> cmake.
>
> Thank you,
>
> Dirk
>
> $ cmake ../ThreeDID/
> -- Check for working C compiler: /usr/bin/gcc.exe
> -- Check for working C compiler: /usr/bin/gcc.exe -- broken
> CMake Error: The C compiler "/usr/bin/gcc.exe" is not able to compile a
> simple t
> est program.
> It fails with the following output:
>  c:/Program Files/Matlab/R2007a/bin/win32/gmake.exe -f
> CMakeFiles/cmTryCompileEx
> ec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
> gmake.exe[1]: Entering directory `C:/cygwin/home/Dirk
> Colbry/cyg2/CMakeFiles/CMa
> keTmp'
> /usr/bin/cmake.exe -E cmake_progress_report /home/Dirk\
> Colbry/cyg2/CMakeFiles/C
> MakeTmp/CMakeFiles 1
> process_begin: CreateProcess((null), /usr/bin/cmake.exe -E
> cmake_progress_report
>  "/home/Dirk Colbry/cyg2/CMakeFiles/CMakeTmp/CMakeFiles" 1,
> ...) failed.
> make (e=3): The system cannot find the path specified.
> gmake.exe[1]: ***
> [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 3
> gmake.exe[1]: Leaving directory `C:/cygwin/home/Dirk
> Colbry/cyg2/CMakeFiles/CMak
> eTmp'
> c:\Program Files\Matlab\R2007a\bin\win32\gmake.exe: ***
> [cmTryCompileExec/fast]
> Error 2
>
>
> CMake will not be able to correctly generate this project.
> -- Configuring done
>
> --
> Dr. Dirk Colbry
> Assistant Research Professor
> Center for Cognitive Ubiquitous Computing
> School of Computing and Informatics
> Arizona State University
> http://www.dirk.colbry.com/
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list