Re: [CMake] Fwd: Fwd: Help with CMAKE
On 3/29/2012 6:19 PM, Sweety Pie wrote: Well after installing the Windows platform SDK am getting these msgs in the CMake screen: 1- "The C compiler "cl" is not able to compile a simple test program." Although the VS can perfectly run all the codes I have previously. The other error is this: LINK : fatal error LNK1104: cannot open file 'OLDNAMES.lib' Any ideas?? Try the debug try compile thing I mentioned. -Bill -- 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
Re: [CMake] Fwd: Fwd: Help with CMAKE
On 3/29/2012 9:52 AM, Sweety Pie wrote: I have installed the Windows Platform SDK but the same error shows up:( I didnt get what do you mean by : Run CMake with --debug-trycompile ?? cmake --debug-trycompile ../path/to/yoursource This will run cmake in mode where it does not delete the results of try compile tests (which are failing for you). The files will be in CMakeFiles/CMakeTmp after you run with debug trycompile. You then load up the .sln file and see what happens when you build. However, from your original post you can see: 1>LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib' This means for what ever reason the linker can not find the run time library for visual studio. That library is part of the SDK, however, it would seem that your SDK is install wrong. If you google "fatal error LNK1104: cannot open file 'MSVCRTD.lib'", there are lots of others with this issue. -Bill -- 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
Re: [CMake] Fwd: Fwd: Help with CMAKE
I have installed the Windows Platform SDK but the same error shows up:( I didnt get what do you mean by : Run CMake with --debug-trycompile ?? Thank you On 28 March 2012 16:06, Aashish Chaudhary wrote: > Did not read the entire thread but.. based on your last email.. > > I believe this is the page you need to go to: > > http://www.microsoft.com/download/en/default.aspx > > and then search for "windows sdk for windows 7" or "windows sdk for vista" > > > On Wed, Mar 28, 2012 at 2:01 AM, Sweety Pie wrote: > >> >> 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 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 >>> 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 wrote: >>> >> >>> >> On Tue, Mar 27, 2012 at 4:37 AM, Sweety Pie >>> >> 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:\Prog
Re: [CMake] Fwd: Fwd: Help with CMAKE
On 3/28/2012 2:01 AM, Sweety Pie wrote: Any one can advice plz??? Run CMake with --debug-trycompile, then load the .sln file found in the CMakeTmp directory from the IDE, and see what the errors actually are. -Bill -- 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
Re: [CMake] Fwd: Fwd: Help with CMAKE
Did not read the entire thread but.. based on your last email.. I believe this is the page you need to go to: http://www.microsoft.com/download/en/default.aspx and then search for "windows sdk for windows 7" or "windows sdk for vista" On Wed, Mar 28, 2012 at 2:01 AM, Sweety Pie wrote: > > 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 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 >> 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 wrote: >> >> >> >> On Tue, Mar 27, 2012 at 4:37 AM, Sweety Pie >> >> 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:"1000" /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 >>
[CMake] Fwd: Fwd: Help with CMAKE
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 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 > 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 wrote: > >> > >> On Tue, Mar 27, 2012 at 4:37 AM, Sweety Pie > >> 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:"1000" /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. > >> >