After some further investigation..deactivating also OpenGL and the Python 
bindings seems to do the trick:

cmake -DCMAKE_INSTALL_PREFIX=~/OTB/install -DOTB_USE_QT4=OFF -DOTB_USE_QWT=OFF 
-DOTB_USE_GLFW=OFF -DOTB_USE_GLUT=OFF -DOTB_USE_GLEW=OFF -DOTB_USE_OPENCV=OFF 
-DOTB_USE_OPENGL=OFF -DOTB_USE_OPENGL=OFF -DOTB_WRAP_PYTHON=OFF ../otb/
SuperBuild

I'm not sure if this is the expected behavior but for me this works...

Kind regards,
André



On Monday, February 5, 2018 at 2:45:18 PM UTC+1, André Stumpf wrote:
>
> Hello,
>
> I've set up a fresh VM with Ubuntu 16.04 to compile the SuperBuild as 
> follows:
>
> sudo apt-get update && sudo apt-get upgrade -y
> sudo apt-get update && sudo apt-get install -y git swig wget cmake make 
> gcc bzip2 build-essential pkg-config libpcre3 libpcre3-dev cmake-curses-
> gui
>
> cd ~
> mkdir OTB
> cd ~/OTB
> git clone https://[email protected]/git/otb.git
> mkdir build
> mkdir install
>
> cd ~/OTB/otb
> git checkout release-6.4
>
> cd ~/OTB/build
> mkdir Downloads
> wget https://
> www.orfeo-toolbox.org/packages/SuperBuild-archives-6.4.tar.bz2
> tar xvjf SuperBuild-archives-6.4.tar.bz2 -C Downloads
>
> cd ~/OTB/build
> cmake -DCMAKE_INSTALL_PREFIX=~/OTB/install -DOTB_USE_QT4=OFF -DOTB_USE_QWT
> =OFF -DOTB_USE_QWT=OFF -DOTB_USE_GLFW=OFF -DOTB_USE_GLUT=OFF -
> DOTB_USE_GLEW=OFF -DOTB_USE_OPENCV=OFF ../otb/SuperBuild
>
>
> which gives me:
>
> OTB version : 6.4.0
> -- CMake build type is none. Setting it to Release
> -- Environment setup for Configure (SB_ENV_CONFIGURE_CMD): env;CC=/usr/bin
> /cc;CXX=/usr/bin/c++
> -- Environment setup for CMake (SB_CMAKE_COMMAND) : env;CC=/usr/bin/cc;CXX
> =/usr/bin/c++;/usr/bin/cmake;-GUnix Makefiles
> -- |----------------------------------------------------------
> -- |----------------- System checkup results -----------------
> -- | The following libraries have been found on your system.
> -- | You can choose to use them (instead of superbuild versions)
> -- | by setting the corresponding option USE_SYSTEM_XXX.
> -- |----------------------------------------------------------
> -- Custom patches required for TIFF
> -- Custom patches required for PNG
> -- Custom patches required for PROJ
> -- Custom patches required for GEOS
> -- Custom patches required for HDF4
> -- Custom patches required for NETCDF
> -- Custom patches required for GDAL
> -- Custom patches required for OSSIM
> -- Custom patches required for ITK
> -- Custom patches required for BOOST
> -- Custom patches required for SHARK
> -- Custom patches required for MUPARSERX
> -- Using system version of SWIG
> -- Using SuperBuild version of BOOST
> -- Using SuperBuild version of CURL
> -- Using SuperBuild version of EXPAT
> -- Using SuperBuild version of FFTW
> -- Using SuperBuild version of FREETYPE
> -- Using SuperBuild version of GDAL
> -- Using SuperBuild version of GEOS
> -- Using SuperBuild version of GEOTIFF
> -- Using SuperBuild version of GSL
> -- Using SuperBuild version of HDF4
> -- Using SuperBuild version of HDF5
> -- Using SuperBuild version of ITK
> -- Using SuperBuild version of JPEG
> -- Using SuperBuild version of LIBKML
> -- Using SuperBuild version of LIBSVM
> -- Using SuperBuild version of MUPARSER
> -- Using SuperBuild version of MUPARSERX
> -- Using SuperBuild version of NETCDF
> -- Using SuperBuild version of OPENJPEG
> -- Using SuperBuild version of OPENSSL
> -- Using SuperBuild version of OPENTHREADS
> -- Using SuperBuild version of OSSIM
> -- Using SuperBuild version of OTB
> -- Using SuperBuild version of PNG
> -- Using SuperBuild version of PROJ
> -- Using SuperBuild version of SHARK
> -- Using SuperBuild version of SQLITE
> -- Using SuperBuild version of TIFF
> -- Using SuperBuild version of TINYXML
> -- Using SuperBuild version of ZLIB
> -- OTB_TARGET_SYSTEM_ARCH=x86_64
> -- OTB_TARGET_SYSTEM_ARCH_IS_X64=TRUE
> -- DOWNLOAD_LOCATION=/home/ubuntu/OTB/build/Downloads
> -- Source archives for dependencies will be taken from 
> '/home/ubuntu/OTB/build/Downloads'
> -- SuperBuild will be installed to /home/ubuntu/OTB/install
> -- To install to a different directory, re-run cmake -
> DCMAKE_INSTALL_PREFIX=/your/preferred/path
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/ubuntu/OTB/bui
>
> However, when subsequently running make everything goes smoothly until the 
> OTB configure stage:
>
> make -j8
>
> ...
>
> [ 96%] Completed 'GDAL'
> [ 96%] Built target GDAL
> [ 96%] Creating directories for 'OTB'
> [ 97%] No download step for 'OTB'
> [ 97%] No patch step for 'OTB'
> [ 97%] No update step for 'OTB'
> [ 98%] Performing configure step for 'OTB'
>
> CMake Error at /home/ubuntu/OTB/build/OTB/src/OTB-stamp/OTB-configure-
> Release.cmake:16 (message):
>   Command failed: 1
>
>    'env' 'CC=/usr/bin/cc' 'CXX=/usr/bin/c++' '/usr/bin/cmake' '-GUnix 
> Makefiles' '-DCURL_INCLUDE_DIR:PATH=/home/ubuntu/OTB/install/include' 
> '-DCURL_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libcurl.so' 
> '-DLIBKML_INCLUDE_DIR:PATH=/home/ubuntu/OTB/install/include' 
> '-DLIBKML_BASE_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libkmlbase.so' 
> '-DLIBKML_CONVENIENCE_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libkmlconvenience.so'
>  
> '-DLIBKML_DOM_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libkmldom.so' 
> '-DLIBKML_ENGINE_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libkmlengine.so'
>  
> '-DLIBKML_REGIONATOR_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libkmlregionator.so'
>  
> '-DLIBKML_XSD_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libkmlxsd.so' 
> '-DLIBKML_MINIZIP_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libminizip.so'
>  
> '-DShark_DIR:PATH=/home/ubuntu/OTB/install/lib/cmake/Shark' 
> '-DLIBSVM_INCLUDE_DIR:PATH=/home/ubuntu/OTB/install/include' 
> '-DLIBSVM_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libsvm.so' 
> '-DMUPARSER_INCLUDE_DIR:PATH=/home/ubuntu/OTB/install/include' 
> '-DMUPARSER_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libmuparser.so' 
> '-DMUPARSERX_INCLUDE_DIR:PATH=/home/ubuntu/OTB/install/include/muparserx' 
> '-DMUPARSERX_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libmuparserx.so' 
> '-DGSL_INCLUDE_DIR:PATH=/home/ubuntu/OTB/install/include' 
> '-DGSL_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libgsl.so' 
> '-DGDAL_INCLUDE_DIR:PATH=/home/ubuntu/OTB/install/include' 
> '-DGDAL_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libgdal.so' 
> '-DOSSIM_INCLUDE_DIR:PATH=/home/ubuntu/OTB/install/include' 
> '-DOSSIM_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libossim.so' 
> '-DITK_DIR:PATH=/home/ubuntu/OTB/install/lib/cmake/ITK-4.12' 
> '-DTINYXML_INCLUDE_DIR:PATH=/home/ubuntu/OTB/install/include' 
> '-DTINYXML_LIBRARY:FILEPATH=/home/ubuntu/OTB/install/lib/libtinyxml.so' 
> '-DBoost_INCLUDE_DIR:PATH=/home/ubuntu/OTB/install/include' 
> '-C/home/ubuntu/OTB/build/OTB/tmp/OTB-cache-Release.cmake' '-GUnix 
> Makefiles' '/home/ubuntu/OTB/otb/SuperBuild/..'
>
>   See also
>
>     /home/ubuntu/OTB/build/OTB/src/OTB-stamp/OTB-configure-*.log
>
>
> CMakeFiles/OTB.dir/build.make:119: recipe for target 
> 'OTB/src/OTB-stamp/OTB-configure' failed
> make[2]: *** [OTB/src/OTB-stamp/OTB-configure] Error 1
> CMakeFiles/Makefile2:78: recipe for target 'CMakeFiles/OTB.dir/all' failed
> make[1]: *** [CMakeFiles/OTB.dir/all] Error 2
> Makefile:83: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
>
> The configuration is:
>
>
> Ubuntu 16.04.3 LTS
> cmake version 3.5.1
> gcc (Ubuntu 5.4.0-6ubuntu1~16.04.6) 5.4.0 20160609
>
>
> I tried to follow closely the official documentation 
> <https://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html> but 
> it seems I'm missing something. Could anyone point me in the right 
> direction?
>
>
> Kind regards,
>
> André
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to