[Insight-users] Building release version of ITK executable

John Drescher drescherjm at gmail.com
Thu Aug 26 21:06:09 EDT 2010


> I've compiled an executable using ITK functions in C++ using MS Visual
> Studio 2008.  Now that the debug version is working ok I'd like to build a
> release version so it can be run from other machines.  However, when I do
> so, I get a linking error
>
> LINK : fatal error LNK1181: cannot open input file 'ITKIO.lib'
>
> alerting me that it's unable to link to my ITK libraries.  I've double
> checked that the Linker "Additional Library Directories" point to the ITK
> libraries. I'm somewhat new to VS, but their help archives haven't helped
> much.  Has anyone run into this issue and know what settings need to change
> to link my ITK libraries to the release version?
>

Open the ITK project and batch build on the release. Do not install.
Do the same for debug. For your projects based on CMake set ITK_DIR to
the root folder where you built itk. In this way there is no messing
with Additional Library Directories or any other visual studio setting
that will get unset next time you make a change that causes CMake to
regenerate the project files.

John


More information about the Insight-users mailing list