Hello everybody,
I have finally succeded in the install of OTB by command line under ubuntu
(thanks to Laurent)
I don't know if it's can help someone, but I put here the steps i followed
to make the install
All my problems came from the dependencies. I hadn't all libraries
installed and versions were also problematic.
First, I try to install most of libraries I had identify.
Second: I clone the OTB git
After this :
$ mkdir build
$ cd build
then, run the command:
$ ccmake ../OTB/ ( this allow you to choose which libraries you
want to activate and verify that you have the right lib and the right
version before compiling)
then, press "c" to configure and "g" to generate
that's all, you are ready to compile the programme, you run:
$ make -j 10 (it's depends on the number of thread you have)
and finally run:
$ make install
$ ldconfig
that all I have done.
Thanks for all those who helped me via this blog
Nafissa
Le mercredi 26 avril 2017 15:33:33 UTC+2, Nafissa Sfaksi a écrit :
>
> Hi all,
> I finaly find the problem with the c++ compiler, it was because g++ wasn't
> installed
> but after this, I had another problem
> this is the message I had:
> "
> CMake Error: Problem with archive_write_header(): Can't create
> 'boost_1_60_0/boost/bimap/property_map'
> CMake Error: Current file: boost_1_60_0/boost/bimap/property_map/
> CMake Error: Problem extracting tar:
> /root/OTB/build/Downloads/boost_1_60_0.tar.bz2
> -- extracting... [error clean up]
> CMake Error at BOOST-stamp/extract-BOOST.cmake:33 (message):
> error: extract of '/root/OTB/build/Downloads/boost_1_60_0.tar.bz2' failed
>
>
> CMakeFiles/BOOST.dir/build.make:90: recipe for target
> 'BOOST/src/BOOST-stamp/BOOST-download' failed
> make[2]: *** [BOOST/src/BOOST-stamp/BOOST-download] Error 1
> CMakeFiles/Makefile2:434: recipe for target 'CMakeFiles/BOOST.dir/all'
> failed
> make[1]: *** [CMakeFiles/BOOST.dir/all] Error 2
> Makefile:83: recipe for target 'all' failed
> make: *** [all] Error 2
> "
> I don't really understand why, specially when the compilation seems to be
> simple to do!
> I also downloaded the OTB and the OTB_contrib
> but I prefer to understand and to solve the problem I have with the
> SuperBuild
>
>
> Le mardi 18 avril 2017 15:22:42 UTC+2, Poughon Victor a écrit :
>>
>> Note that we now distribute binaries with some modules included, called
>> “OTB-contrib”. you can find it directly on the Downloads page:
>>
>> https://www.orfeo-toolbox.org/download/
>>
>>
>>
>> Now about your error, it looks like an error in your path. Make sure you
>> have a working c++ compiler in PATH?
>>
>>
>>
>> Victor Poughon
>>
>>
>>
>> *De :* Nafissa Sfaksi [mailto:[email protected]]
>> *Envoyé :* mardi 18 avril 2017 15:08
>> *À :* otb-users
>> *Cc :* Poughon Victor
>> *Objet :* Re: [otb-users] which distribution of Ubuntu for OTB ?
>>
>>
>>
>> Hi every body,
>>
>>
>>
>> Thank you all for your reponse, I have finally choose the Ubuntu 16.10
>> version for my install,
>>
>> And I choose to follow the steps detailled in
>> http://www.karasiak.net/superbuild-otb-remote-modules/
>>
>>
>>
>> But I have always problemes with the OTB install:
>>
>>
>>
>> I have this error message
>>
>>
>>
>> root@sen2os:~/OTB/build# cmake -D CMAKE_INSTALL_PREFIX=~/OTB/install -D
>> OTB_USE_QWT=ON -D OTB_USE_GLEW=ON -D OTB_USE_GLUT=ON -D OTB_USE_OPENGL=ON
>> -D CMAKE_CXX_FLAGS=-std=gnu++11 ../otb/SuperBuild
>>
>>
>>
>> -- The CXX compiler identification is unknown
>>
>> CMake Error at CMakeLists.txt:23 (project):
>>
>> The CMAKE_CXX_COMPILER:
>>
>>
>>
>> 6std=gnu++11
>>
>>
>>
>> is not a full path and was not found in the PATH.
>>
>>
>>
>> Tell CMake where to find the compiler by setting either the environment
>>
>> variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full
>> path
>>
>> to the compiler, or to the compiler name if it is in the PATH.
>>
>>
>>
>>
>>
>> -- Configuring incomplete, errors occurred!
>>
>> See also "/root/OTB/build/CMakeFiles/CMakeOutput.log".
>>
>> See also "/root/OTB/build/CMakeFiles/CMakeError.log".
>>
>>
>>
>> ""
>>
>> I don't realy understand the nature of the error, I Had installed c++11,
>> but it still give me the same error
>>
>>
>>
>>
>>
>> Thank you for your help
>>
>> Nafissa
>>
>>
>>
>>
>> Le mardi 18 avril 2017 08:34:59 UTC+2, Poughon Victor a écrit :
>>
>> Hi Nafissa,
>>
>> OTB works well on Ubuntu. You can just use the lastest version.
>>
>> Best,
>>
>>
>>
>> Victor Poughon
>> ------------------------------
>>
>> *De :* [email protected] [[email protected]] de la part de
>> Nafissa Sfaksi [[email protected]]
>> *Envoyé :* vendredi 14 avril 2017 16:25
>> *À :* otb-users
>> *Objet :* [otb-users] which distribution of Ubuntu for OTB ?
>>
>> Hi,
>>
>> I have a new server to use OTB and before begining I want to be sure
>> about the ubuntu distribution I have to install.
>>
>> Thank your for your replay !
>>
>> Nafissa
>>
>>
>>
>> --
>> --
>> 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.
>>
>
--
--
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.