Hi everyone,
I recently upgraded to Windows 7 and decided to use the 64-bit version (I had previously been using 32-bit Vista). I've been developing using Qt 4 with MinGW and CMake. However, when I tried running CMake on my project, it failed to run a test compile and aborted. This was the output:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: C:/QtSDK/mingw/bin/gcc.exe
-- Check for working C compiler: C:/QtSDK/mingw/bin/gcc.exe -- broken
CMake Error at C:/Program Files x86/CMake 2.8/share/cmake-2.8/Modules/CMakeTestC
Compiler.cmake:52 (MESSAGE):
The C compiler "C:/QtSDK/mingw/bin/gcc.exe" is not able to compile a simple
test program.
It fails with the following output:
Change Dir: C:/Users/Yusuf Smith/hg/qtm-1.4/CMakeFiles/CMakeTmp
Run Build Command:C:/QtSDK/mingw/bin/mingw32-make.exe
"cmTryCompileExec/fast"
C:/QtSDK/mingw/bin/mingw32-make.exe -f
CMakeFiles\cmTryCompileExec.dir\build.make
CMakeFiles/cmTryCompileExec.dir/build
C:/QtSDK/mingw/bin/mingw32-make.exe: Interrupt/Exception caught (code =
0xc0000005, addr = 0x41f96e)
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
-- Configuring incomplete, errors occurred!
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: C:/QtSDK/mingw/bin/gcc.exe
-- Check for working C compiler: C:/QtSDK/mingw/bin/gcc.exe -- broken
CMake Error at C:/Program Files x86/CMake 2.8/share/cmake-2.8/Modules/CMakeTestC
Compiler.cmake:52 (MESSAGE):
The C compiler "C:/QtSDK/mingw/bin/gcc.exe" is not able to compile a simple
test program.
It fails with the following output:
Change Dir: C:/Users/Yusuf Smith/hg/qtm-1.4/CMakeFiles/CMakeTmp
Run Build Command:C:/QtSDK/mingw/bin/mingw32-make.exe
"cmTryCompileExec/fast"
C:/QtSDK/mingw/bin/mingw32-make.exe -f
CMakeFiles\cmTryCompileExec.dir\build.make
CMakeFiles/cmTryCompileExec.dir/build
C:/QtSDK/mingw/bin/mingw32-make.exe: Interrupt/Exception caught (code =
0xc0000005, addr = 0x41f96e)
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
-- Configuring incomplete, errors occurred!
To copy to clipboard, switch view to plain text mode
I have seen in some places the solution of making sure there are no parentheses in the PATH (such as "Program Files (x86)" which is found on most 64-bit Windows installations). Although this exists on my system, it's not in the PATH when running the Qt command prompt.
Any ideas?
Bookmarks