[gdal-dev] Problems compiling w jp2kak

Frank Warmerdam warmerdam at pobox.com
Fri Feb 29 11:09:32 EST 2008


sfz5 at satx.rr.com wrote:
> After kakadu is built and libraries are in the kakadu-6.0/lib directory, cd
> to gdal-1.5.0, ran configure:
>     configure --with-ogdi=no --with-kakadu=/home/mw/project/kakadu-6.0
>     --prefix=/home/jworkman/project/gdal --with-libtiff=internal
> Running make results in over 2000 lines of output that ends with the
> following:
>     libtool: link: g++ gdalinfo.o -o .libs/gdalinfo
>     /home/jworkman/project/gdal-1.5.0/.libs/libgdal.so -L/usr/local/lib
>     -L/usr/lib -L/home/jworkman/project/kakadu-6.0/lib -L/usr/kerberos/lib64
>     /usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so -lsqlite3
>     /usr/lib64/libexpat.so -ljpeg -lpng -lrt -lkdu -lcurl -ldl -lgssapi_krb5
>     -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv /usr/lib64/libidn.so
>     -lssl -lcrypto -lz -Wl,-rpath -Wl,/home/jworkman/project/gdal/lib
>     -Wl,-rpath -Wl,/usr/lib64
...
>     /home/jworkman/project/gdal-1.5.0/.libs/libgdal.so: undefined reference
>     to `kdu_thread_entity::add_queue(kdu_worker*, kdu_thread_queue*, char
>     const*, long long)'
>     /home/jworkman/project/gdal-1.5.0/.libs/libgdal.so: undefined reference
>     to `kdu_codestream::create(kdu_compressed_source*, kdu_thread_env*)'
>     collect2: ld returned 1 exit status
>     make[1]: *** [gdalinfo] Error 1
>     make[1]: Leaving directory `/home/jworkman/project/gdal-1.5.0/apps'
>     make: *** [apps-target] Error 2

Mike,

Where is libkdu.a?  Is it in /home/jworkman/project/kakadu-6.0/lib or
in /home/jworkman/project/kakadu-6.0/lib/Linux-x86-64-gcc?  I don't see
any complaints about not finding libkdu.a but stuff isn't found that I would
expect to be found.

I see that my local build is only working because I also installed kakadu
into /usr/local/lib.

BTW, what do you get when you do:
warmerda at gdal64[11]% nm libkdu.a | grep add_queue
                  U 
_ZN17kdu_thread_entity9add_queueEP10kdu_workerP16kdu_thread_queuePKcx
                  U 
_ZN17kdu_thread_entity9add_queueEP10kdu_workerP16kdu_thread_queuePKcx
0000000000001190 T 
_ZN17kdu_thread_entity9add_queueEP10kdu_workerP16kdu_thread_queuePKcx
                  U 
_ZN17kdu_thread_entity9add_queueEP10kdu_workerP16kdu_thread_queuePKcx

There needs to be at least one line reported with the " T " indicating
a definition of this method. If not, perhaps your build of Kakadu is
flawed in some way.

I'm sorry for the sorry state of kakadu building. It seems to still be
hairy.  Please feel free to update the trac wiki when you resolve the
issue.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list