[ITK] [ITK-users] Linking problem with ITK 4.8 and VTK 6.2

Matt McCormick matt.mccormick at kitware.com
Thu Apr 21 09:17:41 EDT 2016


Hi Marco,

Please use ITK 4.9.1 where this issue has been resolved.

Thanks,
Matt

On Thu, Apr 21, 2016 at 5:52 AM, marco giordano <marco.giord at gmail.com> wrote:
> Dear ITK Users,
>
> I am experiencing a linking problem when I try to build a project using ITK
> and VTK. I use MS Visual Studio 2013 on Windows 7, Cmake 3.2.2, ITK 4.8, and
> VTK 6.2.
>
> Basically in my Cmake file I use "FIND_PACKAGE(ITK REQUIRED)" and
> "FIND_PACKAGE(VTK 6.2)" then configure, generate the project file and build
> it, however the compiler complains the he can not find "vtkCommonCore.lib"
> whereas that library is in
> "D:\vtk\vtk-bin-6v2\lib\Debug\vtkCommonCore-6.2.lib" so he is not looking
> for the right version and in the right place.
>
> I repeated the procedure excluding VTK both from the cmake file and from the
> code and it is still complaining he can not find "vtkCommonCore.lib" so I
> assume that ITK is trying to load VTK and link the wrong VTK library. I
> checked in VS Properties->Configuration->Linker->Input->Dependencies and no
> matter what i change in cmake it is always linking to the wrong libraries
> "vtk<nameofLibrary>.lib" so i always have to change those manually. Please
> let me know if you have suggestions how to solve this.
>
> Regards,
> Marco
>
>
> --
> Marco Giordano
> SKYPE:marcogiord81
>
> _____________________________________
> 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://public.kitware.com/mailman/listinfo/insight-users
>
_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list