<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-unicode">Dear all,
<br>
<br>
I have just migrated to a brand new PC running Windows 7 home
premium 64 bits (Intel proc) and I would like to compile a 64 bits
version of my programs (that use VTK, ITK, FLTK).
<br>
I have installed the 2010 express edition of Visual C++ and the
SDK 7.1 that includes 64 bits compiler.<br>
I had a problem when configuring my ITK64 project using CMake and
I am not sure whether it is a bug... Since I have found a
solution, I share it!<br>
I had an error during the testCCompiler (see the error below this
mail). I noticed that the SDK version used by Cmake was V7.0A
while it doesn't contain the 64 bits of Cl.exe...<br>
I have just 'renamed' the directory (Ok, I know, bad solution but
if you have a better one...) from V7.1 to V7.0A... and it worked.<br>
I managed to compile ITK3.20.0 64 bits version.<br>
Is it a bug from CMake? Do I had to remove the V7.0A? If yes, how
to?<br>
<br>
Laurent.
<br>
<br>
<br>
_______________________________
<br>
Determining if the C compiler works failed with the following
output:<br>
Change Dir: C:/Lib/ITK3.20.0bin64/CMakeFiles/CMakeTmp<br>
<br>
Run Build
Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
cmTryCompileExec.vcxproj /p:Configuration=Debug<br>
Microsoft (R) Build Engine, Version 4.0.30319.1<br>
<br>
[Microsoft .NET Framework, Version 4.0.30319.1]<br>
<br>
Copyright (C) Microsoft Corporationÿ2007. Tous droits r‚serv‚s.<br>
<br>
<br>
<br>
La g‚n‚ration a d‚marr‚ 29/11/2010 11:07:02.<br>
<br>
Projet
"C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
sur le noud 1 (cibles par d‚faut).<br>
<br>
PrepareForBuild:<br>
<br>
Cr‚ation du r‚pertoire "cmTryCompileExec.dir\Debug\".<br>
<br>
Cr‚ation du r‚pertoire
"C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\Debug\".<br>
<br>
InitializeBuildStatus:<br>
<br>
Cr‚ation de
"cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild",
car "AlwaysCreate" a ‚t‚ sp‚cifi‚.<br>
<br>
ClCompile:<br>
<br>
C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\bin\x86_amd64\CL.exe /c /Zi /nologo- /W3 /WX- /Od /Ob0 /D
WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS
/Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope
/Fo"cmTryCompileExec.dir\Debug\\"
/Fd"C:/Lib/ITK3.20.0bin64/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/Gd /TC /errorReport:queue testCCompiler.c /Zm1000 <br>
<br>
Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01
for x64<br>
<br>
Copyright (C) Microsoft Corporation. All rights reserved.<br>
<br>
<br>
<br>
cl /c /Zi /nologo- /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D
_DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS
/fp:precise /Zc:wchar_t /Zc:forScope
/Fo"cmTryCompileExec.dir\Debug\\"
/Fd"C:/Lib/ITK3.20.0bin64/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/Gd /TC /errorReport:queue testCCompiler.c /Zm1000 <br>
<br>
cl : Command line warning D9035: option 'nologo-' has been
deprecated and will be removed in a future release
[C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]<br>
<br>
testCCompiler.c<br>
<br>
<br>
<br>
ManifestResourceCompile:<br>
<br>
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 <br>
<br>
Link:<br>
<br>
C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE
/OUT:"C:\Lib\ITK3.20.0bin64\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:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb"
/SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE
/NXCOMPAT
/IMPLIB:"C:/Lib/ITK3.20.0bin64/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib"
/MACHINE:X64
cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res<br>
<br>
cmTryCompileExec.dir\Debug\testCCompiler.obj /machine:x64
/debug <br>
<br>
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
[C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]<br>
<br>
G‚n‚ration du projet
"C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
termin‚e (cibles par d‚faut) -- CHEC.<br>
<br>
<br>
<br>
CHEC de la build.<br>
<br>
<br>
<br>
"C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
(cible par d‚faut) (1) -><br>
<br>
(ClCompile cible) -> <br>
<br>
cl : Command line warning D9035: option 'nologo-' has been
deprecated and will be removed in a future release
[C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]<br>
<br>
<br>
<br>
<br>
<br>
"C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
(cible par d‚faut) (1) -><br>
<br>
(Link cible) -> <br>
<br>
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
[C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]<br>
<br>
<br>
<br>
1 Avertissement(s)<br>
<br>
1 Erreur(s)<br>
<br>
<br>
<br>
Temps ‚coul‚ 00:00:00.38<br>
<br>
<br>
<br>
<br>
</div>
</body>
</html>