<div>Hi,</div>
<div> </div>
<div>That didnt make any difference. I am still getting the same error. </div>
<div>There seems to be some permission problems. Ryan mentioned that it looked like either Cmake or VC++ had ran as administrators but no longer do. Im not sure how to check that. But i did as he said and deleted the build directory but it had no effect. </div>
<div> </div>
<div>Regards,</div>
<div>Conor<br><br></div>
<div class="gmail_quote">On Thu, Sep 16, 2010 at 3:27 PM, Kelly Thompson <span dir="ltr"><<a href="mailto:kgt@lanl.gov">kgt@lanl.gov</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">Hi Conor,</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">I don’t have VS at work, so I’ll need to wait until I’m at home tonight to double check my instructions. However, from my memory, I recall that there is a “command prompt” option in the Visual Studio start menu group (start -> visual studio -> command prompt). Starting this program will start cmd.exe (a DOS shell) with the proper environment. Once you have that shell open, you should be able to execute ‘cmake-gui’</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">After CMake has generated the solution files for your project you can simply double click on the .sln file from the file explorer.</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">-kt</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></p>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: blue 1.5pt solid; PADDING-BOTTOM: 0in; PADDING-LEFT: 4pt; PADDING-RIGHT: 0in; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in">
<div>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<p class="MsoNormal"><b><span style="FONT-SIZE: 10pt">From:</span></b><span style="FONT-SIZE: 10pt"> Conor Downey [mailto:<a href="mailto:discodowney@gmail.com" target="_blank">discodowney@gmail.com</a>] <br><b>Sent:</b> Thursday, September 16, 2010 5:35 AM<br>
<b>To:</b> <a href="mailto:kgt@lanl.gov" target="_blank">kgt@lanl.gov</a>
<div>
<div></div>
<div class="h5"><br><b>Subject:</b> Re: [CMake] CMake Problem with Visual Studio 2008 Express and Windows 7</div></div></span>
<p></p></p></div></div>
<div>
<div></div>
<div class="h5">
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Hi Kelly,</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">Can you tell me how to execute CMake from the Visual Studio Command Prompt?</p></div>
<div>
<p class="MsoNormal">Cheers,</p></div>
<div>
<p class="MsoNormal">Conor</p></div>
<div>
<p class="MsoNormal">On Tue, Sep 14, 2010 at 3:06 PM, Kelly Thompson <<a href="mailto:kgt@lanl.gov" target="_blank">kgt@lanl.gov</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">Conor,</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">You must execute CMake from the Visual Studio Command Prompt. If you try to run CMake from the start menu (w/o the VS environment), it won’t be able to find the compiler because MSVC doesn’t setup its environment outside of the VS GUI or the VS command prompt.</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">Could this be the cause of the errors listed below?</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">-kt</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></p>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: blue 1.5pt solid; PADDING-BOTTOM: 0in; PADDING-LEFT: 4pt; PADDING-RIGHT: 0in; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in">
<div>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<p class="MsoNormal"><b><span style="FONT-SIZE: 10pt">From:</span></b><span style="FONT-SIZE: 10pt"> <a href="mailto:cmake-bounces@cmake.org" target="_blank">cmake-bounces@cmake.org</a> [mailto:<a href="mailto:cmake-bounces@cmake.org" target="_blank">cmake-bounces@cmake.org</a>] <b>On Behalf Of </b>Conor Downey<br>
<b>Sent:</b> Tuesday, September 14, 2010 5:18 AM<br><b>To:</b> Micha Renner<br><b>Cc:</b> <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a><br><b>Subject:</b> Re: [CMake] CMake Problem with Visual Studio 2008 Express and Windows 7</span></p>
</div></div>
<div>
<div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Hey,</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">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></p>
</div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">As far as i can tell i have all the code/files in the correct places.</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">Cheers,</p></div>
<div>
<p style="MARGIN-BOTTOM: 12pt" class="MsoNormal">Conor</p></div>
<div>
<p class="MsoNormal">On Tue, Sep 14, 2010 at 12:16 PM, Conor Downey <<a href="mailto:discodowney@gmail.com" target="_blank">discodowney@gmail.com</a>> wrote:</p>
<div>
<p class="MsoNormal">Hi,</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">Ive downloaded 2010 Express but the exact same problem still exists. Here is the build log (i am using CMake 2.8.2):</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">Check for working CXX compiler using: Visual Studio 10 </p>
<div>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">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="MARGIN: 0in 0in 0pt">Check for working CXX compiler using: Visual Studio 10 -- broken</p>
<div>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">The C++ compiler "cl" is not able to compile a simple test program.</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">It fails with the following output:</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Change Dir: C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp</span></p></div>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">cmTryCompileExec.vcxproj /p:Configuration=Debug</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Microsoft (R) Build Engine Version 4.0.30319.1</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">[Microsoft .NET Framework, Version 4.0.30319.1]</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Copyright (C) Microsoft Corporation 2007. All rights reserved.</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Build started 14/09/2010 12:13:04.</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Project</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">"C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">on node 1 (default targets).</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">InitializeBuildStatus:</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Creating "cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild" because "AlwaysCreate" was specified.</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">ClCompile:</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">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 </span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86</span></p>
<div>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Copyright (C) Microsoft Corporation. All rights reserved.</span></p></div>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">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 </span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">cl : Command line warning D9035: option 'nologo-' has been deprecated and</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">will be removed in a future release</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">[C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">testCXXCompiler.cxx</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">ManifestResourceCompile:</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">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 </span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Link:</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">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</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">cmTryCompileExec.dir\Debug\testCXXCompiler.obj /machine:X86 /debug </span></p>
<div>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">LINK : fatal error LNK1104: cannot open file</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">'C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe'</span></p></div>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">[C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Done Building Project</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">"C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">(default targets) -- FAILED.</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Build FAILED.</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">"C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">(default target) (1) -></span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">(ClCompile target) -> </span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">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]</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">"C:\Users\Downey\Documents\College\Masters\Gae\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">(default target) (1) -></span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">(Link target) -> </span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">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]</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">1 Warning(s)</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">1 Error(s)</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Time Elapsed 00:00:04.77</span></p>
<div>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">CMake will not be able to correctly generate this project.</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">Call Stack (most recent call first):</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="COLOR: red">CMakeLists.txt:8 (project)</span></p>
<p style="MARGIN-BOTTOM: 12pt">Configuring incomplete, errors occurred!</p></div></div>
<div>
<div>
<div>
<p class="MsoNormal">On Tue, Sep 14, 2010 at 9:39 AM, Micha Renner <<a href="mailto:Micha.Renner@t-online.de" target="_blank">Micha.Renner@t-online.de</a>> wrote:</p>
<p class="MsoNormal">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></p></div>
<p class="MsoNormal"> </p></div></div></div>
<p class="MsoNormal"> </p></div></div></div></div></div></div>
<p class="MsoNormal"> </p></div></div></div></div></div></blockquote></div><br>