[Insight-users] ImageRegistration2.cxx Compilation Error

Taburet, Nicolas Nicolas.Taburet@eads.net
Tue May 4 17:39:38 EDT 2004


I tried it but I have always the same error.
Thanks,

Nicolas


-----Message d'origine-----
De : Julien Jomier [mailto:jjomier@cs.unc.edu]
Envoy=E9 : mardi 4 mai 2004 18:31
=C0 : 'Taburet, Nicolas'; insight-users@itk.org
Objet : RE: [Insight-users] ImageRegistration2.cxx Compilation Error


Hi Nicolas,

You are missing the itkCommon library. Try to add it to your
TARGET_LINK_LIBRARIES:
TARGET_LINK_LIBRARIES(ImageRegistration2 ITKNumerics ITKIO ITKCommon)

best regards,

Julien

> -----Original Message-----
> From: insight-users-admin@itk.org=20
> [mailto:insight-users-admin@itk.org] On Behalf Of Taburet, Nicolas
> Sent: Tuesday, May 04, 2004 12:19 PM
> To: 'insight-users@itk.org'
> Subject: [Insight-users] ImageRegistration2.cxx Compilation Error
>=20
>=20
> Dear ITK users
>=20
> I am a beginer and I try to compile ImageRegistration2.cxx=20
> file but I get
> this message:
>=20
>=20
> Building executable
> /home/nico/itk/bin/Registration/ImageRegistration2.exe...
> ImageRegistration2.o(.text$_ZN3itk22GaussianKernelFunctionC1Ev
> +0x15):ImageRe
> gistration2.cxx: undefined reference to
> '__imp___ZTVN3itk14GaussianKernelFunctionE'
> ImageRegistration2.o(.text$_ZN3itk14KernelFunctionC1Ev+0x15):I
mageRegistrati
> on2.cxx: undefined reference to '__imp___ZTVN3itk14KernelFunctionE'
> collect2: ld returned 1 exit status
> make[1]:=20
> ***[/home/nico/itk/bin/Registration/ImageRegistration2.exe] Error 1
> make: ***[default_target] Error 2
>=20
> Here is my CMakeLists.txt file:=20
> PROJECT(ImageRegistration2)
> INCLUDE_REGULAR_EXPRESSION("^.*$")
>=20
> # Find ITK.
> FIND_PACKAGE(ITK)
> IF(ITK_FOUND)
>   INCLUDE(${ITK_USE_FILE})
> ELSE(ITK_FOUND)
>   MESSAGE(FATAL_ERROR
>           "Cannot build without ITK.  Please set ITK_DIR.")
> ENDIF(ITK_FOUND)
>=20
> ADD_EXECUTABLE(ImageRegistration2 ImageRegistration2.cxx )
> TARGET_LINK_LIBRARIES(ImageRegistration2 ITKNumerics ITKIO)
>=20
> I think the error comes from=20
> itk::MutualInformationImageToImageMetric which
> use itk::KermelFunction and itk::GaussianKermelFunction but I=20
> haven't had
> any success solviing the problem.=20
> Any assitance would be greatly appreciated. =20
> Thanks.=20
> Nicolas
>=20
> _______________________________________________
> Insight-users mailing list
> Insight-users@itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>=20



More information about the Insight-users mailing list