[CMake] building using Visual C++ 64 bits edition
Paul Laurent
l.paul at uclouvain.be
Mon Nov 29 05:40:13 EST 2010
Dear all,
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).
I have installed the 2010 express edition of Visual C++ and the SDK 7.1
that includes 64 bits compiler.
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!
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...
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.
I managed to compile ITK3.20.0 64 bits version.
Is it a bug from CMake? Do I had to remove the V7.0A? If yes, how to?
Laurent.
_______________________________
Determining if the C compiler works failed with the following output:
Change Dir: C:/Lib/ITK3.20.0bin64/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.1]
Copyright (C) Microsoft Corporationÿ2007. Tous droits r,serv,s.
La g,n,ration a d,marr, 29/11/2010 11:07:02.
Projet
"C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" sur
le noud 1 (cibles par d,faut).
PrepareForBuild:
Cr,ation du r,pertoire "cmTryCompileExec.dir\Debug\".
Cr,ation du r,pertoire
"C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\Debug\".
InitializeBuildStatus:
Cr,ation de
"cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild", car
"AlwaysCreate" a ,t, sp,cifi,.
ClCompile:
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
Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
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
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]
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\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
cmTryCompileExec.dir\Debug\testCCompiler.obj /machine:x64 /debug
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
[C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
G,n,ration du projet
"C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
termin,e (cibles par d,faut) -- ?CHEC.
?CHEC de la build.
"C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
(cible par d,faut) (1) ->
(ClCompile cible) ->
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]
"C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
(cible par d,faut) (1) ->
(Link cible) ->
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
[C:\Lib\ITK3.20.0bin64\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
1 Avertissement(s)
1 Erreur(s)
Temps ,coul, 00:00:00.38
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101129/74c34e0b/attachment.htm>
More information about the CMake
mailing list