[ITK Community] Issues with ITK version 4.5.0

Chrystel Juan chrystel.juan at kitware.com
Wed Jan 8 13:15:00 EST 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140108/79185d5e/attachment.html>


More information about the Community mailing list