<div>Hi,<br> <br>I am using CMAKE for the first time and ive run into a problem. Basically i have set where the source is and where to build the binaries. Then i add an entry. But when i configure the program seems to have trouble finding my compiler. I have Visual Studio 2008 Express Edition installed on a Windows 7 OS. The build log is as follows:<br>
(one thing, in here it says the log is stored in the build directory at ...\build\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm, but that doesnt get created. Was mentioned that this could be a permissions problem ,but im the only user on this laptop and its just in a folder in My Documents, so it shouldnt be an issue.)<br>
<br>Check for working CXX compiler using: Visual Studio 9 2008 <br>CMake Error: Remove failed on file: C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe: System Error: Permission denied<br>
Check for working CXX compiler using: Visual Studio 9 2008 -- broken<br>CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):<br>The C++ compiler "cl" is not able to compile a simple test program.<br>
It fails with the following output:<br>Change Dir: C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp<br>Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\VCExpress.exe<br>CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec<br>
Microsoft (R) Visual C++ Express Edition Version 9.0.30729.1.<br>Copyright (C) Microsoft Corp 2007. All rights reserved.<br>1>------ Build started: Project: cmTryCompileExec, Configuration: Debug<br>Win32 ------<br>1>Compiling...<br>
1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for<br>80x86<br>1>Copyright (C) Microsoft Corporation. All rights reserved.<br>1>cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\""<br>
/D "_MBCS" /FD /EHsc /RTCs /MDd /Fo"cmTryCompileExec.dir\Debug\\"<br>/Fd"C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug/cmTryCompileExec.pdb"<br>/W3 /c /Zi /TP /Zm1000<br>
1> .\testCXXCompiler.cxx<br>1>testCXXCompiler.cxx<br>1>Compiling manifest to resources...<br>1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1<br>1>Copyright (C) Microsoft Corporation. All rights reserved.<br>
1>Linking...<br>1>LINK : fatal error LNK1104: cannot open file<br>'C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe'<br>1>Build log was saved at<br>"<a>file://c:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm</a>"<br>
1>cmTryCompileExec - 1 error(s), 0 warning(s)<br>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped<br>==========<br>CMake will not be able to correctly generate this project.<br>Call Stack (most recent call first):<br>
CMakeLists.txt:8 (project)<br>Configuring incomplete, errors occurred!<br> <br>Does anyone have any ideas what might be going wrong. I have tried reinstalling VC++ again but it makes no difference. </div>
<div> </div>
<div>Cheers for any help,</div>
<div>Conor</div>