SuperBuild failed for release-7.1 (with Docker)
I'm trying a full SuperBuild of OTB 7.1 inside a docker container. My Dockerfile worked fine with v7.0 but I'm struggling to make it work with v7.1.
I tried with ubuntu 18.04 and debian 10.
Here is the error (during OTB configuration step):
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:801 (message): New Boost version may have incorrect or missing dependencies and imported targets Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES) /usr/share/cmake-3.10/Modules/FindBoost.cmake:1558 (_Boost_MISSING_DEPENDENCIES) CMake/FindShark.cmake:58 (find_package) Modules/ThirdParty/Shark/otb-module-init.cmake:21 (find_package) CMake/OTBModuleEnablement.cmake:273 (include) CMakeLists.txt:332 (include) CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find OpenCV (missing: OPENCV_core_LIBRARY) (found version "4.1.1") Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) CMake/FindOpenCV.cmake:141 (find_package_handle_standard_args) Modules/ThirdParty/OpenCV/otb-module-init.cmake:21 (find_package) CMake/OTBModuleEnablement.cmake:273 (include) CMakeLists.txt:332 (include)
I checked the container and I can see every libs in /opt/otb/lib. I tried to add cmake flags but:
CMake Warning: Manually-specified variables were not used by the project: OpenCV_core_LIBRARY OpenCV_ml_LIBRARY
I also tried with 'LDFLAGS="-Wl,-rpath-link,/opt/otb/lib"'
Any ideas ?