[Insight-users] Error reading libraries

Rosario Sance Garzón rosario.sance at gmail.com
Tue Mar 8 05:45:16 EST 2005


Hi all,

I have read similar questions before, but after making the changes
that were advised, I couldn´t achieve to solve my problem.
I´m working with ITK-2.0.0, VTK, MC Visual C++ and CMake 2.0. I made
the installation successfully, and it seemed work.
But now I am testing the project described at the
GettingStarted-II.pdf guide, and I have the following warning:

<<LINK : fatal error LNK1104: cannot open file "ITKBasicFilters.lib"
Error executing link.exe.

ALL_BUILD - 1 error(s), 0 warning(s)>>

I have tried to include the subdirectories where the libraries are, in
the CMakeLists.txt, so I have written:

<<.....
SET(InsightToolkit_SOURCE_DIR "C:/Archivos de
programa/CMake/ITK-2.0.0/InsightToolkit-2.0.0")
SET(InsightToolkit_BINARY_DIR "F:/itk_depurado")
..............

INCLUDE_DIRECTORIES(${myProject2_SOURCE_DIR})
INCLUDE_DIRECTORIES(${InsightToolkit_BINARY_DIR}/bin/Debug)
INCLUDE_DIRECTORIES(${InsightToolkit_SOURCE_DIR}/Code)
INCLUDE_DIRECTORIES(${InsightApplications_SOURCE_DIR}/Auxiliary/vtk)
INCLUDE_DIRECTORIES(${VTK_SOURCE_DIR}/Rendering)

ADD_EXECUTABLE( myProject2 myProject2.cxx)
TARGET_LINK_LIBRARIES ( myProject2 ITKCommon ITKBasicFilters ITKIO
vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering
vtkCommon)
.........>>

But the problem persists. How somebody tell me why can´t the program
read the libraries? What is wrong?

Thanks a lot in advance.
Rosario


More information about the Insight-users mailing list