[Insight-users] Building release version of ITK executable
Sara Rolfe
smrolfe at u.washington.edu
Fri Aug 27 00:59:36 EDT 2010
Thanks for your reply. I tried a batch build on the release, but am
getting the same error. I have the CMake ITK_DIR set to the ITK root,
so it sounds like I didn't need to point the Linker there. Any idea
why it wouldn't be looking there?
Just to make sure I had the default settings back in place I deleted
and rebuilt the solution. I would appreciate any debugging ideas!
Thanks,
Sara
On Aug 26, 2010, at 6:06 PM, John Drescher wrote:
>> 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