Continuing the discussion from Compiling ~MinimalPathExtraction~ with ITK 5.2.1:
Hello! (This is not a request for help) I’m getting this error with v1.1 (8cb12a20) and v1.0.0 of TubeTK.
samu: file is missing and not created by any action: '/usr/lib/libdl.so'
When using GNU Make, this is the result:
[ 46%] Built target ITKImageLabelSwig
make[2]: *** No rule to make target '/usr/lib/libdl.so', needed by 'Wrapping/Generators/Python/itk/libitkTubeTK-5.3.so.1'. Stop.
make[1]: *** [CMakeFiles/Makefile2:14113: Modules/Remote/TubeTK/src/CMakeFiles/TubeTK.dir/all] Error 2
I (regex-)replaced ‘libdl..so’ and 'libdl..a’ with ‘libdl.so.2’ (which exists in my system) in the source directories before running /CMake/ like this:
find . -type f -exec grep -l libdl \{\} + |
parallel 'sed -i "s%libdl.*\.\(so\|a\)[[:digit:].]*%libdl.so.2%g" {}'
After this change, the compilation seems to be working with Samurai (Ninja equivalent; did not try with GNU Make, because it takes longer to show the error).
I have checked, and gnu/lib-names-64.h
does include "libdl.so.2"
These are my compilation options (I use the same to build ITK with other modules):
-S "${srcdir}"/"${_pkgbase}"
-B "${_build_dir}"
-DCMAKE_INSTALL_PREFIX:FILEPATH=/usr
-DCMAKE_BUILD_TYPE:STRING=Release
-DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF
--log-level="NOTICE"
-DCMAKE_CXX_FLAGS:STRING="-std=c++11 -pipe -fno-plt -fPIC -fopenmp -march=native -mtune=native -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS -fcf-protection -fno-plt -fstack-clash-protection -Wformat -Werror=format-security -O2 -L/usr/lib -ldl"
-DCMAKE_C_FLAGS:STRING="-pipe -fno-plt -fPIC -fopenmp -march=native -mtune=native -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS -fcf-protection -fno-plt -fstack-clash-protection -Wformat -Werror=format-security -O2"
-DITK_CXX_OPTIMIZATION_FLAGS:STRING="-pipe -fno-plt -fPIC -fopenmp -march=native -mtune=native -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS -fcf-protection -fno-plt -fstack-clash-protection -Wformat -Werror=format-security -O3"
-DITK_C_OPTIMIZATION_FLAGS:STRING="-pipe -fno-plt -fPIC -fopenmp -march=native -mtune=native -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS -fcf-protection -fno-plt -fstack-clash-protection -Wformat -Werror=format-security -O3"
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON
-G Ninja
-DBUILD_TESTING:BOOL=OFF
-DBUILD_EXAMPLES:BOOL=OFF
-DITK_BUILD_DOCUMENTATION:BOOL=OFF
-DITK_BUILD_DEFAULT_MODULES:BOOL=ON
-DITK_WRAP_PYTHON:BOOL=ON
-DITK_USE_SYSTEM_SWIG:BOOL=ON
-DITK_USE_SYSTEM_CASTXML:BOOL=ON
-DITK_LEGACY_SILENT:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=ON
-DITK_USE_SYSTEM_LIBRARIES:BOOL=ON
-DITK_USE_SYSTEM_JPEG:BOOL=ON
-DITK_USE_SYSTEM_PNG:BOOL=ON
-DITK_USE_SYSTEM_ZLIB:BOOL=ON
-DITK_USE_SYSTEM_TIFF:BOOL=ON
-DITK_USE_SYSTEM_GDCM:BOOL=ON
-DITK_USE_SYSTEM_EXPAT:BOOL=ON
-DITK_USE_SYSTEM_FFTW:BOOL=ON
-DITK_USE_SYSTEM_HDF5:BOOL=ON
-DITK_USE_64BITS_IDS:BOOL=ON
-DITK_WRAP_IMAGE_DIMS:STRING="2;3;4"
-DITK_WRAP_VECTOR_COMPONENTS:STRING="2;3;4"
-DITK_WRAP_float:BOOL=ON
-DITK_WRAP_vector_float:BOOL=ON
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON
-DModule_Montage:BOOL=ON
-DModule_MorphologicalContourInterpolation:BOOL=ON
-DModule_MultipleImageIterator:BOOL=ON
-DModule_PhaseSymmetry:BOOL=ON
-DModule_IsotropicWavelets:BOOL=OFF # Not working
-DModule_LabelErodeDilate:BOOL=ON
-DModule_Strain:BOOL=ON
-DModule_TwoProjectionRegistration:BOOL=ON
-DModule_TubeTK:BOOL=ON
-DModule_MinimalPathExtraction:BOOL=ON
I hope that this is useful . Thanks.