[ITK Community] Linker errors on Mac 10.7 with ITK 4.5.1

Fetzer, Andreas a.fetzer at Dkfz-Heidelberg.de
Thu Mar 6 10:18:09 EST 2014


Hi Brad,

I finally got it working. I had to disable BUILD_TESTING and BUILD_EXAMPLES in CMake.

I will try to set up a dartclient this week. Is there a way in the dashboard script to force the build as shared libraries?

Thanks a lot again!

Andreas

From: Bradley Lowekamp [mailto:blowekamp at mail.nih.gov]
Sent: Mittwoch, 5. März 2014 17:38
To: Matt McCormick
Cc: Fetzer, Andreas; community at itk.org
Subject: Re: [ITK Community] Linker errors on Mac 10.7 with ITK 4.5.1

Hello,

I was unable to reproduce your error on the current release branch.

$ clang --version
Apple clang version 3.1 (tags/Apple/clang-318.0.54) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

$ CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake DBUILD_SHARED_LIBS:BOOL=ON ../ITK && make -j 6

This compiled fine for me.

Brad

On Mar 5, 2014, at 11:17 AM, Matt McCormick <matt.mccormick at kitware.com<mailto:matt.mccormick at kitware.com>> wrote:


Hi Andreas,

On Wed, Mar 5, 2014 at 10:32 AM, Fetzer, Andreas <a.fetzer at dkfz-heidelberg.de<mailto:a.fetzer at dkfz-heidelberg.de>> wrote:
Hi Matt,

yes I have seen that the patch was merge into your release branch. However I still get linker errors. This time for itk::NumericTraits:

Linking CXX executable ../../../../bin/ITKCommon1TestDriver
Undefined symbols for architecture x86_64:
  "itk::NumericTraits<itk::CovariantVector<char, 1u> >::Zero", referenced from:
      void CheckFixedArrayTraits<itk::CovariantVector<char, 1u> >(itk::CovariantVector<char, 1u> const&) in itkNumericTraitsTest.cxx.o
  "itk::NumericTraits<itk::CovariantVector<char, 1u> >::One", referenced from:
      void CheckFixedArrayTraits<itk::CovariantVector<char, 1u> >(itk::CovariantVector<char, 1u> const&) in itkNumericTraitsTest.cxx.o
  "itk::NumericTraits<itk::CovariantVector<signed char, 1u> >::Zero", referenced from:
      void CheckFixedArrayTraits<itk::CovariantVector<signed char, 1u> >(itk::CovariantVector<signed char, 1u> const&) in itkNumericTraitsTest.cxx.o
  "itk::NumericTraits<itk::CovariantVector<signed char, 1u> >::One", referenced from:
      void CheckFixedArrayTraits<itk::CovariantVector<signed char, 1u> >(itk::CovariantVector<signed char, 1u> const&) in itkNumericTraitsTest.cxx.o
  "itk::NumericTraits<itk::CovariantVector<unsigned char, 1u> >::Zero", referenced from:
      void CheckFixedArrayTraits<itk::CovariantVector<unsigned char, 1u> >(itk::CovariantVector<unsigned char, 1u> const&) in itkNumericTraitsTest.cxx.o

Is this already know to you?

No.  If this platform is important to you, please consider setting up a Nightly dashboard submission [1].  Inspecting the code, I do not see the issue.  The symbol appears to be created [2] with the correct exports [3].  Maybe a dashboard submission will show details that will help us work together to fix the issue.

When will the 4.5.2 be released?
Our own release is scheduled for the end of March. Before that we would like to solve the linker errors in ITK.


If we can get issue fixed, we would be happy to coordinate with you and get 4.5.2 released in later in March before your release.

Thanks,
Matt

[1]  http://www.itk.org/Wiki/ITK/Git/Dashboard

[2] http://itk.org/gitweb?p=ITK.git;a=blob;f=Modules/Core/Common/include/itkNumericTraitsFixedArrayPixel.h;h=1db158e8800fb156b8ae1cb491ac6020f2a6b296;hb=HEAD#l187

[3] http://itk.org/gitweb?p=ITK.git;a=blob;f=Modules/Core/Common/src/itkNumericTraitsCovariantVectorPixel.cxx;h=e63057e8b6ad4eae24844f077caec2ea486d0f96;hb=HEAD#l22


_______________________________________________
Community mailing list
Community at itk.org<mailto:Community at itk.org>
http://public.kitware.com/cgi-bin/mailman/listinfo/community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140306/ecac1743/attachment-0002.html>


More information about the Community mailing list