[Cmake] Trying to CMake ITK 1.8.1 under windows but get error?

William A. Hoffman billlist at nycap.rr.com
Tue Sep 21 17:10:48 EDT 2004


That looks like a valid link line.

With my install of VS .NET 2003, the kernel32.lib file is here:

c:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/lib

You may want to try and re-install VS .NET 2003.

-Bill

At 05:00 PM 9/21/2004, Pål Eilertsen wrote:
>Hi,
>
>I am actually using CMake 2.0.3. Used the updater that followed CMake 2.0.2.
>The other "stuff" says:
>
>Determining if the C compiler works failed with the following output:
>
>
>Microsoft (R) Development Environment  Version 7.10.3077.
>
>Copyright (C) Microsoft Corp 1984-2001. All rights reserved.
>
>------ Build started: Project: cmTryCompileExec, Configuration: Debug
>Win32 ------
>
>
>
>Compiling...
>
>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
>
>Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
>
>cl /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /FD /EHsc /RTCs /MDd
>/GS /Fo"Debug\\" /Fd"Debug/cmTryCompileExec.pdb" /W3 /c /Zi /TC     /Zm1000
>/Zm1000       -DCMAKE_INTDIR=\"Debug\"
>
>   .\testCCompiler.c
>
>testCCompiler.c
>
>Linking...
>
>Microsoft (R) Incremental Linker Version 7.10.3077
>
>Copyright (C) Microsoft Corporation.  All rights reserved.
>
>"/OUT:Debug\cmTryCompileExec.exe" /INCREMENTAL:NO /DEBUG
>"/PDB:Debug\cmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE /STACK:10000000
>/MACHINE:I386 /STACK:10000000 /machine:I386 /INCREMENTAL:YES kernel32.lib
>user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
>ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib
>user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
>ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib
>user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
>ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
>
>.\Debug\testCCompiler.obj
>
>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
>
>
>Does this give any more clues?
>
>Best regards
>Pål Eilertsen
>
>-----Original Message-----
>From: William A. Hoffman [mailto:billlist at nycap.rr.com]
>Sent: 21. september 2004 22:50
>To: Pål Eilertsen
>Cc: cmake at www.cmake.org
>Subject: RE: [Cmake] Trying to CMake ITK 1.8.1 under windows but get error?
>
>Why don't you try CMAke 2.0.3 ?
>Also, what is the "there is a lot of text" stuff say?
>
>-Bill
>
>
>At 04:40 PM 9/21/2004, Pål Eilertsen wrote:
>>Hi,
>>
>>Thanks for your answer. I guess I am using the Visual Studio .Net 2003 C++
>>compiler? I have compiled C++ programs in the Visual Studio .Net 2003 IDE
>>before without any errors so I am not sure what is wrong when using CMake.
>>
>>Pål
>>
>>-----Original Message-----
>>From: William A. Hoffman [mailto:billlist at nycap.rr.com]
>>Sent: Tuesday, September 21, 2004 10:09 PM
>>To: Pål Eilertsen; cmake at www.cmake.org
>>Subject: Re: [Cmake] Trying to CMake ITK 1.8.1 under windows but get error?
>>
>>It sounds like your compiler is not installed correctly.
>>This means that the compiler did not work. The compiler should
>>be able to find that library.  Exactly what compiler are you using?
>>
>>-Bill
>>
>>
>>At 10:25 AM 9/21/2004, Pål Eilertsen wrote:
>>>Hi,
>>>
>>>I run the Cmake program on Windows. Select a directory as both source and
>>>binary, chooses Visual Studio 7 .Net 2003 and press configure. I get the
>>>following error:
>>>
>>>"The C compiler 'cl' is not able to compile a simple test program. It
>fails
>>>with the following output:"
>>>
>>>Then there is a lot of text that ends in:
>>>
>>>"LINK : fatal error LNK1104: cannot open file kernel32.lib"
>>>
>>>I am a complete newbie to both Cmake and C++, and this is as far as I get.
>>>
>>>Please help
>>>
>>>Best regards
>>>Pål Eilertsen
>>>
>>>_______________________________________________
>>>Cmake mailing list
>>>Cmake at www.cmake.org
>>>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list