[Insight-users] ITKv4: ld: library not found for -lITKIO
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Mon May 30 04:49:51 EDT 2011
Le 30 mai 11 à 10:38, francois rousseau a écrit :
> Hi all,
>
> trying to switch to ITKv4 (from 3.20), there is an error when
> linking library ITKIO. (there was no problem with ITK3.20).
> Is there something new in ITKv4 about that ?
>
> Here is the code in the cmake file:
> ADD_EXECUTABLE(toto toto.cxx )
> TARGET_LINK_LIBRARIES(toto ITKIO )
Hi,
You should rather link to ${ITK_LIBRARIES}:
TARGET_LINK_LIBRARIES(toto ${ITK_LIBRARIES})
It will work for itk 3.20 and itk 4.
Regards,
Gaëtan
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110530/7a43d7a1/attachment.pgp>
More information about the Insight-users
mailing list