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