In the same situation this command helped me: $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/otb I have Ubuntu 14.10 Desktop installed in VM with GDAL and OTB compiled from source
Regards, Aleksey 2014-12-24 0:22 GMT+08:00 Dennis Duro <[email protected]>: > Thanks Manuel, > > In the meantime, I didn't realize that OSGEO-Live/VM contains OTB 4.0. > While it's not cutting edge (4.2+), it certainly does the trick. > > I'm keen to see OTB-SuperBuild. I'll keep an eye out for any new > developments. It sounds like a great way to deploy to inside of a VM and/or > container! > > Cheers, > > Dennis > > On 23 December 2014 at 11:06, Manuel Grizonnet <[email protected]> > wrote: > >> Hi Dennis, >> >> thanks for your report, I think that we've improve the configuration and >> compilation process in the last years but I agree that there is room for >> improvement in the documentation. You can concede that it is not easy as >> OTB depend on a set of external libraries with there own development cycle, >> dependencies... >> >> FYI to continue to improve the compilation process we're currently >> working on a new project call OTB-Superbuild ( >> http://hg.orfeo-toolbox.org/OTB-SuperBuild/). To sum up it will allow to >> download/configure/compile all of the otb dependencies and OTB source code >> at once and facilitate the entire build process. >> >> It is based on the powerful cmake feature called "External project" : >> >> >> http://www.kitware.com/media/html/BuildingExternalProjectsWithCMake2.8.html >> >> More info soon on the OTB list. >> >> Regards, >> >> Manuel >> >> >> Le 20/12/2014 19:52, dcd a écrit : >> >> There appears to be conflicting information on the website when it comes >> to compiling OTB from source. For example, the FAQ >> <http://orfeo-toolbox.sourceforge.net/FAQ/OTB-FAQ.html#SECTION00052000000000000000> >> has slightly different instructions than the Software Guide >> <http://orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html>, and >> virtually no instructions are provided when installing via PPA >> <https://launchpad.net/%7Eubuntugis/+archive/ubuntu/ubuntugis-unstable> >> (other than how to install the PPA itself). >> >> I'm sure for the well-initiated with compiling their own code that these >> are minor issues, but for an end-user like myself, it becomes a bit of >> challenge each time I'd like to install a newer version of OTB. Sure, I >> don't need to use the latest version (at the time of writing, 4.2), but I >> think some clear, non-conflicting instructions should be made available. >> For example, instead of listing the websites for the individual libraries >> required, identify the names of the specific libraries required for each >> distro. >> >> Clear, updated step-by-step instructions are required with a time stamp, >> so that we might know whether the instructions are referring to some older >> version, or the latest, or are relevant to all versions. Perhaps a >> dedicated wiki-page for some of major distros (CentOS, Debian-specific, >> Ubuntu-specific, etc.) would be appropriate? >> >> A (strongly) suggested alternative would be to provide a VM image (a >> dedicated OTB image vs. OSGEO-Live <http://live.osgeo.org/en/index.html>) >> and/or Vagrant <https://www.vagrantup.com/>/Docker >> <https://www.docker.com/> options for rapid deployment. This way your >> end user isn't spending time fiddling with compiling, and instead, is >> spending more time using/testing the software. Another benefit of this >> approach is less time dealing with technical issues related to the >> multitude of distro/library combinations that are possible. >> >> I think OTB is great, but I'd like to see less friction when it comes to >> trying out the latest version. >> >> >> >> >> >> >> On Friday, 19 December 2014 23:27:33 UTC-5, dcd wrote: >>> >>> hg clone http://hg.orfeo-toolbox.org/OTB- >>> >>> --dirs >>> OTB (source) OTB-bin (folder for binaries) >>> >>> --after cloning the source, and running configure in the cmake GUI, I >>> get the following: >>> >>> CMake Warning at CMake/ImportLibKML.cmake:22 (message): >>> There is a known issue which does not allow to use internal libKML >>> with >>> external ITK in OTB.You might consider using an external LibKML. See >>> http://bugs.orfeo-toolbox.org/view.php?id=896 for details >>> Call Stack (most recent call first): >>> CMakeLists.txt:220 (include) >>> >>> --back in cmake GUI, I then disable ITK external >>> OTB_USE_EXTERNAL_ITK = OFF (previously on) >>> >>> ATTENTION: You have enabled the use of fftw, this library is >>> distributed under a GPL license. By enabling this >>> option, the binary of the ITK libraries that you are going to build >>> will be covered by a GPL license, and so it >>> will be any executable that you link against these libraries. >>> >>> CMake Error: The following variables are used in this project, but they >>> are set to NOTFOUND. >>> Please set them or make sure they are set and tested correctly in the >>> CMake files: >>> FFTWD_LIB (ADVANCED) >>> linked by target "ITKFFT" in directory /home/prophet6/OTB/Utilities/ >>> ITK/Modules/Filtering/FFT/src >>> linked by target "OTBBasicFilters" in directory >>> /home/prophet6/OTB/Code/BasicFilters >>> FFTWF_LIB (ADVANCED) >>> linked by target "ITKFFT" in directory /home/prophet6/OTB/Utilities/ >>> ITK/Modules/Filtering/FFT/src >>> linked by target "OTBBasicFilters" in directory >>> /home/prophet6/OTB/Code/BasicFilters >>> >>> --back in cmake GUI, I then disable FFTWD and FFTWF >>> ITK_USE_FFTWD OFF >>> >>> ITK_USE_FFTWF OFF >>> >>> --seems to work, pressed 'g', then dumped to command line >>> --ran sudo make install >>> >>> everything seems to run fine; however, if I try running something from >>> the command line, I get the following: >>> >>> $ otbcli_ComputeConfusionMatrix >>> /usr/local/bin/otbApplicationLauncherCommandLine: error while loading >>> shared libraries: libOTBWrapperCommandLine.so.4.3: cannot open shared >>> object file: No such file or directory >>> >>> I've followed the FAQ and install instructions, but perhaps I've missed >>> something. I'm installing to VM with Ubuntu 14.10 and GDAL 1.10 installed. >>> >>> Are there updated detailed instructions anywhere? For example, in the >>> FAQ under "Which libraries/packages are needed before compiling and >>> installing OTB? >>> <http://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuideli2.html#QQ2-14-22>", >>> it lists the software, but not the actual packages that need to be >>> installed. It would be nice to have a line that I can just cut and paste >>> for apt-get to fetch everything needed. Also it would be nice to have >>> setups that detail minimal installs (e.g., command line only) vs full >>> installs (everything in the minimal plus montverdi etc.) >>> >> -- >> -- >> 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. >> >> >> -- >> Manuel GRIZONNET >> CNES - DCT/SI/AP - BPI 1219 >> 18, avenue Edouard Belin >> 31401 Toulouse Cedex 09 - France >> Tel: +33 561 282 630 - Fax: +33 561 283 109 >> >> >> -- >> -- >> 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 a topic in the >> Google Groups "otb-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/otb-users/CADDvzLgSgk/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > My public PGP key: 0xF5E746B3 > -- > > -- > -- > 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.
