[Insight-developers] static build of itk

brian avants stnava at gmail.com
Thu Nov 24 08:29:20 EST 2011


hi

just trying to build itk statically and have seen this persistent
issue over the last week:

architecture:  11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9
20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64

compiler : gcc-4.6.1 (same issue with standard osx lvm)

in cmake :   BUILD_STATIC_EXECS               ON

then make and i get  "   ld: library not found for -lcrt0.o   "   from below:

[ 22%] Built target ITKVoronoi-all
[ 22%] Building C object
Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.o
Linking C executable ../../../../../../bin/H5make_libsettings
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
make[2]: *** [bin/H5make_libsettings] Error 1
make[1]: *** [Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5make_libsettings.dir/all]
Error 2
make[1]: *** Waiting for unfinished jobs....
[ 39%] Built target itkv3p_netlib
make: *** [all] Error 2

any ideas how to overcome this and/or if it will be overcome in the
main dev tree?

happy thanksgiving,

brian


More information about the Insight-developers mailing list