14 thoughts on “Installing OTB has never been so easy”

  1. Hi Jordi,
    What is the difference between this installation and the precompiled package accessible (or sooner accessible) from debian rep ?
    Anyway, I do love running four hours, so I will test this install for next week 😉
    Regards,
    Mathieu

    1. I may be wrong, but I don’t think there is a debian package available. There will be Ubuntu packages. However, the SuperBuild install allows you to build your OTB using the most up to date and stable versions of the dependencies (ITK, gdal, ossim, etc.) which may not be available as packages in your distribution.

      I you are training for a marathon, it’s worth trying.

  2. Ok, thanks. Manuel told me that such a package should be available soon. We may discuss about that next week.
    Bye,
    Mathieu

  3. Hello,

    Thanks for this tutorial which works very well.

    In order to use change detection tools between to images I would like to use Change detection tools of OTB like Kullback Leibler that seems to be in the library but not compile by default in standard packages (Ubuntu gis unstable ppa or Osgeo4w installer ot MVD2)

    For this reason I compile OTB on my ubuntu. However I supposed that I need to add some option ins de cmake command in order to compile all existing OTB programe. However I don’t know how to update the cmake keywords.

    Can you help me to that ?

    Best regards

    1. Hi, there are a set of examples in the source tree
      (Examples/ChangeDetection) which can be compiled setting the
      BUILD_EXAMPLES flag in cmake to ON.

  4. Hi Jordi,

    I followed all your steps, but I’m having some problems installing OTB. This is the error I get:

    gdalserver.c: In function ‘CreateSocketAndBindAndListen’:
    gdalserver.c:124:21: error: storage size of ‘sHints’ isn’t known
    struct addrinfo sHints;
    ^
    gdalserver.c:126:31: error: invalid application of ‘sizeof’ to incomplete type ‘struct addrinfo’
    memset(&sHints, 0, sizeof(struct addrinfo));
    ^
    gdalserver.c:129:23: error: ‘AI_PASSIVE’ undeclared (first use in this function)
    sHints.ai_flags = AI_PASSIVE;
    ^
    gdalserver.c:129:23: note: each undeclared identifier is reported only once for each function it appears in
    gdalserver.c:132:12: warning: implicit declaration of function ‘getaddrinfo’ [-Wimplicit-function-declaration]
    nRet = getaddrinfo(NULL, pszService, &sHints, &psResults);
    ^
    gdalserver.c:135:48: warning: implicit declaration of function ‘gai_strerror’ [-Wimplicit-function-declaration]
    fprintf(stderr, “getaddrinfo(): %s\n”, gai_strerror(nRet));
    ^
    gdalserver.c:135:25: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
    fprintf(stderr, “getaddrinfo(): %s\n”, gai_strerror(nRet));
    ^
    gdalserver.c:141:39: error: dereferencing pointer to incomplete type ‘struct addrinfo’
    psResultsIter = psResultsIter->ai_next)
    ^
    gdalserver.c:162:5: warning: implicit declaration of function ‘freeaddrinfo’ [-Wimplicit-function-declaration]
    freeaddrinfo(psResults);
    ^
    gdalserver.c:124:21: warning: unused variable ‘sHints’ [-Wunused-variable]
    struct addrinfo sHints;
    ^
    ../GDALmake.opt:566: fallo en las instrucciones para el objetivo ‘gdalserver.lo’
    make[4]: *** [gdalserver.lo] Error 1
    GNUmakefile:69: fallo en las instrucciones para el objetivo ‘apps-target’
    make[3]: *** [apps-target] Error 2
    CMakeFiles/GDAL.dir/build.make:124: fallo en las instrucciones para el objetivo ‘GDAL/src/GDAL-stamp/GDAL-build’
    make[2]: *** [GDAL/src/GDAL-stamp/GDAL-build] Error 2
    CMakeFiles/Makefile2:495: fallo en las instrucciones para el objetivo ‘CMakeFiles/GDAL.dir/all’
    make[1]: *** [CMakeFiles/GDAL.dir/all] Error 2
    Makefile:83: fallo en las instrucciones para el objetivo ‘all’
    make: *** [all] Error 2

    Do you know why this is happening? Any possible solution? Thanks. Regards,
    Jaime

      1. Thank you so much!! That worked nicely!

        BTW, I had to install libboost-all-dev instead of libboost1.55-dev. May it be because I’m using Ubuntu 16.04??

        Thanks again!

  5. Hello Jordi,

    After installing OTB, how would one go about linking it up with QGIS. Installing the plugin and so forth? Thank you for your excellent tutorial. Cheers

Comments are closed.