[ITK Community] Issues with ITK version 4.5.0

Matt McCormick matt.mccormick at kitware.com
Fri Jan 10 10:59:48 EST 2014


Hi Chrystal,

It is possible that you have discovered a bug.  There is not a
dashboard build for Mac 10.7/GCC.  There is a Mac 10.7/Clang build:

  http://open.cdash.org/viewNotes.php?buildid=3171172

It may be worthwhile to try first see that it works.

Thanks,
Matt

On Wed, Jan 8, 2014 at 10:15 AM, Chrystel Juan
<chrystel.juan at kitware.com> wrote:
> Hi,
>
> I am trying to build the ITK folder version 4.5.0 on my Mac OS X version
> 10.7.5.
>
> But I have those errors :
>
> Linking CXX shared library ../../../../lib/libITKIOTransformBase-4.5.dylib
> Undefined symbols for architecture x86_64:
>   "itk::SmartPointerForwardReference<itk::ProcessObject>::operator
> itk::ProcessObject*() const", referenced from:
>       itk::ImageBase<3u>::UpdateOutputInformation() in
> itkTransformFactoryBase.cxx.o
>       itk::ImageBase<2u>::UpdateOutputInformation() in
> itkTransformFactoryBase.cxx.o
>
> "itk::SmartPointerForwardReference<itk::ProcessObject>::~SmartPointerForwardReference()",
> referenced from:
>       itk::ImageBase<3u>::UpdateOutputInformation() in
> itkTransformFactoryBase.cxx.o
>       itk::ImageBase<2u>::UpdateOutputInformation() in
> itkTransformFactoryBase.cxx.o
>   "itk::SmartPointerForwardReference<itk::ProcessObject>::operator->()
> const", referenced from:
>       itk::ImageBase<3u>::UpdateOutputInformation() in
> itkTransformFactoryBase.cxx.o
>       itk::ImageBase<2u>::UpdateOutputInformation() in
> itkTransformFactoryBase.cxx.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[2]: *** [lib/libITKIOTransformBase-4.5.1.dylib] Error 1
> make[1]: ***
> [Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> Linking CXX shared library ../../../../lib/libITKIOBioRad-4.5.dylib
> [ 60%] Built target ITKIOBioRad
> make: *** [all] Error 2
>
>
> Those errors happen only when DBUILD_SHARED_LIBS:BOOL is turned on. When I
> am in statics it works fine.
>
> I am using  CMake version 2.8-11, with those followings parameters :
>
> //Build the documentation (Doxygen).
> BUILD_DOCUMENTATION:BOOL=OFF
>
> //Build the Examples directory.
> BUILD_EXAMPLES:BOOL=ON
>
> //Build Shared Libraries
> BUILD_SHARED_LIBS:BOOL=OFF
>
> //Build the testing tree.
> BUILD_TESTING:BOOL=ON
>
> //CXX compiler.
> CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
>
> //Flags used by the compiler during all build types.
> CMAKE_CXX_FLAGS:STRING=
>
> //Flags used by the compiler during debug builds.
> CMAKE_CXX_FLAGS_DEBUG:STRING=-g
>
> //C compiler.
> CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
>
>
> and those compiler version :
>
> Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
> Target: x86_64-apple-darwin11.4.2
> Thread model: posix
>
> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
>
> Chrystel
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>



More information about the Community mailing list