[Gdal-dev] Problem compiling with kakadu

Chris Hodgson chodgson at refractions.net
Mon Oct 4 17:42:45 EDT 2004


I'm working with gdal 1.2.1 and kakadu 4.2.

I've compiled kakadu, and copied the libraries into my /usr/local/lib as so:

-rw-r--r--   1 root root   630536 Oct  4 12:29 libkdu.a
lrwxrwxrwx   1 root root       14 Oct  4 12:25 libkdu.so -> libkdu_v42R.so
-rwxr-xr-x   1 root root   548605 Oct  4 12:29 libkdu_v42R.so

I tried only copying "libkdu_v42R.so" but that didn't work so I added 
the symlink and that seemed to get my compile process a bit further at 
least... I'm guessing my problem is somewhere in here...

When I try to compile gdal and I get the following at the end of the 
make output:

...
(cd ogr; make apps)
make[1]: Entering directory `/usr/local/src/gdal-1.2.1/ogr'
/bin/sh ../libtool --mode=link  g++  ogrinfo.o ../libgdal.la -o ogrinfo
g++ ogrinfo.o -o .libs/ogrinfo  ../.libs/libgdal.so /usr/lib/libjpeg.so 
-lz -ldl -lkdu -L/opt/pgsql/7.4/lib -lpq
../.libs/libgdal.so: undefined reference to 
`jp2_channels::set_colour_mapping(int, int, int, int)'
../.libs/libgdal.so: undefined reference to 
`jp2_colour::init(jp2_colour_space)'
../.libs/libgdal.so: undefined reference to `jp2_channels::init(int)'
../.libs/libgdal.so: undefined reference to `vtable for jp2_input_box'
../.libs/libgdal.so: undefined reference to `jp2_target::access_palette()'
../.libs/libgdal.so: undefined reference to `jp2_family_tgt::open(char 
const*)'
../.libs/libgdal.so: undefined reference to `jp2_source::access_palette()'
../.libs/libgdal.so: undefined reference to `vtable for jp2_target'
../.libs/libgdal.so: undefined reference to 
`jp2_target::access_dimensions()'
../.libs/libgdal.so: undefined reference to `vtable for jp2_source'
../.libs/libgdal.so: undefined reference to `jp2_target::write_header()'
../.libs/libgdal.so: undefined reference to `jp2_palette::get_num_luts()'
../.libs/libgdal.so: undefined reference to 
`jp2_channels::get_premult_mapping(int, int&, int&, int&)'
../.libs/libgdal.so: undefined reference to `jp2_family_src::open(char 
const*, bool)'
../.libs/libgdal.so: undefined reference to `jp2_input_box::close()'
../.libs/libgdal.so: undefined reference to `jp2_target::access_colour()'
../.libs/libgdal.so: undefined reference to `jp2_source::access_channels()'
../.libs/libgdal.so: undefined reference to `jp2_family_tgt::close()'
../.libs/libgdal.so: undefined reference to `jp2_source::read_header()'
../.libs/libgdal.so: undefined reference to `jp2_palette::get_lut(int, 
float*)'
../.libs/libgdal.so: undefined reference to `jp2_palette::get_num_entries()'
../.libs/libgdal.so: undefined reference to 
`jp2_dimensions::init(siz_params*, bool)'
../.libs/libgdal.so: undefined reference to 
`kdu_roi_rect::kdu_roi_rect[in-charge](kdu_codestream, kdu_dims)'
../.libs/libgdal.so: undefined reference to `jp2_output_box::close()'
../.libs/libgdal.so: undefined reference to `jp2_palette::set_lut(int, 
int*, int, bool)'
../.libs/libgdal.so: undefined reference to `jp2_input_box::open_next()'
../.libs/libgdal.so: undefined reference to 
`jp2_input_box::open(jp2_family_src*, jp2_locator)'
../.libs/libgdal.so: undefined reference to 
`jp2_channels::get_opacity_mapping(int, int&, int&, int&)'
../.libs/libgdal.so: undefined reference to 
`jp2_channels::get_colour_mapping(int, int&, int&, int&)'
../.libs/libgdal.so: undefined reference to 
`jp2_target::open_codestream(bool)'
../.libs/libgdal.so: undefined reference to 
`jp2_channels::get_num_colours()'
../.libs/libgdal.so: undefined reference to 
`jp2_input_box::jp2_input_box[in-charge]()'
../.libs/libgdal.so: undefined reference to `jp2_family_src::close()'
../.libs/libgdal.so: undefined reference to 
`jp2_input_box::read(unsigned char*, int)'
../.libs/libgdal.so: undefined reference to `jp2_palette::init(int, int)'
../.libs/libgdal.so: undefined reference to `jp2_target::~jp2_target 
[in-charge]()'
../.libs/libgdal.so: undefined reference to 
`jp2_target::open(jp2_family_tgt*)'
../.libs/libgdal.so: undefined reference to 
`jp2_input_box::jp2_input_box[not-in-charge]()'
../.libs/libgdal.so: undefined reference to `jp2_target::access_channels()'
collect2: ld returned 1 exit status
make[1]: *** [ogrinfo] Error 1
make[1]: Leaving directory `/usr/local/src/gdal-1.2.1/ogr'
make: *** [ogr-apps] Error 2





More information about the Gdal-dev mailing list