Can't build OTBMetadata with SuperBuild
/usr/bin/ld: CMakeFiles/OTBMetadata.dir/otbTerraSarXSarImageMetadataInterface.cxx.o: in function `otb::ExtractXMLFiles::GetXMLFilesInDirectory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) [clone .localalias]':
otbTerraSarXSarImageMetadataInterface.cxx:(.text+0x15fc): undefined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: otbTerraSarXSarImageMetadataInterface.cxx:(.text+0x16e7): undefined reference to `boost::filesystem::directory_entry::m_get_status(boost::system::error_code*) const'
/usr/bin/ld: otbTerraSarXSarImageMetadataInterface.cxx:(.text+0x1721): undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
/usr/bin/ld: otbTerraSarXSarImageMetadataInterface.cxx:(.text+0x172c): undefined reference to `boost::filesystem::path::extension() const'
/usr/bin/ld: CMakeFiles/OTBMetadata.dir/otbTerraSarXSarImageMetadataInterface.cxx.o: in function `otb::ExtractXMLFiles::GetResourceFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)':
otbTerraSarXSarImageMetadataInterface.cxx:(.text+0x1bda): undefined reference to `boost::filesystem::path::filename() const'
/usr/bin/ld: CMakeFiles/OTBMetadata.dir/otbTerraSarXSarImageMetadataInterface.cxx.o: in function `otb::ExtractXMLFiles::GetXMLFilesInDirectory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) [clone .cold]':
otbTerraSarXSarImageMetadataInterface.cxx:(.text.unlikely+0x3a3): undefined reference to `boost::filesystem::detail::dir_itr_close(void*&, void*&)'
/usr/bin/ld: CMakeFiles/OTBMetadata.dir/otbTerraSarXSarImageMetadataInterface.cxx.o: in function `boost::detail::sp_counted_impl_p<boost::filesystem::detail::dir_itr_imp>::dispose()':
otbTerraSarXSarImageMetadataInterface.cxx:(.text._ZN5boost6detail17sp_counted_impl_pINS_10filesystem6detail11dir_itr_impEE7disposeEv[_ZN5boost6detail17sp_counted_impl_pINS_10filesystem6detail11dir_itr_impEE7disposeEv]+0x13): undefined reference to `boost::filesystem::detail::dir_itr_close(void*&, void*&)'
/usr/bin/ld: CMakeFiles/OTBMetadata.dir/otbTerraSarXSarImageMetadataInterface.cxx.o: in function `_GLOBAL__sub_I_otbTerraSarXSarImageMetadataInterface.cxx':
otbTerraSarXSarImageMetadataInterface.cxx:(.text.startup+0x3d): undefined reference to `boost::system::generic_category()'
/usr/bin/ld: otbTerraSarXSarImageMetadataInterface.cxx:(.text.startup+0x42): undefined reference to `boost::system::generic_category()'
/usr/bin/ld: otbTerraSarXSarImageMetadataInterface.cxx:(.text.startup+0x47): undefined reference to `boost::system::system_category()'
/usr/bin/ld: CMakeFiles/OTBMetadata.dir/otbRadarsat2ImageMetadataInterface.cxx.o: in function `otb::Radarsat2ImageMetadataInterface::CreateCalibrationLookupData(otb::SARCalib&, otb::ImageMetadata const&, otb::MetadataSupplierInterface const&, bool) const':
otbRadarsat2ImageMetadataInterface.cxx:(.text+0xb85): undefined reference to `boost::filesystem::path::remove_filename()'
/usr/bin/ld: otbRadarsat2ImageMetadataInterface.cxx:(.text+0xb94): undefined reference to `boost::filesystem::path::operator/=(char const*)'
/usr/bin/ld: otbRadarsat2ImageMetadataInterface.cxx:(.text+0xc2c): undefined reference to `boost::filesystem::path::remove_filename()'
/usr/bin/ld: otbRadarsat2ImageMetadataInterface.cxx:(.text+0xc3b): undefined reference to `boost::filesystem::path::operator/=(char const*)'
/usr/bin/ld: otbRadarsat2ImageMetadataInterface.cxx:(.text+0xd31): undefined reference to `boost::filesystem::path::remove_filename()'
/usr/bin/ld: otbRadarsat2ImageMetadataInterface.cxx:(.text+0xd40): undefined reference to `boost::filesystem::path::operator/=(char const*)'
/usr/bin/ld: CMakeFiles/OTBMetadata.dir/otbRadarsat2ImageMetadataInterface.cxx.o: in function `otb::Radarsat2ImageMetadataInterface::ParseGeom(otb::ImageMetadata&)':
otbRadarsat2ImageMetadataInterface.cxx:(.text+0x3f38): undefined reference to `boost::filesystem::path::remove_filename()'
/usr/bin/ld: otbRadarsat2ImageMetadataInterface.cxx:(.text+0x3f4a): undefined reference to `boost::filesystem::path::operator/=(char const*)'
/usr/bin/ld: otbRadarsat2ImageMetadataInterface.cxx:(.text+0x4405): undefined reference to `boost::filesystem::path::remove_filename()'
/usr/bin/ld: otbRadarsat2ImageMetadataInterface.cxx:(.text+0x4410): undefined reference to `boost::filesystem::path::operator/=(char const*)'
/usr/bin/ld: CMakeFiles/OTBMetadata.dir/otbRadarsat2ImageMetadataInterface.cxx.o: in function `_GLOBAL__sub_I_otbRadarsat2ImageMetadataInterface.cxx':
otbRadarsat2ImageMetadataInterface.cxx:(.text.startup+0x3d): undefined reference to `boost::system::generic_category()'
/usr/bin/ld: otbRadarsat2ImageMetadataInterface.cxx:(.text.startup+0x42): undefined reference to `boost::system::generic_category()'
/usr/bin/ld: otbRadarsat2ImageMetadataInterface.cxx:(.text.startup+0x47): undefined reference to `boost::system::system_category()'
collect2: error: ld returned 1 exit status
make[5]: *** [Modules/Core/Metadata/src/CMakeFiles/OTBMetadata.dir/build.make:837: lib/libOTBMetadata-9.0.so.1] Error 1
make[4]: *** [CMakeFiles/Makefile2:2115: Modules/Core/Metadata/src/CMakeFiles/OTBMetadata.dir/all] Error 2
make[3]: *** [Makefile:156: all] Error 2
make[2]: *** [CMakeFiles/OTB.dir/build.make:87: OTB/src/OTB-stamp/OTB-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:880: CMakeFiles/OTB.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Can't really see why this is happening because OTBMetadata
links to OTBBoostAdapters_LIBRARIES
and I see it in the compiler command line:
/usr/bin/c++ -fPIC -msse2 -mfpmath=sse -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wstrict-null-sentinel -O3 -DNDEBUG -Wl,--no-undefined -Wl,--no-undefined -shared -Wl,-soname,libOTBMetadata-9.0.so.1 -o ../../../../lib/libOTBMetadata-9.0.so.1 CMakeFiles/OTBMetadata.dir/otbWorldView2ImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbWorldView2ImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbQuickBirdImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbQuickBirdImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbImageMetadataInterfaceBase.cxx.o CMakeFiles/OTBMetadata.dir/otbSpotImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbSpotImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbDefaultImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbSarDefaultImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbOpticalDefaultImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbFormosatImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbFormosatImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbOpticalImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbOpticalImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbSpot6ImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbSpot6ImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbIkonosImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbIkonosImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbPleiadesImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbPleiadesImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbSarImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbSarImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbTerraSarXSarImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbTerraSarXSarImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbSentinel1ImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbSentinel1ImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbSentinel1ThermalNoiseLookupData.cxx.o CMakeFiles/OTBMetadata.dir/otbSentinel1CalibrationLookupData.cxx.o CMakeFiles/OTBMetadata.dir/otbCosmoImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbCosmoImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbRadarsat2ImageMetadataInterfaceFactory.cxx.o CMakeFiles/OTBMetadata.dir/otbRadarsat2ImageMetadataInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbNoDataHelper.cxx.o CMakeFiles/OTBMetadata.dir/otbFilterFunctionValues.cxx.o CMakeFiles/OTBMetadata.dir/otbMetaDataKey.cxx.o CMakeFiles/OTBMetadata.dir/otbImageMetadata.cxx.o CMakeFiles/OTBMetadata.dir/otbGeometryMetadata.cxx.o CMakeFiles/OTBMetadata.dir/otbSARMetadata.cxx.o CMakeFiles/OTBMetadata.dir/otbGeomMetadataSupplier.cxx.o CMakeFiles/OTBMetadata.dir/otbXMLMetadataSupplier.cxx.o CMakeFiles/OTBMetadata.dir/otbMetadataStorageInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbMetadataSupplierInterface.cxx.o CMakeFiles/OTBMetadata.dir/otbDateTime.cxx.o CMakeFiles/OTBMetadata.dir/otbDimapMetadataHelper.cxx.o -L/home/grayshade/Projects/otb/superbuild_install/lib -Wl,-rpath,"/home/grayshade/Projects/otb/superbuild_install/lib:\$ORIGIN:" ../../../../lib/libOTBGdalAdapters-9.0.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libboost_filesystem.so.1.82.0 /home/grayshade/Projects/otb/superbuild_install/lib/libtinyxml.so /home/grayshade/Projects/otb/superbuild_install/lib/libboost_atomic.so.1.82.0 ../../../../lib/libOTBCommon-9.0.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKQuadEdgeMesh-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKMetaIO-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libz.so /home/grayshade/Projects/otb/superbuild_install/lib/libITKLabelMap-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKIOImageBase-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKBiasCorrection-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKPolynomials-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKFFT-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libfftw3.so /home/grayshade/Projects/otb/superbuild_install/lib/libfftw3_threads.so /home/grayshade/Projects/otb/superbuild_install/lib/libfftw3f.so /home/grayshade/Projects/otb/superbuild_install/lib/libfftw3f_threads.so /home/grayshade/Projects/otb/superbuild_install/lib/libITKOptimizersv4-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKOptimizers-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKKLMRegionGrowing-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKWatersheds-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKStatistics-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libitkNetlibSlatec-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKSpatialObjects-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKMesh-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKTransform-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKPath-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKCommon-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libitksys-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libITKVNLInstantiation-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libitkvnl_algo-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libitkvnl-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libitkv3p_netlib-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libitknetlib-4.13.so.1 /home/grayshade/Projects/otb/superbuild_install/lib/libitkvcl-4.13.so.1 -lm -lm -ldl /home/grayshade/Projects/otb/superbuild_install/lib/libgdal.so -Wl,-rpath-link,/home/grayshade/Projects/otb/superbuild_install/lib
PS: GitLab is dog-slow today.