[CMake] CMake Problem with Visual Studio 2008 Express and Windows 7

Conor Downey discodowney at gmail.com
Tue Sep 14 07:18:29 EDT 2010


Hey,

Sorry, dunno if its important but this is the guide to what ive been trying
to use CMake for:
http://sourceforge.net/apps/trac/glestae/wiki/CompileGuideWin

As far as i can tell i have all the code/files in the correct places.

Cheers,
Conor

On Tue, Sep 14, 2010 at 12:16 PM, Conor Downey <discodowney at gmail.com>wrote:

> Hi,
>
> Ive downloaded 2010 Express but the exact same problem still exists. Here
> is the build log (i am using CMake 2.8.2):
>
> Check for working CXX compiler using: Visual Studio 10
>
> 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 10 -- 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:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
>
> cmTryCompileExec.vcxproj /p:Configuration=Debug
>
> Microsoft (R) Build Engine Version 4.0.30319.1
>
> [Microsoft .NET Framework, Version 4.0.30319.1]
>
> Copyright (C) Microsoft Corporation 2007. All rights reserved.
>
>  Build started 14/09/2010 12:13:04.
>
> Project
>
>
> "C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
>
> on node 1 (default targets).
>
> InitializeBuildStatus:
>
> Creating "cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild"
> because "AlwaysCreate" was specified.
>
> ClCompile:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi
> /nologo- /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec.dir\Debug\\"
> /Fd"C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
> /Gd /TP /analyze- /errorReport:queue testCXXCompiler.cxx /Zm1000
>
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for
> 80x86
>
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> cl /c /Zi /nologo- /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec.dir\Debug\\"
> /Fd"C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
> /Gd /TP /analyze- /errorReport:queue testCXXCompiler.cxx /Zm1000
>
> cl : Command line warning D9035: option 'nologo-' has been deprecated and
>
> will be removed in a future release
>
>
> [C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
>
>  testCXXCompiler.cxx
>
> ManifestResourceCompile:
>
> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo
> /fo"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res"
> cmTryCompileExec.dir\Debug\cmTryCompileExec_manifest.rc
>
> Link:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe
> /ERRORREPORT:QUEUE
> /OUT:"C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe"
> /VERSION:"0.0" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib
> winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib
> advapi32.lib /MANIFEST
> /ManifestFile:"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest"
> /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
> /PDB:"C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb"
> /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT
> /IMPLIB:"C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib"
> /MACHINE:X86
> cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res
>
> cmTryCompileExec.dir\Debug\testCXXCompiler.obj /machine:X86 /debug
>
> LINK : fatal error LNK1104: cannot open file
>
>
> 'C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe'
>
>
> [C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
>
>  Done Building Project
>
>
> "C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
>
> (default targets) -- FAILED.
>
>  Build FAILED.
>
>
> "C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
>
> (default target) (1) ->
>
> (ClCompile target) ->
>
> cl : Command line warning D9035: option 'nologo-' has been deprecated and
> will be removed in a future release
> [C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
>
>
> "C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
>
> (default target) (1) ->
>
> (Link target) ->
>
> LINK : fatal error LNK1104: cannot open file
> 'C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe'
> [C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
>
>  1 Warning(s)
>
> 1 Error(s)
>
>  Time Elapsed 00:00:04.77
>
>   CMake will not be able to correctly generate this project.
>
> Call Stack (most recent call first):
>
> CMakeLists.txt:8 (project)
>
>  Configuring incomplete, errors occurred!
>
>   On Tue, Sep 14, 2010 at 9:39 AM, Micha Renner <Micha.Renner at t-online.de>wrote:
>
>> There were and there are problems with CMake and the Visual Studio
>> Express Versions.
>> See: http://www.cmake.org/pipermail/cmake/2010-May/036962.html (macros)
>>
>> I use the 2010 Express Version, which works astonishingly good. There
>> are still some minor problems (see
>> http://www.cmake.org/pipermail/cmake/2010-June/037531.html), but for
>> small projects it is ok.
>> So I recommend, you switch to 2010er version and use the 2.8.2 version
>> of CMake.
>>
>> Greetings
>>
>> Micha
>>
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100914/9a3b2486/attachment.htm>


More information about the CMake mailing list