I've lately discovered I much prefer qmake to cmake...in that I can get qmake to work... plus Qt Creator works very well as an ide it turns out. Lucky for me, since eclipse decided it no longer wants to play nice with the latest version of GCC on windows.
I've found small details of your build environment that don't make a difference to the actual building can completely break cmake, such as the afore mentioned having shell tools on a windows machine in the path.I'm not sure how you've set things up, but CMake provides a different generator for the cases when the shell is included in the PATH, simply use MSYS Makefile (or similar).
I've been using SFML for my project in Xcode and it was beautiful so I decided to port it to windows with Code::Blocks.
I'm not sure how you've set things up, but CMake provides a different generator for the cases when the shell is included in the PATH, simply use MSYS Makefile (or similar).
Building C object
CMakeFiles/cmTryCompileExec2836876910.dir/testCCompiler.c.obj
/C/MinGW/bin/gcc.exe -o
CMakeFiles/cmTryCompileExec2836876910.dir/testCCompiler.c.obj -c
/C/Users/Jason/Downloads/SFML-master/SFML-master/CMakeFiles/CMakeTmp/testCCompiler.c
process_begin: CreateProcess(NULL, /C/MinGW/bin/gcc.exe -o
CMakeFiles/cmTryCompileExec2836876910.dir/testCCompiler.c.obj -c
/C/Users/Jason/Downloads/SFML-master/SFML-master/CMakeFiles/CMakeTmp/testCCompiler.c,
...) failed.
make (e=2): The system cannot find the file specified.
MSYS version fails when ran through either cmd.exe or sh.exe :(Not sure what you're doing then, but since I'm using different versions of MinGW, I haven't put anything into the PATH and only set the compiler bin dir whenever needed. A small batch script can do the trick...
This seems to be the same issue Eclipse is having with the latest Mingw version, namely it just fails to build anything without a useful output >.< I used to get around this by building an Eclipse makefile and running Eclipse headlessly, but since Eclipse started failing for the same reasons...yeeeah -__-Have you tried reinstalling CMake? Someone here had a similar issue and a reinstall fixed it.
@set PATH="C:\MinGW\bin"
"C:\cmake\bin\cmake" -G "MSYS Makefiles"
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/cmake/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test
program.
It fails with the following output:
Change Dir: C:/Users/Jason/Downloads/SFML-master/CMakeFiles/CMakeTmp
Run Build Command:C:/MinGW/bin/make.exe "cmTryCompileExec2428491674/fast"
C:/MinGW/bin/make.exe -f
CMakeFiles/cmTryCompileExec2428491674.dir/build.make
CMakeFiles/cmTryCompileExec2428491674.dir/build
make.exe[1]: Entering directory
`C:/Users/Jason/Downloads/SFML-master/CMakeFiles/CMakeTmp'
/C/cmake/bin/cmake.exe -E cmake_progress_report
/C/Users/Jason/Downloads/SFML-master/CMakeFiles/CMakeTmp/CMakeFiles 1
process_begin: CreateProcess(NULL, /C/cmake/bin/cmake.exe -E
cmake_progress_report
/C/Users/Jason/Downloads/SFML-master/CMakeFiles/CMakeTmp/CMakeFiles 1, ...)
failed.
make (e=2): The system cannot find the file specified.
make.exe[1]: ***
[CMakeFiles/cmTryCompileExec2428491674.dir/testCCompiler.c.obj] Error 2
make.exe[1]: Leaving directory
`C:/Users/Jason/Downloads/SFML-master/CMakeFiles/CMakeTmp'
make.exe: *** [cmTryCompileExec2428491674/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:17 (project)
-- Configuring incomplete, errors occurred!
"C:\cmake\bin\cmake" -G "MinGW Makefiles" -DCMAKE_MAKE_PROGRAM="C:\Mingw\bin\make"
"C:\cmake\bin\cmake" -G "MinGW Makefiles" -DCMAKE_MAKE_PROGRAM="C:\Mingw\bin\make"from the Git Shell worked...