[Insight-users] Error when compiling the Hello world program

Luis Ibanez luis.ibanez at kitware.com
Mon Sep 25 18:49:18 EDT 2006


Hi Prename Surname,


Please look at the Tutorials:

      http://www.itk.org/HTML/Tutorials.htm

In particular at:

http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/img0.html


You should run "ccmake" or CMakeSetup.exe instead of "cmake".

In this way you will get the GUI that allows you to specify
"ITK_DIR", which is the binary directory where you built ITK.


   Regards,


      Luis


------------------------
Prename Surname wrote:
> 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)
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users




More information about the Insight-users mailing list