OTB Superbuild error

Hi All,
I’m trying to install OTB via the Superbuild on Debian 11. Initially, I was getting an error with ZLIB as it was trying to download version zlib-1.2.13, which does not appear to be available from the zlib website. I updated version and md5 in the respective file ZLIB src files and it appeared to install ok.

However, towards the end of the build, I’m getting the following error and not sure what the appropriate solution is.

`[ 98%] Performing configure step for ‘OTB’
CMake Error at /home/daniel/OTB/build/OTB/src/OTB-stamp/OTB-configure-Release.cmake:49 (message):
Command failed: 1

‘env’ ‘CC=/usr/bin/cc’ ‘CXX=/usr/bin/c++’ ‘/usr/bin/cmake’ ‘-GUnix Makefiles’ ‘-DCURL_INCLUDE_DIR:PATH=/home/daniel/OTB/install/include’ ‘-DCURL_LIBRARY:FILEPATH=/home/daniel/OTB/install/lib/libcurl.so’
‘-DShark_DIR:PATH=/home/daniel/OTB/install/lib/cmake/Shark’ ‘-DLIBSVM_INCLUDE_DIR:PATH=/home/daniel/OTB/install/include’ ‘-DLIBSVM_LIBRARY:FILEPATH=/home/daniel/OTB/install/lib/libsvm.so’ ‘-DMUPARSER_INCL
UDE_DIR:PATH=/home/daniel/OTB/install/include’ ‘-DMUPARSER_LIBRARY:FILEPATH=/home/daniel/OTB/install/lib/libmuparser.so’ ‘-DMUPARSERX_INCLUDE_DIR:PATH=/home/daniel/OTB/install/include/muparserx’ ‘-DMUPARSE
RX_LIBRARY:FILEPATH=/home/daniel/OTB/install/lib/libmuparserx.so’ ‘-DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.9’ ‘-DPYTHON_EXECUTABLE:STRING=/usr/bin/python3.9’ ‘-DGSL_INCLUDE_DIR:PATH=/home/daniel/OTB
/install/include’ ‘-DGSL_LIBRARY:FILEPATH=/home/daniel/OTB/install/lib/libgsl.so’ ‘-DITK_DIR:PATH=/home/daniel/OTB/install/lib/cmake/ITK-4.13’ ‘-DTINYXML_INCLUDE_DIR:PATH=/home/daniel/OTB/install/include’
‘-DTINYXML_LIBRARY:FILEPATH=/home/daniel/OTB/install/lib/libtinyxml.so’ ‘-DBoost_INCLUDE_DIR:PATH=/home/daniel/OTB/install/include’ ‘-GUnix Makefiles’ ‘-C/home/daniel/OTB/build/OTB/tmp/OTB-cache-Release.cm
ake’ ‘/home/daniel/OTB/otb/SuperBuild/…’ `

See also

`Setting GDAL_CONFIG_CHECKING to ON. (all GDAL tests will run again)
CMake Error at Modules/ThirdParty/GDAL/otb-module-init.cmake:51 (message):
Performing Test GDAL_VERSION - Failed

Call Stack (most recent call first):
Modules/ThirdParty/GDAL/otb-module-init.cmake:76 (error_message)
Modules/ThirdParty/GDAL/otb-module-init.cmake:91 (gdal_try_run)
CMake/OTBModuleEnablement.cmake:273 (include)
CMakeLists.txt:341 (include)
`

Any advice appreciated.

Regards,
Daniel

Hi,
In case it’s of use to anybody else, I set GDAL_CONFIG_CHECKING:BOOL=OFF in OTB/build/CMakeCache.txt and it resolved the above issue.