otbQgisDescriptor build when disabled and shared-lib loading error
Description
I build OTB with OTB_WRAP_QGIS:BOOL=OFF but otbQgisDescriptor is built an executed during build. Moreover, I have the following error:
[ 86%] ./bin/otbQgisDescriptor MultivariateAlterationDetector lib/otb/applications ./share/otb/description/ /mnt/ssd/home/salbert/dev/build/otb/bin/otbQgisDescriptor: error while loading shared libraries: libitkdouble-conversion-4.13.so.1: cannot open shared object file: No such file or directory Modules/Wrappers/QGIS/src/CMakeFiles/generate_descriptors.dir/build.make:159: recipe for target 'share/otb/description/MultivariateAlterationDetector.txt' failed make[2]: *** [share/otb/description/MultivariateAlterationDetector.txt] Error 127
Steps to reproduce
- Build ITK-4.13 using https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb-devutils/blob/master/Config/po9573/po9573-salbert-ITK-4-debug.cmake
- Build OTB develop using https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb-devutils/blob/master/Config/po9573/po9573-salbert-OTB.cmake
Configuration information
OTB develop on Ubuntu 18.04 LTS kernel 4.15.0-36-generic Gcc 7.3.0 Cmake 3.10.2