[Insight-developers] Builds on Mac OS X are failing when linking libITK-Transform-4.0.1.dylib

Alexandre GOUAILLARD agouaillard at gmail.com
Mon May 23 12:23:16 EDT 2011


works for me:

diff --git a/Modules/Core/Transform/src/CMakeLists.txt b/Modules/Core/Transform/
index 52f1fc1..2ef25c1 100644
--- a/Modules/Core/Transform/src/CMakeLists.txt
+++ b/Modules/Core/Transform/src/CMakeLists.txt
@@ -13,5 +13,5 @@ set(ITK-Transform_SRC
   )

 add_library(ITK-Transform ${ITK-Transform_SRC})
-target_link_libraries(ITK-Transform  ${ITK-ImageStatistics_LIBRARIES} itkhdf5 i
+target_link_libraries(ITK-Transform  ${ITK-Common_LIBRARIES} ${ITK-ImageStatist
 itk_module_target(ITK-Transform)



see experimental:
http://www.cdash.org/CDash/viewTest.php?onlypassed&buildid=1158375





On Tue, May 24, 2011 at 12:13 AM, Cory Quammen <cquammen at cs.unc.edu> wrote:
> Alex,
>
> I can confirm that the error occurs only when BUILD_SHARED is enabled.
> With verbose output, the linker command is:
>
> Linking CXX shared library ../../../../lib/libITK-Transform-4.0.dylib
> cd /Users/cquammen/dev/build/ITK-Modular/Modules/Core/Transform/src &&
> "/Applications/CMake 2.8-3.app/Contents/bin/cmake" -E
> cmake_link_script CMakeFiles/ITK-Transform.dir/link.txt --verbose=1
> /usr/bin/c++    -Wall -Wno-deprecated -msse2 -g -dynamiclib
> -headerpad_max_install_names   -compatibility_version 1.0.0
> -current_version 1.0.0 -o ../../../../lib/libITK-Transform-4.0.1.dylib
> -install_name /Users/cquammen/dev/build/ITK-Modular/lib/libITK-Transform-4.0.1.dylib
> CMakeFiles/ITK-Transform.dir/itkHDF5TransformIO.cxx.o
> CMakeFiles/ITK-Transform.dir/itkHDF5TransformIOFactory.cxx.o
> CMakeFiles/ITK-Transform.dir/itkTxtTransformIO.cxx.o
> CMakeFiles/ITK-Transform.dir/itkTxtTransformIOFactory.cxx.o
> CMakeFiles/ITK-Transform.dir/itkTransformIOBase.cxx.o
> CMakeFiles/ITK-Transform.dir/itkMatlabTransformIO.cxx.o
> CMakeFiles/ITK-Transform.dir/itkTransformFactoryBase.cxx.o
> CMakeFiles/ITK-Transform.dir/itkTransformFileWriter.cxx.o
> CMakeFiles/ITK-Transform.dir/itkTransformFileReader.cxx.o
> CMakeFiles/ITK-Transform.dir/itkMatlabTransformIOFactory.cxx.o
> CMakeFiles/ITK-Transform.dir/itkTransformIOFactory.cxx.o
> ../../../../lib/libitkhdf5-4.0.1.dylib
> ../../../../lib/libitkhdf5_cpp-4.0.1.dylib
> ../../../../lib/libitkhdf5-4.0.1.dylib -lm
> ../../../../lib/libitkzlib-4.0.1.dylib
>
> I'm currently trying out adding ITK-Common_LIBRARIES to the linker
> command and will keep you posted.
>
> Thanks,
> Cory
>
> On Mon, May 23, 2011 at 11:45 AM, Alexandre GOUAILLARD
> <agouaillard at gmail.com> wrote:
>> hi cory,
>>
>> It seems to happen only in dynamic libs. My first feeling was a mising
>> (explicit) libraries as mac wants all the libraries a target depends
>> on to be listed (not like linux which would accept the minimum set of
>> libs that would in term link against other dependencies).
>> Indeed adding ITK-Common_LIBRARIES to the the link list seems to do the trick.
>> I m making a full experimental and let you know.
>>
>> alex.
>>
>>
>> On Mon, May 23, 2011 at 10:29 PM, Alexandre GOUAILLARD
>> <agouaillard at gmail.com> wrote:
>>> yes, i m trying to debug that right now, have the same issue, and it
>>> appears on both gaethan's machine, and cosmo machine's in Boston.
>>>
>>> let me know if you find before me ;-)
>>>
>>> alex.
>>>
>>>
>>> On Mon, May 23, 2011 at 9:23 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:
>>>> See, for example, http://www.cdash.org/CDash/viewBuildError.php?buildid=1155357
>>>>
>>>> --
>>>> Cory Quammen
>>>> Computer Integrated Systems for Microscopy and Manipulation (CISMM)
>>>> Department of Computer Science
>>>> University of North Carolina at Chapel Hill
>>>> http://www.cs.unc.edu/~cquammen
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Kitware offers ITK Training Courses, for more information visit:
>>>> http://kitware.com/products/protraining.html
>>>>
>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.itk.org/mailman/listinfo/insight-developers
>>>>
>>>
>>
>
>
>
> --
> Cory Quammen
> Computer Integrated Systems for Microscopy and Manipulation (CISMM)
> Department of Computer Science
> University of North Carolina at Chapel Hill
> http://www.cs.unc.edu/~cquammen
>


More information about the Insight-developers mailing list