Changes between Version 6 and Version 7 of JP2KAK


Ignore:
Timestamp:
Aug 31, 2007, 5:28:51 PM (17 years ago)
Author:
Mateusz Łoskot
Comment:

Copying Kakadu libraries and building GDAL with Kakadu support

Legend:

Unmodified
Added
Removed
Modified
  • JP2KAK

    v6 v7  
    11JP2KAK is the [http://www.kakadusoftware.com/ Kakadu] based [http://www.gdal.org/frmt_jp2kak.html GDAL Driver] for JPEG2000 image data.  There are several other JPEG2000 drivers as well (JPEG200 - JasPer, JP2MRSID - MrSID SDK, JP2ECW - ECW SDK).  The Kakadu library is proprietary, but can be licensed under reasonable terms for various uses. Unfortunately it comes with a slightly unusual build system which makes it hard to build against.
    22
    3 == Unix/Linux Builds by mloskot ==
     3== Building Kakadu on Unix/Linux ==
    44
    55The following guide walks through steps required to build '''Kakadu 6.0''' and '''GDAL''' with JP2KAK driver support on 32-bit Linux machine. Instructions presented here have been tested under Ubuntu Linux.
     
    4242}}}
    4343
     44 * Copy libraries to location where GDAL expects to find them
     45
     46{{{
     47$ pwd
     48/usr/local/kakadu-6.0
     49$ mv lib/Linux-x86-32-gcc/* lib/
     50}}}
     51
     52After this step, Kakadu libraries can be found here:
     53
     54{{{
     55$ cd /usr/local/kakadu-6.0/lib
     56$ ls lib*
     57libkdu.a  libkdu_stacksafe32.a  libkdu_v60R.so
     58}}}
    4459
    4560
     61== Building GDAL with Kakadu support ==
     62
     63* Configuration
     64
     65{{{
     66$ ./configure --with-kakadu=/usr/local/kakadu-6.0
     67}}}
     68
     69As you see, ''--with-kakadu'' option takes root (prefix) of Kakadu installation directory. As mentioned in the previous section, GDAL building scripts will look for Kakadu binaries in subdirectory ''/usr/local/kakadu-6.0/lib''.
     70
     71Verify if ./configure successfully detected Kakadu files:
     72
     73{{{
     74...
     75GDAL is now configured for i686-pc-linux-gnu
     76
     77  Installation directory:    /home/mloskot/usr
     78  C compiler:                gcc -O2
     79  C++ compiler:              g++ -O2
     80
     81  LIBTOOL support:           no
     82
     83...
     84  KAKADU support:            yes
     85...
     86}}}
    4687
    4788
     89* Build GDAL with JP2KAK driver
     90
     91{{{
     92$ make
     93}}}
    4894
    4995----