Adding the jars and gz files was working perfectly but at the end I'm
finding this new error:
root@vagrant-ubuntu-trusty-64:~/OTB/build# make
[ 4%] Built target MUPARSERX
[ 7%] Built target MUPARSER
[ 11%] Built target LIBSVM
[ 14%] Built target FFTWF
[ 18%] Built target FFTWD
[ 21%] Built target FFTW
[ 25%] Built target ZLIB
[ 29%] Built target ITK
[ 32%] Built target BOOST
[ 36%] Built target TINYXML
[ 40%] Built target CURL
[ 43%] Built target FREETYPE
[ 47%] Built target PNG
[ 50%] Built target JPEG
[ 54%] Built target SQLITE
[ 58%] Built target QT4
[ 61%] Built target OPENTHREADS
[ 65%] Built target GEOS
[ 68%] Built target TIFF
[ 71%] Built target PROJ
[ 74%] Built target GEOTIFF
[ 79%] Built target OSSIM
[ 82%] Built target EXPAT
[ 85%] Built target LIBKML
[ 88%] Built target OPENCV
[ 92%] Built target OPENJPEG
[ 96%] Built target GDAL
[ 97%] Performing configure step for 'OTB'
CMake Error at
/root/OTB/build/OTB/src/OTB-stamp/OTB-configure-Release.cmake:16 (message):
Command failed: 1
'env' 'LD_LIBRARY_PATH=/root/OTB/install/lib' 'CC=/usr/bin/cc'
'CXX=/usr/bin/c++' '/usr/local/bin/cmake' '-GUnix Makefiles'
'-DCURL_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DCURL_LIBRARY:FILEPATH=/root/OTB/install/lib/libcurl.so'
'-DLIBKML_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DLIBKML_BASE_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmlbase.so'
'-DLIBKML_CONVENIENCE_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmlconvenience.so'
'-DLIBKML_DOM_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmldom.so'
'-DLIBKML_ENGINE_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmlengine.so'
'-DLIBKML_REGIONATOR_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmlregionator.so'
'-DLIBKML_XSD_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmlxsd.so'
'-DLIBKML_MINIZIP_LIBRARY:FILEPATH=/root/OTB/install/lib/libminizip.so'
'-DOpenCV_DIR:PATH=/root/OTB/install/share/OpenCV'
'-DLIBSVM_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DLIBSVM_LIBRARY:FILEPATH=/root/OTB/install/lib/libsvm.so'
'-DMUPARSER_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DMUPARSER_LIBRARY:FILEPATH=/root/OTB/install/lib/libmuparser.so'
'-DMUPARSERX_INCLUDE_DIR:PATH=/root/OTB/install/include/muparserx'
'-DMUPARSERX_LIBRARY:FILEPATH=/root/OTB/install/lib/libmuparserx.so'
'-DGDAL_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DGDAL_LIBRARY:FILEPATH=/root/OTB/install/lib/libgdal.so'
'-DOSSIM_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DOSSIM_LIBRARY:FILEPATH=/root/OTB/install/lib/libossim.so'
'-DITK_DIR:PATH=/root/OTB/install/lib/cmake/ITK-4.10'
'-DTINYXML_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DTINYXML_LIBRARY:FILEPATH=/root/OTB/install/lib/libtinyxml.so'
'-DBoost_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DLIBKML_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DLIBKML_BASE_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmlbase.so'
'-DLIBKML_CONVENIENCE_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmlconvenience.so'
'-DLIBKML_DOM_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmldom.so'
'-DLIBKML_ENGINE_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmlengine.so'
'-DLIBKML_REGIONATOR_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmlregionator.so'
'-DLIBKML_XSD_LIBRARY:FILEPATH=/root/OTB/install/lib/libkmlxsd.so'
'-DLIBKML_MINIZIP_LIBRARY:FILEPATH=/root/OTB/install/lib/libminizip.so'
'-DOpenCV_DIR:PATH=/root/OTB/install/share/OpenCV'
'-DLIBSVM_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DLIBSVM_LIBRARY:FILEPATH=/root/OTB/install/lib/libsvm.so'
'-DCURL_INCLUDE_DIR:PATH=/root/OTB/install/include'
'-DCURL_LIBRARY:FILEPATH=/root/OTB/install/lib/libcurl.so'
'-C/root/OTB/build/OTB/tmp/OTB-cache-Release.cmake' '-GUnix Makefiles'
'/root/OTB/otb/SuperBuild/..'
See also
/root/OTB/build/OTB/src/OTB-stamp/OTB-configure-*.log
make[2]: *** [OTB/src/OTB-stamp/OTB-configure] Error 1
make[1]: *** [CMakeFiles/OTB.dir/all] Error 2
make: *** [all] Error 2
And taking a look at the file, it seems that there is an error on SiftFast:
root@vagrant-ubuntu-trusty-64:~/OTB/build# head
/root/OTB/build/OTB/src/OTB-stamp/OTB-configure-*.log
==> /root/OTB/build/OTB/src/OTB-stamp/OTB-configure-err.log <==
CMake Error at Modules/ThirdParty/SiftFast/src/CMakeLists.txt:54 (else):
A duplicate ELSE command was found inside an IF block.
Taking a look at the code there is an else loop without if, so I'm going to
comment it.
if(IS_SIFTFAST_COMPILE)
message(STATUS "Try to compile libsiftfast.cpp -- yes.")
else()
message(STATUS "Try to compile libsiftfast.cpp -- no.
OUTPUT_VARIABLE has ${OUTPUT}")
try_compile(IS_SIFTFAST_COMPILE2
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/test_try_compile_libsiftfast.cpp
COMPILE_DEFINITIONS -DOTB_DISABLE_FAST_FUNCTIONS
OUTPUT_VARIABLE OUTPUT)
if(IS_SIFTFAST_COMPILE2)
message(STATUS "Try to compile libsiftfast.cpp with disabling
fast functions (add CFLAGS -DOTB_DISABLE_FAST_FUNCTIONS) -- yes.")
else()
message(STATUS "Try to compile libsiftfast.cpp with disabling
fast functions (add CFLAGS -DOTB_DISABLE_FAST_FUNCTIONS) -- no.")
message(FATAL_ERROR "Impossible to compile libsiftfast. Contact
OTB development team")
endif()
set(OTB_DISABLE_FAST_FUNCTIONS_VALUE 1)
else()
message(STATUS "Try to compile libsiftfast.cpp done.")
endif()
El viernes, 8 de septiembre de 2017, 13:41:38 (UTC+2), David Alvaro
escribió:
>
> I've find a partial solution.
>
> Download all the dependencies and add them to the Downloads folder.
>
> /OTB/build/Downloads# wget
> https://github.com/cjlin1/libsvm/archive/v322.tar.gz
>
> It is a bit slow because I have to identify each taz.gz file, but it seems
> to be working.
>
>
>
> El viernes, 8 de septiembre de 2017, 12:44:23 (UTC+2), David Alvaro
> escribió:
>>
>> These are the commands used to compile curl
>>
>> $ cd /home/vagrant
>> $ wget https://curl.haxx.se/download/curl-7.55.1.tar.gz
>> $ tar -xzvf curl-7.55.1.tar.gz
>> $ cd curl-7.55.1
>> $ ./configure --with-ssl
>> $ make
>> $ sudo make install
>>
>> El viernes, 8 de septiembre de 2017, 12:31:12 (UTC+2), David Alvaro
>> escribió:
>>>
>>> I've being trying to follow the setting up steps explains on the
>>> following link
>>>
>>> https://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html#x16-200002.1
>>> but after several days creating different machines from scratch at the
>>> end I don't know how to solve it.
>>>
>>> I'll try to explain step by step our final solution so you can reproduce
>>> it and maybe help us.
>>>
>>> I've created an ubuntu machine using the following vagrant file called
>>> (Vagrantfile):
>>>
>>>
>>>
>>> *Vagrant.configure("2") do |config| config.vm.box =
>>> "ubuntu/trusty64"end*
>>>
>>> To launch this file from windows I have downloaded vagrant
>>> https://www.vagrantup.com/downloads.html for windows and also a virtual
>>> box https://www.virtualbox.org/wiki/Downloads
>>>
>>> With these two tools installed from command line in the folder where I
>>> have created my Vagrantfile, I have launched *"vagrant up"* to create a
>>> new machine.
>>>
>>> This machine will be accesible from *localhost *and port *2222 *(the
>>> port may change but it is listed at the end of the process).
>>>
>>> Now I have a clean ubuntu machine, and start installing everything.
>>>
>>> I access the machine using a telnet client like putty
>>> http://www.putty.org/ and configuring a connection to localhost and
>>> port 2222
>>>
>>> First of all to make use of cmake, I have used the following commands:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *$ mkdir ~/temp$ cd ~/temp$ wget
>>> https://cmake.org/files/v3.9/cmake-3.9.1.tar.gz
>>> <https://cmake.org/files/v3.9/cmake-3.9.1.tar.gz>$ tar -xzvf
>>> cmake-3.9.1.tar.gz$ cd cmake-3.9.1/$ sudo ./bootstrap$ make $ make install$
>>> cmake --version*
>>>
>>> and I have also installed several dependencies (maybe I don't need some
>>> of them):
>>>
>>>
>>>
>>>
>>>
>>>
>>> *$ sudo apt-get install build-essential$ sudo apt-get install
>>> python-dev$ sudo apt-get install python-pip$ sudo apt-get install git$ sudo
>>> apt-get install libgdal-dev*
>>>
>>> *$ sudo apt-get install g++*Now that I have a configured machine and
>>> all the required dependencies*, *I started to follow your instructions:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *$ mkdir ~/OTB $ cd ~/OTB
>>> $ git clone https://[email protected]/git/otb.git
>>> <https://[email protected]/git/otb.git> $ mkdir build
>>> $ mkdir install$ cd ~/OTB/build$ cmake -D
>>> CMAKE_INSTALL_PREFIX=~/OTB/install ../otb/SuperBuild*
>>> --> this fails with the following error:
>>>
>>>
>>>
>>>
>>>
>>>
>>> *-- Custom patches required for OSSIM-- Custom patches required for
>>> ITK-- Custom patches required for BOOSTCMake Error at
>>> CMake/SuperBuild_Macro.cmake:200 (message): MUPARSERX requires C++11
>>> support. consider adding -std=c++11 to your cxx compiler flags or disable
>>> MUPARSERX*
>>>
>>> so we changed it adding c++11 support
>>>
>>> $ cmake -D CMAKE_INSTALL_PREFIX=~/OTB/install
>>> -DCMAKE_CXX_FLAGS=-std=c++11 ../otb/SuperBuild
>>>
>>> and it seems to work
>>>
>>>
>>>
>>>
>>>
>>>
>>> *-- SuperBuild will be installed to /root/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:
>>> /root/OTB/buildroot@vagrant-ubuntu-trusty-64:~/OTB/build#*
>>> Then I try to launch the make command, but it seems that there is a
>>> problem with the curl download
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *root@vagrant-ubuntu-trusty-64:~/OTB/build# makeScanning dependencies of
>>> target MUPARSERX[ 0%] Creating directories for 'MUPARSERX'[ 1%]
>>> Performing download step (download, verify and extract) for 'MUPARSERX'--
>>> Downloading... dst='/root/OTB/build/Downloads/v4.0.7.zip'
>>> timeout='none'-- Using
>>> src='https://github.com/beltoforion/muparserx/archive/v4.0.7.zip
>>> <https://github.com/beltoforion/muparserx/archive/v4.0.7.zip>'--
>>> Retrying...-- Using
>>> src='https://github.com/beltoforion/muparserx/archive/v4.0.7.zip
>>> <https://github.com/beltoforion/muparserx/archive/v4.0.7.zip>'-- Retry
>>> after 5 seconds (attempt #2) ...-- Using
>>> src='https://github.com/beltoforion/muparserx/archive/v4.0.7.zip
>>> <https://github.com/beltoforion/muparserx/archive/v4.0.7.zip>'-- Retry
>>> after 5 seconds (attempt #3) ...-- Using
>>> src='https://github.com/beltoforion/muparserx/archive/v4.0.7.zip
>>> <https://github.com/beltoforion/muparserx/archive/v4.0.7.zip>'-- Retry
>>> after 15 seconds (attempt #4) ...-- Using
>>> src='https://github.com/beltoforion/muparserx/archive/v4.0.7.zip
>>> <https://github.com/beltoforion/muparserx/archive/v4.0.7.zip>'-- Retry
>>> after 60 seconds (attempt #5) ...-- Using
>>> src='https://github.com/beltoforion/muparserx/archive/v4.0.7.zip
>>> <https://github.com/beltoforion/muparserx/archive/v4.0.7.zip>'CMake Error
>>> at MUPARSERX-stamp/download-MUPARSERX.cmake:157 (message): Each download
>>> failed! error: downloading
>>> 'https://github.com/beltoforion/muparserx/archive/v4.0.7.zip
>>> <https://github.com/beltoforion/muparserx/archive/v4.0.7.zip>'
>>> failed status_code: 1 status_string: "Unsupported
>>> protocol" log: --- LOG BEGIN --- Protocol "https"
>>> not supported or disabled in libcurl Closing connection -1 --- LOG
>>> END ---make[2]: *** [MUPARSERX/src/MUPARSERX-stamp/MUPARSERX-download]
>>> Error 1make[1]: *** [CMakeFiles/MUPARSERX.dir/all] Error 2make: *** [all]
>>> Error 2*We have also tried to download an compile the latest curl
>>> version
>>>
>>> $ ./configure --with-ssl
>>> $ make
>>> $ make install
>>>
>>> but I still have the same error.
>>>
>>> It seems that curls fails because it tries to create a redirection, and
>>> we cannot add the "-L" parameter to follow the redirection
>>>
>>> Any ideas?
>>>
>>>
--
--
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.