[Insight-users] Error when compiling the Hello world program
Prename Surname
bsd.diverse at gmail.com
Mon Sep 25 12:22:17 EDT 2006
Hello. I have installed CMake and configured it. Furthermore i have unzipped
the ITK package to a folder and given CMake the information of the folder.
I use visual studio 8(2005), and i have made the project of the hello world
program situated in Examples/Installation/HelloWorld.cxx. i coped the cxx
file and the txt file to a new folder, and wrote "cmake ." in my shell. This
worked perfectly. A VS2005 project was generated for me. When i then try to
build this solution consisting of 3 projects, namely
ALL_BUILD
HelloWorld
INSTALL
ZERO_CHECK
I get an error:
Linking...
LINK : fatal error LNK1104: cannot open file 'ITKCommon.lib'
I cannot figure out what i am doing wrong. I think i need some path or
something somewhere.
I was hoping someone could help me out on this one, since i am a bit stuck.
Best of regards to you.
P.S. here is the build log:
Command Lines
Creating temporary file
"h:\thesis\itktest\HelloWorld.dir\Debug\RSP00001239003932.rsp" with
contents
[
/OUT:"Debug\HelloWorld.exe" /INCREMENTAL
/LIBPATH:"h:\thesis\itkbuild\bin\Debug"
/LIBPATH:"h:\thesis\itkbuild\bin" /MANIFEST
/MANIFESTFILE:"HelloWorld.dir\Debug\HelloWorld.exe.intermediate.manifest"
/DEBUG /PDB:"Debug\HelloWorld.pdb" /SUBSYSTEM:CONSOLE /STACK:10000000
/STACK:10000000 /machine:I386 /debug kernel32.lib user32.lib
gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
comdlg32.lib advapi32.lib ITKCommon.lib itkvnl_inst.lib
itkvnl_algo.lib itkvnl.lib itknetlib.lib itkvcl.lib itksys.lib
".\helloworld.dir\debug\HelloWorld.obj"
".\HelloWorld.dir\Debug\HelloWorld.exe.embed.manifest.res"
]
Creating command line "link.exe
@h:\thesis\itktest\HelloWorld.dir\Debug\RSP00001239003932.rsp /NOLOGO
/ERRORREPORT:PROMPT"
Output Window
Linking...
LINK : fatal error LNK1104: cannot open file 'ITKCommon.lib'
Results
Build log was saved at
"file://h:\thesis\itktest\HelloWorld.dir\Debug\BuildLog.htm"
HelloWorld - 1 error(s), 0 warning(s)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060925/e5c6d9e4/attachment.htm
More information about the Insight-users
mailing list