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:

Qt Code:
  1. -- The C compiler identification is GNU
  2. -- The CXX compiler identification is GNU
  3. -- Check for working C compiler: C:/QtSDK/mingw/bin/gcc.exe
  4. -- Check for working C compiler: C:/QtSDK/mingw/bin/gcc.exe -- broken
  5. CMake Error at C:/Program Files x86/CMake 2.8/share/cmake-2.8/Modules/CMakeTestC
  6. Compiler.cmake:52 (MESSAGE):
  7. The C compiler "C:/QtSDK/mingw/bin/gcc.exe" is not able to compile a simple
  8. test program.
  9.  
  10. It fails with the following output:
  11.  
  12. Change Dir: C:/Users/Yusuf Smith/hg/qtm-1.4/CMakeFiles/CMakeTmp
  13.  
  14.  
  15.  
  16. Run Build Command:C:/QtSDK/mingw/bin/mingw32-make.exe
  17. "cmTryCompileExec/fast"
  18.  
  19. C:/QtSDK/mingw/bin/mingw32-make.exe -f
  20. CMakeFiles\cmTryCompileExec.dir\build.make
  21. CMakeFiles/cmTryCompileExec.dir/build
  22.  
  23. C:/QtSDK/mingw/bin/mingw32-make.exe: Interrupt/Exception caught (code =
  24. 0xc0000005, addr = 0x41f96e)
  25.  
  26.  
  27.  
  28.  
  29.  
  30. CMake will not be able to correctly generate this project.
  31. Call Stack (most recent call first):
  32. CMakeLists.txt:1 (project)
  33.  
  34.  
  35. -- 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?