[Insight-developers] Builds on Mac OS X are failing when linking libITK-Transform-4.0.1.dylib
Xiaoxiao Liu
xiaoxiao.liu at kitware.com
Mon May 23 14:43:03 EDT 2011
I think I forgot to replace ${ITK-ImageStatistics_LIBRAIRES} in
Transform/src/CMakeLists.txt in gerrit 1698.
Here is a patch, please let me know whether fix the mac issue:
http://review.source.kitware.com/#change,1714
Thanks!
On Mon, May 23, 2011 at 2:20 PM, Xiaoxiao Liu <xiaoxiao.liu at kitware.com>wrote:
> I have merged a fix to master lately:
> http://review.source.kitware.com/#change,1698, in which
> the ITK-ImageStatistics dependency is removed from ITK-Transform.
>
> Is this relevant? Did you try cleaning up your build directory?
> I think this change might require a fresh build directory.
>
>
>
>
>
>
> On Mon, May 23, 2011 at 12:24 PM, Cory Quammen <cquammen at cs.unc.edu>wrote:
>
>> Looks good.
>>
>> Will you submit a patch to gerrit?
>>
>> Thanks,
>> Cory
>>
>> On Mon, May 23, 2011 at 12:23 PM, Alexandre GOUAILLARD
>> <agouaillard at gmail.com> wrote:
>> > 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
>> >>
>> >
>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
>
>
> ---------------------------------------------
> *Xiaoxiao Liu*, Ph.D.
> R & D Engineer
> Kitware Inc <http://www.kitware.com/>.
> Clifton Park, NY
> Phone: (518) 881-4924 or (518) 371-3971 x124
>
>
>
--
---------------------------------------------
*Xiaoxiao Liu*, Ph.D.
R & D Engineer
Kitware Inc <http://www.kitware.com/>.
Clifton Park, NY
Phone: (518) 881-4924 or (518) 371-3971 x124
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110523/8dd745a6/attachment.htm>
More information about the Insight-developers
mailing list