[gdal-dev] GDAL 1.6.0 Java Bindings - Linux
Alex Bowen, Contractor, Code 5774
matthew.bowen.ctr at nrl.navy.mil
Fri Dec 19 10:47:41 EST 2008
I'm having some issues building the GDAL 1.6.0 Java bindings for Linux.
I have built them successfully on Win32 VC8 (x86 and x64) and they seem
to work well. It sounds like I'm running into a library conflict
problem - but I can't seem to figure it out.
I'm building a standard GDAL release, no extra third-party plugins, and
not statically linking PROJ4.
GCC: 4.3.2, Libtool: 2.2.4
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
The build error:
libtool: compile: g++ -fPIC -g -O2 -Wall -Wdeclaration-after-statement
-I/home/bowen/dev/gdal/gdal-1.6.0/port
-I/home/bowen/dev/gdal/gdal-1.6.0/gcore
-I/home/bowen/dev/gdal/gdal-1.6.0/alg
-I/home/bowen/dev/gdal/gdal-1.6.0/ogr
-I/home/bowen/dev/gdal/gdal-1.6.0/ogr/ogrsf_frmts
-I/home/bowen/dev/jdk1.6.0_11/include
-I/home/bowen/dev/jdk1.6.0_11/include/linux -c gdal_wrap.cpp -o
gdal_wrap.o >/dev/null 2>&1
/bin/sh /home/bowen/dev/gdal/gdal-1.6.0/libtool --mode=link g++
-shared /home/bowen/dev/gdal/gdal-1.6.0/libgdal.la gdal_wrap.o -o
libgdaljni.so
libtool: link: g++ gdal_wrap.o -o .libs/libgdaljni.so
/home/bowen/dev/gdal/gdal-1.6.0/.libs/libgdal.so -lz -lrt -ldl
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/crt1.o: In function
`_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [libgdaljni.so] Error 1
Any thoughts? Am I missing something?
Thanks,
Alex Bowen
alex.bowen at itt.com
bowen at enews.nrl.navy.mil
[id] 301387
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20081219/2bf6a6e7/attachment-0001.html
More information about the gdal-dev
mailing list