[Insight-users] Error when compiling HelloWorld.
Hon-Cheng Wong
hcwong@must.edu.mo
Thu, 1 May 2003 15:44:50 +0800
This is a multi-part message in MIME format.
------=_NextPart_000_0013_01C30FF8.9A196F10
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable
Dear Luis, and all ITK users:
Under Windows 2000, I built ITK1.2.0 in ALL_BUILD - Win32 =
Release=20
under MSVS 6.0 (SP5) (ITK.dsw was generated using CMake 1.66). =
Everything runs=20
smooth and there are only 3 warnings during the compilation process.
I used CMake to generate the HelloWorld.dsw. (I had put the =
HelloWorld.cxx and
CMakeLists.txt in the HelloWorld source directory, I used an in-source =
build, the ITK_DIR
was pointed to my ITK binary directory.) And then I was trying to build =
it, but there was=20
1 error in it as follow:=20
=20
--------------------Configuration: HelloWorld - Win32 =
Debug--------------------
Compiling...
HelloWorld.cxx
Linking...
LINK : fatal error LNK1104: cannot open file "ITKCommon.lib"
Error executing link.exe.
ALL_BUILD - 1 error(s), 0 warning(s)
However, on another computer, I built ITK 1.2.0 in ALL-BUILD - =
Win32 Debug=20
under MSVS 6.0 (SP5). Everything runs smooth and there are 163 warnings =
during the compilation=20
process. But I could build HelloWorld.cxx successfully in this computer. =
Being a ITK user (not developer), I would like to know what are =
the differeces between=20
ITK Win32 - Release and Win32 - Debug version. And what version for the =
ITK user is
recommended? And how to solve the problem in the Win32 - Release version =
I met?
I put my CMakeCache.txt in the HelloWorld binary directory here (refers =
to the=20
unsuccessful case (using ITK Win32 - Release) I met.)=20
# This is the CMakeCache file.
# For build in directory: f:/ITK User Guide/Chapter2/HelloWorld
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the =
editor.
# If you do want to change a value, simply edit, save, and exit the =
editor.
# The syntax for the file is as follows:
# KEY:TYPE=3DVALUE
# KEY is the name of a varible in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
########################
# EXTERNAL cache entries
########################
//Path to a program.
CMAKE_AR:FILEPATH=3DCMAKE_AR-NOTFOUND
//For backwards compatibility, what version of CMake commands and
// syntax should this version of CMake allow.
CMAKE_BACKWARDS_COMPATIBILITY:STRING=3D1.6
//C++ compiler
CMAKE_CXX_COMPILER:STRING=3Dcl
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=3D /W3 /Zm1000 /GX /GR
//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=3D/MDd /Zi /Od /GZ
//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=3D/MD /O1
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=3D/MD /O2
//Flags used by the compiler during Release with Debug Info builds.
//
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=3D/MD /Zi /O2
//C compiler
CMAKE_C_COMPILER:STRING=3Dcl
//Flags for C compiler.
CMAKE_C_FLAGS:STRING=3D /W3 /Zm1000
//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=3D/MDd /Zi /Od /GZ
//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=3D/MD /O1
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=3D/MD /O2
//Flags used by the compiler during Release with Debug Info builds.
//
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=3D/MD /Zi /O2
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=3D/STACK:10000000 /machine:I386 =
/INCREMENTAL:YES
//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=3D/debug /pdbtype:sept
//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=3D
//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=3D
//Flags used by the linker during Release with Debug Info builds.
//
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=3D/debug /pdbtype:sept
//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=3D/usr/local
//make program
CMAKE_MAKE_PROGRAM:FILEPATH=3DC:/PROGRA~1/MICROS~2/Common/MSDev98/Bin/msd=
ev.com
//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=3D
//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=3D
//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=3D
//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=3D
//Flags used by the linker during Release with Debug Info builds.
//
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=3D/debug /pdbtype:sept
//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=3D/STACK:10000000 /machine:I386 =
/INCREMENTAL:YES
//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=3D/debug /pdbtype:sept
//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=3D
//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=3D
//Flags used by the linker during Release with Debug Info builds.
//
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=3D/debug /pdbtype:sept
//If set, runtime paths are not added when using shared libraries.
//
CMAKE_SKIP_RPATH:BOOL=3DNO
//Libraries linked by defalut with all applications.
CMAKE_STANDARD_LIBRARIES:STRING=3Dkernel32.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
//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only.
CMAKE_VERBOSE_MAKEFILE:BOOL=3DFALSE
//Single output directory for building all executables.
EXECUTABLE_OUTPUT_PATH:PATH=3D
//Value Computed by CMake
HelloWorld_BINARY_DIR:STATIC=3DF:/ITK User Guide/Chapter2/HelloWorld
//Value Computed by CMake
HelloWorld_SOURCE_DIR:STATIC=3DF:/ITK User Guide/Chapter2/HelloWorld
//The directory containing ITKConfig.cmake. This is either the
// root of the build tree, or PREFIX/lib/InsightToolkit for an
// installation.
ITK_DIR:PATH=3DF:/ITK1.2.0
//Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:PATH=3D
########################
# INTERNAL cache entries
########################
//Advanced flag for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=3D1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=3DC:/PROGRA~1/MICROS~2/Common/MSDev98/Bin/msdev=
.com
//This is the directory where this CMakeCahe.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=3Df:/ITK User Guide/Chapter2/HelloWorld
//Major version of cmake used to create the current loaded cache
//
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3D1
//Minor version of cmake used to create the current loaded cache
//
CMAKE_CACHE_MINOR_VERSION:INTERNAL=3D6
//Major version of cmake used to create the current loaded cache
//
CMAKE_CACHE_RELEASE_VERSION:INTERNAL=3Dpatch 6
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=3DF:/CMake1.66/bin/cmake.exe
//Advanced flag for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=3D1
//Result of TRY_COMPILE
CMAKE_CXX_COMPILER_WORKS:INTERNAL=3DTRUE
//Advanced flag for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=3D1
//Result of TRY_COMPILE
CMAKE_C_COMPILER_WORKS:INTERNAL=3DTRUE
//Advanced flag for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=3D1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=3DF:/CMake1.66/bin/CMakeSetup.exe
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
//
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
//
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=3D1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=3DVisual Studio 6
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=3DF:/ITK User Guide/Chapter2/HelloWorld
//Advanced flag for variable: CMAKE_INSTALL_PREFIX
CMAKE_INSTALL_PREFIX-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
//
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
//
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
//
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=3D1
//noop for ranlib
CMAKE_RANLIB:INTERNAL=3D:
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=3DF:/CMake1.66
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
//
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
//
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
//
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_STANDARD_LIBRARIES
CMAKE_STANDARD_LIBRARIES-ADVANCED:INTERNAL=3D1
//Advanced flag for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=3D1
//Path to an executable
HelloWorld_CMAKE_PATH:INTERNAL=3DF:/ITK User Guide/Chapter2/HelloWorld
Thank you very much in advance!!
Regards,
Hugo
Hon-Cheng Wong, Hugo
Faculty of Information Technology,
Macau University of Science and Technology,
Macau, China
------=_NextPart_000_0013_01C30FF8.9A196F10
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Times New Roman">Dear Luis, and all ITK =
users:</FONT></DIV>
<DIV><FONT=20
face=3D"Times New =
Roman"> Under=20
Windows 2000, I built ITK1.2.0 in <STRONG>ALL_BUILD - =
Win32=20
Release</STRONG> </FONT></DIV>
<DIV><FONT face=3D"Times New Roman">under MSVS 6.0 (SP5) (ITK.dsw was =
generated=20
using </FONT><FONT face=3D"Times New Roman">CMake 1.66). Everything runs =
</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">smooth and there are only 3 warnings =
during=20
the compilation process.</FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT> </DIV>
<DIV><FONT face=3D"Times New =
Roman"> I=20
used CMake to <FONT face=3D"Times New Roman">generate the =
HelloWorld.dsw. (I=20
had put the HelloWorld.cxx and</FONT></FONT></DIV>
<DIV><FONT face=3D"Times New Roman"><FONT face=3D"Times New =
Roman">CMakeLists.txt in=20
the HelloWorld source directory, I used an in-source build, the=20
ITK_DIR</FONT></FONT></DIV>
<DIV><FONT face=3D"Times New Roman"><FONT face=3D"Times New Roman">was =
pointed to my=20
ITK binary directory.) </FONT></FONT><FONT face=3D"Times New =
Roman"><FONT=20
face=3D"Times New Roman">And then</FONT> I was trying =
to </FONT><FONT=20
face=3D"Times New Roman">build it, but there was </FONT></DIV>
<DIV><FONT face=3D"Times New Roman">1 error in it as follow: =
</FONT></DIV>
<DIV><FONT=20
face=3D"Times New =
Roman"> =20
</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">--------------------Configuration: =
HelloWorld=20
- Win32=20
Debug--------------------<BR>Compiling...<BR>HelloWorld.cxx<BR>Linking...=
<BR>LINK=20
: fatal error LNK1104: cannot open file "ITKCommon.lib"<BR>Error =
executing=20
link.exe.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman">ALL_BUILD - 1 error(s), 0=20
warning(s)</FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT> </DIV>
<DIV><FONT=20
face=3D"Times New =
Roman"> =20
However, on another computer, I built ITK 1.2.0 in =
</FONT><FONT=20
face=3D"Times New Roman"><STRONG>ALL-BUILD - Win32 Debug</STRONG> =
</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">under MSVS 6.0 (SP5). Everything =
runs smooth=20
and there are 163 warnings during the compilation </FONT></DIV>
<DIV><FONT face=3D"Times New Roman">process.</FONT><FONT face=3D"Times =
New Roman">=20
But I could build HelloWorld.cxx successfully in this computer. =
</FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT> </DIV>
<DIV><FONT=20
face=3D"Times New =
Roman"> Being a=20
ITK user (not developer), I would like to know what are the =
differeces=20
</FONT><FONT face=3D"Times New Roman">between </FONT></DIV>
<DIV><FONT face=3D"Times New Roman">ITK <STRONG>Win32 -</STRONG>=20
<STRONG>Release</STRONG> </FONT><FONT face=3D"Times New Roman">and =
<STRONG>Win32 -=20
Debug</STRONG> version. And what version for the ITK user =
is</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">recommended? </FONT><FONT=20
face=3D"Times New Roman">And how </FONT><FONT face=3D"Times New =
Roman">to=20
</FONT><FONT face=3D"Times New Roman">solve </FONT><FONT=20
face=3D"Times New Roman">the problem in the Win32 - Release </FONT><FONT =
face=3D"Times New Roman">version I met?</FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman">I put my =
CMakeCache.txt in the=20
HelloWorld binary directory here (<STRONG>refers to the =
</STRONG></FONT></DIV>
<DIV><FONT face=3D"Times New Roman"><STRONG>unsuccessful =
</STRONG></FONT><FONT=20
face=3D"Times New Roman"><STRONG>case (using ITK Win32 - Release) I=20
met</STRONG>.) </FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2># This is the CMakeCache =
file.<BR># For=20
build in directory: f:/ITK User Guide/Chapter2/HelloWorld<BR># You can =
edit this=20
file to change values found and used by cmake.<BR># If you do not want =
to change=20
any of the values, simply exit the editor.<BR># If you do want to change =
a=20
value, simply edit, save, and exit the editor.<BR># The syntax for the =
file is=20
as follows:<BR># KEY:TYPE=3DVALUE<BR># KEY is the name of a varible in =
the=20
cache.<BR># TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT=20
TYPE!.<BR># VALUE is the current value for the KEY.</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" =
size=3D2>########################<BR># EXTERNAL=20
cache entries<BR>########################</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Path to a=20
program.<BR>CMAKE_AR:FILEPATH=3DCMAKE_AR-NOTFOUND</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//For backwards =
compatibility, what=20
version of CMake commands and<BR>// syntax should this version of CMake=20
allow.<BR>CMAKE_BACKWARDS_COMPATIBILITY:STRING=3D1.6</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//C++=20
compiler<BR>CMAKE_CXX_COMPILER:STRING=3Dcl</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the =
compiler during all=20
build types.<BR>CMAKE_CXX_FLAGS:STRING=3D /W3 /Zm1000 /GX =
/GR</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the =
compiler during=20
debug builds.<BR>CMAKE_CXX_FLAGS_DEBUG:STRING=3D/MDd /Zi /Od =
/GZ</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the =
compiler during=20
release minsize builds.<BR>CMAKE_CXX_FLAGS_MINSIZEREL:STRING=3D/MD=20
/O1</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the =
compiler during=20
release builds (/MD /Ob1 /Oi<BR>// /Ot /Oy /Gs will produce slightly =
less=20
optimized but smaller<BR>// =
files).<BR>CMAKE_CXX_FLAGS_RELEASE:STRING=3D/MD=20
/O2</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the =
compiler during=20
Release with Debug Info=20
builds.<BR>//<BR>CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=3D/MD /Zi =
/O2</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//C=20
compiler<BR>CMAKE_C_COMPILER:STRING=3Dcl</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags for C=20
compiler.<BR>CMAKE_C_FLAGS:STRING=3D /W3 /Zm1000</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the =
compiler during=20
debug builds.<BR>CMAKE_C_FLAGS_DEBUG:STRING=3D/MDd /Zi /Od =
/GZ</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the =
compiler during=20
release minsize builds.<BR>CMAKE_C_FLAGS_MINSIZEREL:STRING=3D/MD =
/O1</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the =
compiler during=20
release builds (/MD /Ob1 /Oi<BR>// /Ot /Oy /Gs will produce slightly =
less=20
optimized but smaller<BR>// =
files).<BR>CMAKE_C_FLAGS_RELEASE:STRING=3D/MD=20
/O2</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the =
compiler during=20
Release with Debug Info =
builds.<BR>//<BR>CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=3D/MD=20
/Zi /O2</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the=20
linker.<BR>CMAKE_EXE_LINKER_FLAGS:STRING=3D/STACK:10000000 /machine:I386 =
/INCREMENTAL:YES</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during debug=20
builds.<BR>CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=3D/debug =
/pdbtype:sept</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during=20
release minsize=20
builds.<BR>CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=3D</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during=20
release builds.<BR>CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=3D</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during=20
Release with Debug Info=20
builds.<BR>//<BR>CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=3D/debug=20
/pdbtype:sept</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Install path prefix, =
prepended onto=20
install =
directories.<BR>CMAKE_INSTALL_PREFIX:PATH=3D/usr/local</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//make=20
program<BR>CMAKE_MAKE_PROGRAM:FILEPATH=3DC:/PROGRA~1/MICROS~2/Common/MSDe=
v98/Bin/msdev.com</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during the=20
creation of modules.<BR>CMAKE_MODULE_LINKER_FLAGS:STRING=3D</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during debug=20
builds.<BR>CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=3D</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during=20
release minsize=20
builds.<BR>CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=3D</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during=20
release =
builds.<BR>CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=3D</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during=20
Release with Debug Info=20
builds.<BR>//<BR>CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=3D/debug=
=20
/pdbtype:sept</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during the=20
creation of dll's.<BR>CMAKE_SHARED_LINKER_FLAGS:STRING=3D/STACK:10000000 =
/machine:I386 /INCREMENTAL:YES</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during debug=20
builds.<BR>CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=3D/debug=20
/pdbtype:sept</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during=20
release minsize=20
builds.<BR>CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=3D</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during=20
release =
builds.<BR>CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=3D</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Flags used by the linker =
during=20
Release with Debug Info=20
builds.<BR>//<BR>CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=3D/debug=
=20
/pdbtype:sept</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//If set, runtime paths are =
not added=20
when using shared =
libraries.<BR>//<BR>CMAKE_SKIP_RPATH:BOOL=3DNO</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Libraries linked by =
defalut with all=20
applications.<BR>CMAKE_STANDARD_LIBRARIES:STRING=3Dkernel32.lib =
user32.lib=20
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib=20
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib =
user32.lib=20
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib=20
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//If this value is on, =
makefiles will=20
be generated without the<BR>// .SILENT directive, and all commands will =
be=20
echoed to the console<BR>// during the make. This is useful for =
debugging=20
only.<BR>CMAKE_VERBOSE_MAKEFILE:BOOL=3DFALSE</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Single output directory =
for building=20
all executables.<BR>EXECUTABLE_OUTPUT_PATH:PATH=3D</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Value Computed by=20
CMake<BR>HelloWorld_BINARY_DIR:STATIC=3DF:/ITK User=20
Guide/Chapter2/HelloWorld</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Value Computed by=20
CMake<BR>HelloWorld_SOURCE_DIR:STATIC=3DF:/ITK User=20
Guide/Chapter2/HelloWorld</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//The directory containing=20
ITKConfig.cmake. This is either the<BR>// root of the build tree, =
or=20
PREFIX/lib/InsightToolkit for an<BR>//=20
installation.<BR>ITK_DIR:PATH=3DF:/ITK1.2.0</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Single output directory =
for building=20
all libraries.<BR>LIBRARY_OUTPUT_PATH:PATH=3D</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><BR><FONT face=3D"Times New Roman" =
size=3D2>########################<BR>#=20
INTERNAL cache entries<BR>########################</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2>//Advanced flag for =
variable:=20
CMAKE_AR<BR>CMAKE_AR-ADVANCED:INTERNAL=3D1<BR>//What is the target build =
tool=20
cmake is generating=20
for.<BR>CMAKE_BUILD_TOOL:INTERNAL=3DC:/PROGRA~1/MICROS~2/Common/MSDev98/B=
in/msdev.com<BR>//This=20
is the directory where this CMakeCahe.txt was=20
created<BR>CMAKE_CACHEFILE_DIR:INTERNAL=3Df:/ITK User=20
Guide/Chapter2/HelloWorld<BR>//Major version of cmake used to create the =
current=20
loaded cache<BR>//<BR>CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3D1<BR>//Minor =
version of=20
cmake used to create the current loaded=20
cache<BR>//<BR>CMAKE_CACHE_MINOR_VERSION:INTERNAL=3D6<BR>//Major version =
of cmake=20
used to create the current loaded=20
cache<BR>//<BR>CMAKE_CACHE_RELEASE_VERSION:INTERNAL=3Dpatch 6<BR>//Path =
to CMake=20
executable.<BR>CMAKE_COMMAND:INTERNAL=3DF:/CMake1.66/bin/cmake.exe<BR>//A=
dvanced=20
flag for variable:=20
CMAKE_CXX_COMPILER<BR>CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=3D1<BR>//Resul=
t of=20
TRY_COMPILE<BR>CMAKE_CXX_COMPILER_WORKS:INTERNAL=3DTRUE<BR>//Advanced =
flag for=20
variable: =
CMAKE_CXX_FLAGS<BR>CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_CXX_FLAGS_DEBUG<BR>CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=3D1<BR>/=
/Advanced=20
flag for variable:=20
CMAKE_CXX_FLAGS_MINSIZEREL<BR>CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNA=
L=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_CXX_FLAGS_RELEASE<BR>CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=3D1<=
BR>//Advanced=20
flag for variable:=20
CMAKE_CXX_FLAGS_RELWITHDEBINFO<BR>CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED=
:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_C_COMPILER<BR>CMAKE_C_COMPILER-ADVANCED:INTERNAL=3D1<BR>//Result =
of=20
TRY_COMPILE<BR>CMAKE_C_COMPILER_WORKS:INTERNAL=3DTRUE<BR>//Advanced flag =
for=20
variable: =
CMAKE_C_FLAGS<BR>CMAKE_C_FLAGS-ADVANCED:INTERNAL=3D1<BR>//Advanced flag=20
for variable:=20
CMAKE_C_FLAGS_DEBUG<BR>CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=3D1<BR>//Adv=
anced=20
flag for variable:=20
CMAKE_C_FLAGS_MINSIZEREL<BR>CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=3D=
1<BR>//Advanced=20
flag for variable:=20
CMAKE_C_FLAGS_RELEASE<BR>CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=3D1<BR>/=
/Advanced=20
flag for variable:=20
CMAKE_C_FLAGS_RELWITHDEBINFO<BR>CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INT=
ERNAL=3D1<BR>//Path=20
to cache edit program=20
executable.<BR>CMAKE_EDIT_COMMAND:INTERNAL=3DF:/CMake1.66/bin/CMakeSetup.=
exe<BR>//Advanced=20
flag for variable:=20
CMAKE_EXE_LINKER_FLAGS<BR>CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=3D1<BR=
>//Advanced=20
flag for variable:=20
CMAKE_EXE_LINKER_FLAGS_DEBUG<BR>CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INT=
ERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL<BR>//<BR>CMAKE_EXE_LINKER_FLAGS_MINSIZE=
REL-ADVANCED:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_EXE_LINKER_FLAGS_RELEASE<BR>CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED=
:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO<BR>//<BR>CMAKE_EXE_LINKER_FLAGS_REL=
WITHDEBINFO-ADVANCED:INTERNAL=3D1<BR>//Name=20
of generator.<BR>CMAKE_GENERATOR:INTERNAL=3DVisual Studio 6<BR>//Start =
directory=20
with the top level CMakeLists.txt file for this<BR>//=20
project<BR>CMAKE_HOME_DIRECTORY:INTERNAL=3DF:/ITK User=20
Guide/Chapter2/HelloWorld<BR>//Advanced flag for variable:=20
CMAKE_INSTALL_PREFIX<BR>CMAKE_INSTALL_PREFIX-ADVANCED:INTERNAL=3D1<BR>//A=
dvanced=20
flag for variable:=20
CMAKE_MAKE_PROGRAM<BR>CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=3D1<BR>//Advan=
ced flag=20
for variable:=20
CMAKE_MODULE_LINKER_FLAGS<BR>CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=3D=
1<BR>//Advanced=20
flag for variable:=20
CMAKE_MODULE_LINKER_FLAGS_DEBUG<BR>CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANC=
ED:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL<BR>//<BR>CMAKE_MODULE_LINKER_FLAGS_M=
INSIZEREL-ADVANCED:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_MODULE_LINKER_FLAGS_RELEASE<BR>//<BR>CMAKE_MODULE_LINKER_FLAGS_RELE=
ASE-ADVANCED:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO<BR>//<BR>CMAKE_MODULE_LINKER_FLA=
GS_RELWITHDEBINFO-ADVANCED:INTERNAL=3D1<BR>//noop=20
for ranlib<BR>CMAKE_RANLIB:INTERNAL=3D:<BR>//Path to CMake=20
installation.<BR>CMAKE_ROOT:INTERNAL=3DF:/CMake1.66<BR>//Advanced flag =
for=20
variable:=20
CMAKE_SHARED_LINKER_FLAGS<BR>CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=3D=
1<BR>//Advanced=20
flag for variable:=20
CMAKE_SHARED_LINKER_FLAGS_DEBUG<BR>CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANC=
ED:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL<BR>//<BR>CMAKE_SHARED_LINKER_FLAGS_M=
INSIZEREL-ADVANCED:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_SHARED_LINKER_FLAGS_RELEASE<BR>//<BR>CMAKE_SHARED_LINKER_FLAGS_RELE=
ASE-ADVANCED:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO<BR>//<BR>CMAKE_SHARED_LINKER_FLA=
GS_RELWITHDEBINFO-ADVANCED:INTERNAL=3D1<BR>//Advanced=20
flag for variable:=20
CMAKE_SKIP_RPATH<BR>CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=3D1<BR>//Advanced =
flag for=20
variable:=20
CMAKE_STANDARD_LIBRARIES<BR>CMAKE_STANDARD_LIBRARIES-ADVANCED:INTERNAL=3D=
1<BR>//Advanced=20
flag for variable:=20
CMAKE_VERBOSE_MAKEFILE<BR>CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=3D1<BR=
>//Path=20
to an executable<BR>HelloWorld_CMAKE_PATH:INTERNAL=3DF:/ITK User=20
Guide/Chapter2/HelloWorld</FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman">Thank you very much in =
advance!!</FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman">Regards,</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">Hugo</FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman">Hon-Cheng Wong, Hugo</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">Faculty of Information=20
Technology,</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">Macau University of Science and=20
Technology,</FONT></DIV>
<DIV><FONT face=3D"Times New Roman">Macau, China</FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman"><BR><FONT =
size=3D2></FONT></FONT></DIV>
<DIV><FONT face=3D"Times New Roman"><BR><FONT =
size=3D2></FONT></FONT></DIV>
<DIV><FONT face=3D"Times New Roman" =
size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0013_01C30FF8.9A196F10--