[Insight-developers] Linking error

Bill Lorensen bill.lorensen at gmail.com
Tue Mar 22 10:09:13 EDT 2011


Be sure that your program and ITK were both built with the same build
type.For example, Debug, RelWithDebInfo of Release.

On Tue, Mar 22, 2011 at 6:41 AM, thanga aarthy manoharan
<rthy4u at gmail.com>wrote:

>  I am performing a convolution operation sir, i had created two output
> images so that when i apply convolution with the low pass filter and high
> pass filter i get two different outputs. i dint get any error in my
> programming but i am getting a linking error. i am using insight tool
> kit3.20 and Cmake 2.8.2,  V C++ 2008 and Windows xp.
>
>
> LINK : fatal error LNK1104: cannot open file 'ITKVnl.lib'     .........
> this is my error ..... can u please help me out sir..... thank you
> CMakeLists.txt
>
> cmake_minimum_required(VERSION 2.8)
> PROJECT(dwt  )
> FIND_PACKAGE ( ITK )
> IF(ITK_FOUND)
>                 INCLUDE( ${USE_ITK_FILE} )
>                 INCLUDE_DIRECTORIES( ${ITK_INCLUDE_DIR} )
>                 LINK_LIBRARIES(
>                                 ITKAlgorithms
>                                 ITKBasicFilters
>                                 ITKCommon
>                                 ITKIO
>                                 ITKStatistics
>                                 ITKNumerics
>                 )
> ENDIF( ITK_FOUND )
> ADD_EXECUTABLE(dwt MYNeighborhoodIterators1.cxx )
> TARGET_LINK_LIBRARIES (dwt ITKCommon ITKIO)
>
> Thank You Sir
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110322/04b3142a/attachment.htm>


More information about the Insight-developers mailing list