Since you are building your own software, I don't recommend using "/usr" at all. This is where synaptic/aptitude install their packages, and its better not to mess with that. If I were you, I would also remove the OTB installed in /usr/local.

In order to have a clean setup, this is what I suggest :
- For each software you build yourself (OTB3.20, OTB4.2, Monteverdi2, ICE, ...) , you should have 3 different directories : src / build / install - For instance, you can place source and build dirs in your workspace (|/home/riru/workspace|) and place all the install in /opt. It would give something like this :

   |
   /home/riru/workspace/src/OTB42
   |/OTB320
                            /Monteverdi2
                            /ICE
   ||/home/riru/workspace/build|/OTB42
                              /OTB320
                              /Monteverdi2
                              /ICE
   /opt/OTB42/bin
              /lib
              /include
   /opt/OTB320/bin
               /lib
               /include
   /opt/Monteverdi2/bin
                    /lib
                    /include
   /opt/ICE/bin
            /lib
            /include
   |


- In your build dirs, you configure CMake. You set the CMake variable "INSTAL_PREFIX" to the corresponding install dir in /opt. This is also the step where you choose : "what version of this dependency will be used to build"
- you run "make" and "make install"

Then you should have separate install directories. The only task left will be to setup your environment variables (PATH, LD_LIBRARY_PATH, ITK_AUTOLOAD_PATH) for each tool.

Regards,
Guillaume

Le 05/09/2014 13:22, Robin Holler a écrit :
Did some cleaning. E.g. I removed a self-compiled OTB4-version and I especially removed that package with otb-ice (libotb-ice). Synaptic told me it had dependencies with otb 4.0 ... that was the reason for the GDAL1.8-error, I guess. So I removed all that ppa-stuff and now I stick with

    |
    /home/riru/workspace/OTB42RC/OTB4RC_bin/bin/libOTBIO.so
    /home/riru/workspace/OTB42RC/OTB4RC_bin/bin/libOTBIO.so.4.2
    /home/riru/workspace/OTB42RC/OTB4RC_bin/bin/libOTBIO.so.4.2.0
    /opt/OTB/OTB-32/bin/bin/libOTBIO.so
    /opt/OTB/OTB-32/bin/bin/libOTBIO.so.3.20
    /opt/OTB/OTB-32/bin/bin/libOTBIO.so.3.20.0
    /usr/local/lib/otb/libOTBIO.so
    /usr/local/lib/otb/libOTBIO.so.3.20
    /usr/local/lib/otb/libOTBIO.so.3.20.0
    /usr/local/lib/otb/libOTBIO.so.4.2
    /usr/local/lib/otb/libOTBIO.so.4.2.0
    |


Seems fine(r) to me. 3.2 and 4.2 is what I want. I may only need help how to manage these two best. I build em in /opt/ and /home/, and I guess the libs were copied to /usr/local/lib/otb while doing "make install". So, you don't recommend "/usr/" at all?

I gave up on Monteverdi, since otbIceViewer.cxx.o is complaining about glfw and it was quite a hickhack with glfw (version1,2,3 ... ppa, compiling, ... compiled well, but didn't work anyway). I'll focus on a cleaner OTB. =)
--
--
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] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.


--
<www.c-s.fr>      *Guillaume PASERO*
Ingénieur d'études et développement
*Business Unit E-SPACE & Geo Information* <https://thor.si.c-s.fr/blogs/cs-blogs-business/>*- Département APPLICATIONS*

*CS Systèmes d'Information*
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
+33 561 17 64 21 - [email protected]

--
--
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