[Insight-users] CMakeLists.txt mistery...

William A. Hoffman billlist at nycap.rr.com
Fri, 09 Jan 2004 11:56:07 -0500


Could be your built ITK Debug, and your are trying to link your project Release?

-Bill


At 11:45 AM 1/9/2004, Jean-Philippe Guyon wrote:
>Hello,
> 
>I try to compile a project outside of the Insight repository, and I get the following error at link time:
> 
>
>------ Build started: Project: Vetot, Configuration: Release Win32 ------
>
>Linking...
>
>LINK : fatal error LNK1104: cannot open file 'ITKAlgorithms.lib'
>
>Build log was saved at "file://c:\piloo\Workspacez\Ils\Vetot-VC++\Release\BuildLog.htm"
>
>Vetot - 1 error(s), 0 warning(s)
>
>I use  Microsoft Visual C++ .Net on a Windows 2000 workstation.
>I have been trying to figure out the cause for this error but I unfortunately ran out of ideas after a while.
>Although, when I checked the properties of the solution file generated with CMake 1.8.3, the following lines were defined in the 'Additional Library Directories' :
>
>C:\piloo\Workspacez\Insight-VC++\bin\$(INTDIR)
>C:\piloo\Workspacez\Insight-VC++\bin\
>
>My understanding is that the UseITK.cmake should take care of defining properly the required paths.It actually seems to be the case based on the properties of the VC++ .Net solution.
>I attached my CMakelists.txt file to this email in case anyone can give me a clue why this is happening.
>
>Jean-Philippe
>
>ps: I compile my project in release mode. All ITK libraries have been compiled previously in the same mode and are at the right location, ie in the /bin directory of my insight binary directory.