<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Or it could be related to this export declaration not being accessible, and correctly defining an import:<div><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Common/src/itkSmartPointerForwardReferenceProcessObject.cxx">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Common/src/itkSmartPointerForwardReferenceProcessObject.cxx</a></div><div><br><div><div><div>On Feb 26, 2014, at 6:08 PM, Chrystel Juan <<a href="mailto:chrystel.juan@kitware.com">chrystel.juan@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><div dir="ltr">Hi Brad & all,<div><br></div><div>I did git bisect on ITK and nailed the first commit [1] that makes my build of ITK fail.</div><div><br>Building in verbose mode, I can see that when building ITKCommon, the flags -fvisibility=hidden -fvisibility-inlines-hidden are passed to /usr/bin/c++ along with -DITKCommon_EXPORTS. However when building the other libraries (e.g. ITKIOTransformBase), those flags are not passed. And the build fail with the errors listed in my first email. </div>
<div><br></div><div>If I comment the <span style="background-color:rgb(255,255,204);color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre"> add_compiler_export_flags</span>  lines [2] then the build passes. </div>
<div><br></div><div>As I don't understand what is going on, can someone explain to me what the problem is with those flags ?</div><div><br></div><div>Thanks a lot for your help,</div><div>Chrystel.</div><div><br></div>
<div>[1]: <a href="https://github.com/Kitware/ITK/commit/6d369e106262f6e9bdab4ff9dc45d27eff6502d7">https://github.com/Kitware/ITK/commit/6d369e106262f6e9bdab4ff9dc45d27eff6502d7</a><br></div><div>[2]: <a href="https://github.com/Kitware/ITK/blob/6d369e106262f6e9bdab4ff9dc45d27eff6502d7/CMake/ITKModuleMacros.cmake#L148-L150">https://github.com/Kitware/ITK/blob/6d369e106262f6e9bdab4ff9dc45d27eff6502d7/CMake/ITKModuleMacros.cmake#L148-L150</a><br>
</div><div><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Matt McCormick</b> <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span><br>

Date: Fri, Jan 10, 2014 at 10:59 AM<br>Subject: Re: [ITK Community] Issues with ITK version 4.5.0<br>To: Chrystel Juan <<a href="mailto:chrystel.juan@kitware.com" target="_blank">chrystel.juan@kitware.com</a>><br>Cc: "<a href="mailto:community@itk.org" target="_blank">community@itk.org</a>" <<a href="mailto:community@itk.org" target="_blank">community@itk.org</a>><br>

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