[gdal-dev] Adding jasper support to gdal build

Cole, Derek dcole at integrity-apps.com
Wed Jun 8 15:51:56 EDT 2011


    Hello all,

i am trying to add jasper support to gdal so I can read jpeg2000 in NITF files. I downloaded the version of jasper off the site, and configured it like so:

./configure --enable-shared --prefix=/home/dcole/dump/jasper-1.900.1.uuid
make
make install

which created bin and lib folders in that directory(as well as already having the include folder there).

Then I tried to add it to gdal like so

./configure --with-jasper=/home/dcole/dump/jasper-1.900.1.uuid --prefix=/home/dcole/dump/gdal-1.8.0

However, when I run make, I am getting the following error:

/bin/sh /home/dcole/dump/gdal-1.8.0/libtool --mode=link g++  gdalinfo.lo  /home/dcole/dump/gdal-1.8.0/libgdal.la -o gdalinfo
libtool: link: g++ .libs/gdalinfo.o -o .libs/gdalinfo  /home/dcole/dump/gdal-1.8.0/.libs/libgdal.so  -Wl,-rpath -Wl,/home/dcole/dump/gdal-1.8/lib
/home/dcole/dump/gdal-1.8.0/.libs/libgdal.so: undefined reference to `jp2_encode_uuid'
collect2: ld returned 1 exit status
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory `/home/dcole/dump/gdal-1.8.0/apps'
make: *** [apps-target] Error 2


Any ideas why this is still missing from the linkers path? Thanks

Derek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110608/44bb8657/attachment.html


More information about the gdal-dev mailing list