You might want to see if either CMake or Visual Studio is set to run as administrator - it looks like one of them probably did at one time but no longer does.  Deleting the whole build directory and trying again should work.<br>
<br>Ryan<br><br><div class="gmail_quote">On Tue, Sep 14, 2010 at 6:18 AM, Conor Downey <span dir="ltr">&lt;<a href="mailto:discodowney@gmail.com">discodowney@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>Hey,</div>
<div> </div>
<div>Sorry, dunno if its important but this is the guide to what ive been trying to use CMake for: <a href="http://sourceforge.net/apps/trac/glestae/wiki/CompileGuideWin" target="_blank">http://sourceforge.net/apps/trac/glestae/wiki/CompileGuideWin</a></div>


<div> </div>
<div>As far as i can tell i have all the code/files in the correct places.</div>
<div> </div>
<div>Cheers,</div>
<div>Conor<font color="#888888"><br><br></font></div><div><div></div><div class="h5">
<div class="gmail_quote">On Tue, Sep 14, 2010 at 12:16 PM, Conor Downey <span dir="ltr">&lt;<a href="mailto:discodowney@gmail.com" target="_blank">discodowney@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div>Hi,</div>
<div> </div>
<div>Ive downloaded 2010 Express but the exact same problem still exists. Here is the build log (i am using CMake 2.8.2):</div>
<div> </div>
<div>Check for working CXX compiler using: Visual Studio 10 
<div>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">CMake Error: Remove failed on file: C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe: System Error: Permission denied</span></p>

</div>
<p style="text-indent: 0px; margin: 0px;">Check for working CXX compiler using: Visual Studio 10 -- broken</p>
<div>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">The C++ compiler &quot;cl&quot; is not able to compile a simple test program.</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">It fails with the following output:</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Change Dir: C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p></div>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">cmTryCompileExec.vcxproj /p:Configuration=Debug</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Microsoft (R) Build Engine Version 4.0.30319.1</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">[Microsoft .NET Framework, Version 4.0.30319.1]</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Copyright (C) Microsoft Corporation 2007. All rights reserved.</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Build started 14/09/2010 12:13:04.</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Project</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">&quot;C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj&quot;</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">on node 1 (default targets).</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">InitializeBuildStatus:</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Creating &quot;cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild&quot; because &quot;AlwaysCreate&quot; was specified.</span></p>

<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">ClCompile:</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">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 &quot;CMAKE_INTDIR=\&quot;Debug\&quot;&quot; /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo&quot;cmTryCompileExec.dir\Debug\\&quot; /Fd&quot;C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb&quot; /Gd /TP /analyze- /errorReport:queue testCXXCompiler.cxx /Zm1000 </span></p>


<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86</span></p>
<div>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Copyright (C) Microsoft Corporation. All rights reserved.</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p></div>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">cl /c /Zi /nologo- /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D &quot;CMAKE_INTDIR=\&quot;Debug\&quot;&quot; /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo&quot;cmTryCompileExec.dir\Debug\\&quot; /Fd&quot;C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb&quot; /Gd /TP /analyze- /errorReport:queue testCXXCompiler.cxx /Zm1000 </span></p>


<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">cl : Command line warning D9035: option &#39;nologo-&#39; has been deprecated and</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">will be removed in a future release</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">[C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">testCXXCompiler.cxx</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">ManifestResourceCompile:</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo&quot;cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res&quot; cmTryCompileExec.dir\Debug\cmTryCompileExec_manifest.rc </span></p>


<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Link:</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:&quot;C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe&quot; /VERSION:&quot;0.0&quot; /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:&quot;cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest&quot; /MANIFESTUAC:&quot;level=&#39;asInvoker&#39; uiAccess=&#39;false&#39;&quot; /DEBUG /PDB:&quot;C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb&quot; /SUBSYSTEM:CONSOLE /STACK:&quot;10000000&quot; /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:&quot;C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib&quot; /MACHINE:X86 cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res</span></p>


<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">cmTryCompileExec.dir\Debug\testCXXCompiler.obj /machine:X86 /debug </span></p>
<div>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">LINK : fatal error LNK1104: cannot open file</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">&#39;C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe&#39;</span></p></div>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">[C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Done Building Project</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">&quot;C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj&quot;</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">(default targets) -- FAILED.</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Build FAILED.</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">&quot;C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj&quot;</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">(default target) (1) -&gt;</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">(ClCompile target) -&gt; </span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">cl : Command line warning D9035: option &#39;nologo-&#39; has been deprecated and will be removed in a future release [C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]</span></p>


<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">&quot;C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj&quot;</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">(default target) (1) -&gt;</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">(Link target) -&gt; </span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">LINK : fatal error LNK1104: cannot open file &#39;C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe&#39; [C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]</span></p>


<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">1 Warning(s)</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">1 Error(s)</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Time Elapsed 00:00:04.77</span></p>
<div>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);"></span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">CMake will not be able to correctly generate this project.</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">Call Stack (most recent call first):</span></p>
<p style="text-indent: 0px; margin: 0px;"><span style="color: rgb(255, 0, 0);">CMakeLists.txt:8 (project)</span></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px; color: rgb(255, 0, 0);"></p>
<p style="text-indent: 0px; margin: 0px;">Configuring incomplete, errors occurred!<br><br></p></div></div>
<div>
<div></div>
<div>
<div class="gmail_quote">On Tue, Sep 14, 2010 at 9:39 AM, Micha Renner <span dir="ltr">&lt;<a href="mailto:Micha.Renner@t-online.de" target="_blank">Micha.Renner@t-online.de</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">There were and there are problems with CMake and the Visual Studio<br>Express Versions.<br>
See: <a href="http://www.cmake.org/pipermail/cmake/2010-May/036962.html" target="_blank">http://www.cmake.org/pipermail/cmake/2010-May/036962.html</a> (macros)<br>
<br>I use the 2010 Express Version, which works astonishingly good. There<br>are still some minor problems (see<br><a href="http://www.cmake.org/pipermail/cmake/2010-June/037531.html" target="_blank">http://www.cmake.org/pipermail/cmake/2010-June/037531.html</a>), but for<br>

small projects it is ok.<br>So I recommend, you switch to 2010er version and use the 2.8.2 version<br>of CMake.<br><br>Greetings<br><br>Micha<br><br><br><br><br>_______________________________________________<br>Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>

<br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>

<br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div></div></blockquote></div>

<br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>
Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br><a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>