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$ 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  $ 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'-- 
Retrying...-- Using 
src='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'-- Retry 
after 5 seconds (attempt #3) ...-- Using 
src='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'-- Retry 
after 60 seconds (attempt #5) ...-- Using 
src='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' 
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.

Reply via email to