[CMake] CMake Problem with Visual Studio 2008 Express and Windows 7
Conor Downey
discodowney at gmail.com
Mon Sep 13 08:03:57 EDT 2010
Hi,
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:
(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.)
Check for working CXX compiler using: Visual Studio 9 2008
CMake Error: Remove failed on file:
C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe:
System Error: Permission denied
Check for working CXX compiler using: Visual Studio 9 2008 -- broken
CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):
The C++ compiler "cl" is not able to compile a simple test program.
It fails with the following output:
Change Dir:
C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\VCExpress.exe
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
Microsoft (R) Visual C++ Express Edition Version 9.0.30729.1.
Copyright (C) Microsoft Corp 2007. All rights reserved.
1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------
1>Compiling...
1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for
80x86
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\""
/D "_MBCS" /FD /EHsc /RTCs /MDd /Fo"cmTryCompileExec.dir\Debug\\"
/Fd"C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TP /Zm1000
1> .\testCXXCompiler.cxx
1>testCXXCompiler.cxx
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>LINK : fatal error LNK1104: cannot open file
'C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe'
1>Build log was saved at
"
file://c:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm
"
1>cmTryCompileExec - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:8 (project)
Configuring incomplete, errors occurred!
Does anyone have any ideas what might be going wrong. I have tried
reinstalling VC++ again but it makes no difference.
Cheers for any help,
Conor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100913/3955d537/attachment.htm>
More information about the CMake
mailing list