[Insight-users] itk 4.1 and .lib directories

Bill Lorensen bill.lorensen at gmail.com
Sun Mar 18 10:22:18 EDT 2012


When referencing libraries in your cake file use ${ITK_LIBRARIES}
rather than the individual libraries.

Also, itkWhiteTopHatByAreaImageFilter must be one of your our files.
ITK_TYPENAME is not defined in ITKv4. Just remove it.

On Sat, Mar 17, 2012 at 6:22 PM, barbababa <tonimuusimaki at gmail.com> wrote:
>
> Hello all!
>
> I finally managed to upgrade from 3.2 to 4.1 and i got a linking error that
> ITKcommon.lib cannot be opened.
> I realized that there was no libs in the build folder, i only found these
> files:
> itktestdriver.idb
> itkTestDriver.exe
> ....
>
> After a while i realized that the libs were in a folder:
> C:\Program Files\ITK\lib\InsightToolkit
>
> Is this some new convention? i only changed useGPU ON and useReview ON and
> buildallmodules ON in the cmake options...
> I managed to fix this by just updating the libs folders in VS9 but i was
> just wondering is this normal???
> I am using win7 x64 VS 2008 release.
>
> My project was working fine in 3.2 but here i got these errors:
>
> itkWhiteTopHatByAreaImageFilter.h(34) : error C2065: 'ITK_TYPENAME' :
> undeclared identifier
>
> ObliqueSlice3Dto2DFilter.cpp(73) : error C2440: 'initializing' : cannot
> convert from 'itk::SmartPointer<TObjectType>' to
> 'itk::SmartPointer<TObjectType>'
>
> DemonsRegistration.cxx(24) : fatal error C1083: Cannot open include file:
> 'itkTransformToDeformationFieldSource.h': No such file or directory
>
> 1>c:\program
> files\itk\include\insighttoolkit\numerics\statistics\itkImageToListAdaptor.h(63)
> : error C2065: 'ITK_TYPENAME' : undeclared identifier
> 1>        C:\Program
> Files\ITK\include\InsightToolkit\Numerics\Statistics\itkImageToHistogramGenerator.h(120)
> : see reference to class template instantiation
> 'itk::Statistics::ImageToHistogramGenerator<TImageType>' being compiled
>
>
> AmoebaOptimization.cpp(1162) : error C2248:
> 'itk::ImageRegistrationMethod<TFixedImage,TMovingImage>::StartRegistration'
> : cannot access protected member declared in class
> 'itk::ImageRegistrationMethod<TFixedImage,TMovingImage>'
>
>
> SymmetricForcesDemonsRegistrationFilter.cpp(411) : error C2039:
> 'SetDeformationField' : is not a member of
> 'itk::WarpImageFilter<TInputImage,TOutputImage,TDisplacementField>'
>
>
>
> Any ideas?
>
>
> thanks....
>
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/itk-4-1-and-lib-directories-tp7382658p7382658.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> 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://www.kitware.com/products/protraining.php
>
> 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-users



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-users mailing list