Hi Benoit,

The OTB packages are now in the ubuntugis-unstable ppa.
So you don't need this ppa : ppa:otb/orfeotoolbox-stable-ubuntugis
you can run :
sudo ppa-purge ppa:otb/orfeotoolbox-stable-ubuntugis
to get rid of it.


For your project, you should make sure you start from a clean build
tree, and start cmake from scratch.
Also, please verify that you do have a file /usr/lib/libgdal.so


Julien


On 02/12/2014 09:18 AM, Benoit Beguet wrote:
> Hi Julien,
>
> I need some help, I've made an unfortunate update and things are going
> wrong with OTB.
> Not finding any solution, I re-install evreything and same error as in
> this previous post.
>
> I did what you advised me last time :
>
> sudo aptitude purge libotb monteverdi otbapp libotb3-dev
> sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
> sudo add-apt-repository ppa:otb/orfeotoolbox-stable-ubuntugis
> sudo aptitude update
> sudo aptitude safe-upgrade
> sudo aptitude install libotb monteverdi otbapp libotb3-dev
>
>
> and it work (otb is well installed).
>
> now I run my ccmake ./ without any problem but when doing make I got
> this :
>
> Scanning dependencies of target ConcatenateImages
> [  3%] Building CXX object
> CMakeFiles/ConcatenateImages.dir/ConcatenateImages.cxx.o                      
>                                                      
>
> In file included from
> /usr/include/otb/IO/otbStreamingImageFileWriter.h:21,                         
>                                                           
>
>                  from
> /home/bbeguet/otb_work/forest_rse/ConcatenateImages.cxx:8:
> /usr/include/otb/Utilities/ITK/Utilities/vxl/vcl/vcl_deprecated_header.h:10:3:
> warning: #warning "deprecated"
> make[2]: *** No rule to make target `/usr/lib/libgdal.so', needed by
> `ConcatenateImages'. Stop.
> make[1]: *** [CMakeFiles/ConcatenateImages.dir/all] Error 2
> make: *** [all] Error 2
>
> and I don'tachieve to resolve it...
>
> could you help me ?
>
> Thanks a lot,
>
> Benoit
>
>
>
> 2011-02-03 17:54 GMT+01:00 Julien Malik <[email protected]
> <mailto:[email protected]>>:
>
>     OK, then I guess you have already used the ubuntugis-unstable ppa
>     in your repository sources.
>
>     Please run the following commands :
>
>     sudo aptitude purge libotb monteverdi otbapp libotb3-dev
>     sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
>     sudo add-apt-repository ppa:otb/orfeotoolbox-stable-ubuntugis
>     sudo aptitude update
>     sudo aptitude safe-upgrade
>     sudo aptitude install libotb monteverdi otbapp libotb3-dev
>
>     Is it better now ?
>
>     Julien
>
>
>     Le 03/02/2011 17:16, Benoit Beguet a écrit :
>>     well i've done this : aptitude install libotb3-dev (i thought it
>>     was direct when "aptitude install otb")
>>
>>     i put back "FIND_PACKAGE(OTB)" in my CmakeLists and ccmake works
>>     good.
>>
>>     but doing make give me :
>>
>>     Scanning dependencies of target HelloWorldOTB
>>     [ 11%] Building CXX object
>>     CMakeFiles/HelloWorldOTB.dir/HelloWorldOTB.cxx.o                         
>>                                                            
>>
>>     make[2]: *** No rule to make target `/usr/lib/libgdal1.6.0.so
>>     <http://libgdal1.6.0.so/>', needed by `HelloWorldOTB'. 
>>     Stop.                                                              
>>     make[1]: *** [CMakeFiles/HelloWorldOTB.dir/all] Error 2
>>     make: *** [all] Error 2
>>
>>     I make you work a lot...sorry
>>
>>
>>
>>     2011/2/3 Benoit Beguet <[email protected]
>>     <mailto:[email protected]>>
>>
>>         well i've done this : aptitude install libotb3-dev (i thought
>>         it was direct when "aptitude install otb")
>>
>>         i put back "FIND_PACKAGE(OTB)" in my CmakeLists and ccmake
>>         works good.
>>
>>         but doing make give me :
>>
>>         Scanning dependencies of target HelloWorldOTB
>>         [ 11%] Building CXX object
>>         CMakeFiles/HelloWorldOTB.dir/HelloWorldOTB.cxx.o                     
>>                                                                
>>
>>         make[2]: *** No rule to make target `/usr/lib/libgdal1.6.0.so
>>         <http://libgdal1.6.0.so>', needed by `HelloWorldOTB'. 
>>         Stop.                                                              
>>
>>         make[1]: *** [CMakeFiles/HelloWorldOTB.dir/all] Error 2
>>         make: *** [all] Error 2
>>
>>         I make you work a lot...sorry
>>
>>
>>
>>         2011/2/3 Julien Malik <[email protected]
>>         <mailto:[email protected]>>
>>
>>             Did you install the "dev" package (the one containing the
>>             header files and the CMake configuration files) ?
>>
>>             If not :
>>             aptitude install libotb3-dev
>>
>>             Le 03/02/2011 16:06, Benoit Beguet a écrit :
>>>             Doing what you said give back this:
>>>             ------------------------------------------------------
>>>              Make Warning at CMakeLists.txt:4 (FIND_PACKAGE):
>>>                Could not find a configuration file for package OTB.
>>>
>>>                Set OTB_DIR to the directory containing a CMake
>>>             configuration file for OTB.
>>>                The file will have one of the following names:
>>>
>>>                  OTBConfig.cmake
>>>                  otb-config.cmake
>>>
>>>
>>>              CMake Error at CMakeLists.txt:8 (MESSAGE):
>>>                Cannot build OTB project without OTB.  Please set
>>>             OTB_DIR.
>>>             ------------------------------------------------------------
>>>
>>>             WHY :
>>>
>>>             if i do>locate OTBConfig.cmake
>>>             or>locate FindOTB.cmake
>>>
>>>             ??
>>>
>>>
>>>             2011/2/3 Julien Malik <[email protected]
>>>             <mailto:[email protected]>>
>>>
>>>                 Hello Benoit,
>>>
>>>                 The binaries of the standard package of otb is
>>>                 located in /usr/lib/otb (without the 'local', which
>>>                 is the default installation path when you build OTB
>>>                 by yourself)
>>>
>>>                 To compile your stuff, in your CMakeLists, instead of
>>>                 "FIND_PACKAGE(OTB)"
>>>                 just put :
>>>                 "FIND_PACKAGE(OTB PATHS /usr/lib/otb)"
>>>
>>>                 and everything should be configured in one pass.
>>>
>>>                 Julien
>>>
>>>                 Le 03/02/2011 15:54, benoitb a écrit :
>>>
>>>                     Hi OTB people,
>>>
>>>                     As i want to propagate the use of your precious
>>>                     work, i 'm installing
>>>                     it on a Ubuntu10.4.
>>>                     I made it with the repository way (sudo aptitude
>>>                     install otb otbapp
>>>                     monteverdi )
>>>
>>>                     Monteverdi works but when i do a ccmake ./ to
>>>                     compile my stuff, it
>>>                     can't find alone OTB_DIR.
>>>
>>>                     I set it manually ; /usr/local/lib/otb (as it is
>>>                     in my pc) but no way
>>>                     to find OTBConfig.cmake.
>>>
>>>                     if i do>locate OTBConfig.cmake
>>>                     or>locate FindOTB.cmake
>>>
>>>                     i have nothing, it overtake my comprehension...
>>>
>>>                     thanks for help. (one day i will do it properly
>>>                     alone..)
>>>
>>>                     Ben
>>>
>>>
>>
>>
>
>
>
> -- 
> Benoît Beguet
> doctorant
> ENSEGID
> 1, allée F.Daguin
> 33607 Pessac
> Tél. : +33 (0) 557 12 10 36
>

-- 
-- 
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/groups/opt_out.

Reply via email to