[CMake] Fwd: Fwd: Help with CMAKE

Sweety Pie sweetyp198612 at gmail.com
Wed Mar 28 02:01:38 EDT 2012


Any one can advice plz???


Yes the VC++ runs a simple code perfectly without the CMAKE
but I don't have the Microsoft Windows SDK   in the start menu and when i
checked this link

http://msdn.microsoft.com/en-us/library/windows/desktop/ms759194(v=vs.85).aspx


it says install the Core SDK which I didn't find there. Any ideas which one
shall I install??


On 28 March 2012 01:01, David Cole <david.cole at kitware.com> wrote:

> In the Start menu, do you have a "Microsoft Windows SDK ..."?
>
> If not, install it.
>
> If so, please verify that you can build a simple hello world command
> line Win32 app WITHOUT CMake before trying to use CMake. CMake needs
> Visual Studio to be able to build a simple app before it can be
> useful.
>
>
> On Tue, Mar 27, 2012 at 3:17 PM, Sweety Pie <sweetyp198612 at gmail.com>
> wrote:
> > I have installed Cmake 2.8.7 but still the same error occures. How can I
> > know whether the corresponding Windows Platform
> > SDK installed is proper or not?
> >
> >
> >
> > On 27 March 2012 15:33, David Cole <david.cole at kitware.com> wrote:
> >>
> >> On Tue, Mar 27, 2012 at 4:37 AM, Sweety Pie <sweetyp198612 at gmail.com>
> >> wrote:
> >> > The visual studio runs perfectly but the compiler in the Cmake shows
> >> > this
> >> > error:
> >> >
> >> > Check for working C compiler using: Visual Studio 10
> >> >
> >> > Check for working C compiler using: Visual Studio 10 -- broken
> >> >
> >> > CMake Error at C:/Program Files (x86)/CMake
> >> > 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
> >> >
> >> > The C compiler "cl" is not able to compile a simple test program.
> >> >
> >> > It fails with the following output:
> >> >
> >> > Change Dir: C:/Program Files (x86)/CGAL-3.8/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.261]
> >> >
> >> > Copyright (C) Microsoft Corporation 2007. All rights reserved.
> >> >
> >> > Build started 3/27/2012 11:04:22 AM.
> >> >
> >> > Project "C:\Program Files
> >> >
> >> > (x86)\CGAL-3.8\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- /MDd /GS /fp:precise
> /Zc:wchar_t
> >> > /Zc:forScope /Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Program Files
> >> > (x86)/CGAL-3.8/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" /Gd /TC
> >> > /analyze- /errorReport:queue testCCompiler.c /Zm1000 /GZ
> >> >
> >> > cl : Command line warning D9035: option 'GZ' has been deprecated and
> >> > will
> >> >
> >> > be removed in a future release [C:\Program Files
> >> >
> >> > (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
> >> >
> >> > cl : Command line warning D9036: use 'RTC1' instead of 'GZ'
> [C:\Program
> >> >
> >> > Files (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
> >> >
> >> > testCCompiler.c
> >> >
> >> > 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:\Program Files
> >> > (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe"
> >> > /VERSION:"0.0" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib
> >> > winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
> >> > oleaut32.lib
> >> > uuid.lib odbc32.lib odbccp32.lib /MANIFEST
> >> >
> >> >
> /ManifestFile:"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest"
> >> > /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
> >> > /PDB:"C:\Program
> >> > Files (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb"
> >> > /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT
> >> > /IMPLIB:"C:/Program Files
> >> > (x86)/CGAL-3.8/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib"
> >> > /MACHINE:X86
> >> > cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res
> >> >
> >> > cmTryCompileExec.dir\Debug\testCCompiler.obj /machine:X86 /debug
> >> >
> >> > LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib' [C:\Program
> >> >
> >> > Files (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
> >> >
> >> > Done Building Project "C:\Program Files
> >> >
> >> > (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" (default
> >> >
> >> > targets) -- FAILED.
> >> >
> >> > Build FAILED.
> >> >
> >> > "C:\Program Files
> >> >
> >> > (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" (default
> >> >
> >> > target) (1) ->
> >> >
> >> > (ClCompile target) ->
> >> >
> >> > cl : Command line warning D9035: option 'GZ' has been deprecated and
> >> > will be
> >> > removed in a future release [C:\Program Files
> >> > (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
> >> >
> >> > cl : Command line warning D9036: use 'RTC1' instead of 'GZ'
> [C:\Program
> >> > Files (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
> >> >
> >> > "C:\Program Files
> >> >
> >> > (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" (default
> >> >
> >> > target) (1) ->
> >> >
> >> > (Link target) ->
> >> >
> >> > LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib' [C:\Program
> >> > Files
> >> > (x86)\CGAL-3.8\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
> >> >
> >> > 2 Warning(s)
> >> >
> >> > 1 Error(s)
> >> >
> >> > Time Elapsed 00:00:01.62
> >> >
> >> > CMake will not be able to correctly generate this project.
> >> >
> >> > Call Stack (most recent call first):
> >> >
> >> > CMakeLists.txt:6 (project)
> >> >
> >> > Configuring incomplete, errors occurred!
> >> >
> >> >
> >> > On 25 March 2012 00:49, Sweety Pie <sweetyp198612 at gmail.com> wrote:
> >> >>
> >> >> I use CMake 2.8.4
> >> >> I have both installed but in the config of Cmake I choose this
> option:
> >> >> Visual Studio 10
> >> >> What is the windows platform SDK??
> >> >> Thank you for helping.
> >> >>
> >> >> On 24 March 2012 21:54, David Cole <david.cole at kitware.com> wrote:
> >> >>>
> >> >>> Can you build a non-cmake-generated "hello, world" project with VS
> 10?
> >> >>>
> >> >>> What version of CMake?
> >> >>> Is it the Express Edition of Visual Studio 10?
> >> >>> Do you have a Windows Platform SDK installed?
> >> >>>
> >> >>>
> >> >>> On Sat, Mar 24, 2012 at 1:55 PM, Sweety Pie <
> sweetyp198612 at gmail.com>
> >> >>> wrote:
> >> >>> >
> >> >>> >
> >> >>> > ---------- Forwarded message ----------
> >> >>> > From: Sweety Pie <sweetyp198612 at gmail.com>
> >> >>> > Date: 17 March 2012 19:53
> >> >>> > Subject: Help with CMAKE
> >> >>> > To: cmake at cmake.org
> >> >>> >
> >> >>> >
> >> >>> > Hey everyone,
> >> >>> > Am trying to use Cmake with Visual studio 10 to generate some .sln
> >> >>> > files.
> >> >>> > When I press on configure button am getting this error:
> >> >>> >
> >> >>> > CMake Error at C:/CMake
> >> >>> > 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
> >> >>> >
> >> >>> > The C compiler "cl" is not able to compile a simple test program.
> >> >>> >
> >> >>> > It fails with the following output:
> >> >>> >
> >> >>> > Change Dir: C:/CGAL-3.9/CMakeFiles/CMakeTmp
> >> >>> >
> >> >>> >
> >> >>> > "C:\CGAL-3.9\CMakeFiles\CMakeTmp\testCCompiler.c" /Zm1000
> >> >>> >
> >> >>> > 1>
> >> >>> >
> >> >>> > 1> testCCompiler.c
> >> >>> >
> >> >>> > 1>LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib'
> >> >>> >
> >> >>> > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> >> >>> >
> >> >>> >
> >> >>> > Please help me. :(
> >> >>> >
> >> >>> >
> >> >>> > --
> >> >>> >
> >> >>> > 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
> >>
> >>
> >>
> >> Please try CMake 2.8.7, or last week's 2.8.8-rc1... There have been
> >> several Visual Studio 10 related issues fixed since 2.8.4.
> >>
> >> Can you build a plain "hello, world" C++ command line executable with
> >> Visual Studio by itself, without CMake?
> >>
> >> This error looks like exactly what happens when people have VS 10
> >> Express installed, but do not have a corresponding Windows Platform
> >> SDK installed...
> >>
> >>
> >> HTH,
> >> David
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120328/6bf21654/attachment-0001.htm>


More information about the CMake mailing list