SimpleITK undefined reference to issue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SimpleITK undefined reference to issue

Tianyi Miao
Dear 3DSlicer Team,

I got some issue when I compiler with ITK and SimpleITK library, it seems because intra-dependencies in SimpleITK and new version of Slicer, 

Linking CXX executable ../lib/Slicer-4.7/cli-modules/SpacingAwareCurvatureDiffusion
/imaging/miao/slicer/trunk/build/SimpleITK-build/SimpleITK-build/lib/libSimpleITKBasicFilters1-0.11.so.1: undefined reference to `itk::ImageToImageFilter<itk::Image<int, 2u>, itk::Image<int, 2u> >::PushFrontInput(itk::DataObject const*)'
/imaging/miao/slicer/trunk/build/SimpleITK-build/SimpleITK-build/lib/libSimpleITKBasicFilters1-0.11.so.1: undefined reference to `itk::ImageToImageFilter<itk::Image<unsigned short, 3u>, itk::Image<double, 3u> >::PushBackInput(itk::DataObject const*)'
/imaging/miao/slicer/trunk/build/SimpleITK-build/SimpleITK-build/lib/libSimpleITKBasicFilters1-0.11.so.1: undefined reference to `itk::ImageToImageFilter<itk::Image<unsigned short, 3u>, itk::Image<float, 3u> >::GetCoordinateTolerance() const’

………….

I am working under Ubuntu 16.04.1 with GNU 5.4.0,

And I do target library as below


#-----------------------------------------------------------------------------
set(MODULE_INCLUDE_DIRECTORIES
  )

set(MODULE_SRCS
  )

set(MODULE_TARGET_LIBRARIES
  ${SimpleITK_LIBRARIES} ${SimpleITK_LIBRARIES} ${ITK_LIBRARIES} 
  )
#——————————————————————————————————————

but still receive this error message, any help appreciated!

Thank you all,

Miao


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: SimpleITK undefined reference to issue

Dzenan Zukic
Hi Miao,

maybe this thread at StackOverflow will help:

Regards

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

On Sat, Feb 11, 2017 at 11:07 PM, Tianyi Miao <[hidden email]> wrote:
Dear 3DSlicer Team,

I got some issue when I compiler with ITK and SimpleITK library, it seems because intra-dependencies in SimpleITK and new version of Slicer, 

Linking CXX executable ../lib/Slicer-4.7/cli-modules/SpacingAwareCurvatureDiffusion
/imaging/miao/slicer/trunk/build/SimpleITK-build/SimpleITK-build/lib/libSimpleITKBasicFilters1-0.11.so.1: undefined reference to `itk::ImageToImageFilter<itk::Image<int, 2u>, itk::Image<int, 2u> >::PushFrontInput(itk::DataObject const*)'
/imaging/miao/slicer/trunk/build/SimpleITK-build/SimpleITK-build/lib/libSimpleITKBasicFilters1-0.11.so.1: undefined reference to `itk::ImageToImageFilter<itk::Image<unsigned short, 3u>, itk::Image<double, 3u> >::PushBackInput(itk::DataObject const*)'
/imaging/miao/slicer/trunk/build/SimpleITK-build/SimpleITK-build/lib/libSimpleITKBasicFilters1-0.11.so.1: undefined reference to `itk::ImageToImageFilter<itk::Image<unsigned short, 3u>, itk::Image<float, 3u> >::GetCoordinateTolerance() const’

………….

I am working under Ubuntu 16.04.1 with GNU 5.4.0,

And I do target library as below


#-----------------------------------------------------------------------------
set(MODULE_INCLUDE_DIRECTORIES
  )

set(MODULE_SRCS
  )

set(MODULE_TARGET_LIBRARIES
  ${SimpleITK_LIBRARIES} ${SimpleITK_LIBRARIES} ${ITK_LIBRARIES} 
  )
#——————————————————————————————————————

but still receive this error message, any help appreciated!

Thank you all,

Miao


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ