[Insight-users] Creating CmakeList in VXL
suman
sumankonduru at gmail.com
Thu Mar 17 02:41:14 EST 2005
Hai,
I created a CmakeList in VXL as below:
----------------------------------------------------------------------------------------------
PROJECT(sample)
ADD_EXECUTABLE( sample sample.cxx )
# Find VXL.
FIND_PACKAGE(VXL)
IF(VXL_FOUND)
INCLUDE_DIRECTORIES(
${VXL_CORE_INCLUDE_DIR}
${VXL_VCL_INCLUDE_DIR}
)
ELSE(VXL_FOUND)
MESSAGE(FATAL_ERROR
"Cannot build without VXL. Please set VXL_DIR.")
ENDIF(VXL_FOUND)
TARGET_LINK_LIBRARIES( sample vnl_algo vul vil vcl )
----------------------------------------------------------------------------------------------------
I then configured in CmakeSetup.It gave no error.
Then i opened the .dsw file to run the "sample" program in VC++.
The following error occured during the BUILD process:
-------------------------------------------------------------------------------------------------------
Compiling...
sample.cxx
Linking...
LINK : fatal error LNK1104: cannot open file "vnl_algo.lib"
Error executing link.exe.
------------------------------------------------------------------------------------------------------
The following message was there in (e)ALL_BUILD folder:
--------------------------------------------------------------------------------------------------------
Build Log
--------------------Configuration: sample - Win32 Debug--------------------
Command Lines
Creating temporary file
"C:\DOCUME~1\PRASAD~1\LOCALS~1\Temp\RSP100.tmp" with contents
[
/nologo /MDd /W3 /GR /GX /Zi /Od /I
"F:\VXL-ITK-CMAKE\VXL\VXL_BIN\core" /I
"F:\VXL-ITK-CMAKE\VXL\VXL_SRC\core" /I
"F:\VXL-ITK-CMAKE\VXL\VXL_BIN\vcl" /I
"F:\VXL-ITK-CMAKE\VXL\VXL_SRC\vcl" /D "WIN32" /D "_DEBUG" /D
"_CONSOLE" /D "sample_EXPORTS" /D "_MBCS" /D CMAKE_INTDIR=\"Debug\"
/Fo"Debug/" /Fd"Debug/" /FD /GZ /Zm1000 /GZ /TP /c
"F:\VXL-ITK-CMAKE\VXL\VXL_SRC\sample\sample.cxx"
]
Creating command line "cl.exe @C:\DOCUME~1\PRASAD~1\LOCALS~1\Temp\RSP100.tmp"
Creating temporary file
"C:\DOCUME~1\PRASAD~1\LOCALS~1\Temp\RSP101.tmp" with contents
[
vnl_algo.lib vul.lib vil.lib vcl.lib netlib.lib vnl.lib vcl.lib
jpeg.lib tiff.lib png.lib z.lib ws2_32.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 /nologo /stack:0x989680 /subsystem:console
/incremental:yes /pdb:"Debug/sample.pdb" /debug /machine:I386
/out:"Debug/sample.exe" /pdbtype:sept /IGNORE:4089
".\Debug\sample.obj"
]
Creating command line "link.exe @C:\DOCUME~1\PRASAD~1\LOCALS~1\Temp\RSP101.tmp"
Output Window
Compiling...
sample.cxx
Linking...
LINK : fatal error LNK1104: cannot open file "vnl_algo.lib"
Error executing link.exe.
Results
ALL_BUILD - 1 error(s), 0 warning(s)
--------------------------------------------------------------------------------------------------------
Please help me to create the CmakeList or any other thing i should
include during the execution.
Send me the details of the changes that i should make.
Thanks in advance......
Suman
More information about the Insight-users
mailing list