[Gdal-dev] 1.2.0a Release

Norman Vine nhv at cape.com
Sat Feb 21 08:10:48 EST 2004


Frank Warmerdam writes:
>
> I have prepared a preliminary 1.2.0 alpha release:
>
>    ftp://ftp.remotesensing.org/pub/gdal/gdal-1.2.0a.tar.gz


GDAL build failed when attempting to build static proj4 link and libtool

The problem appears to go away if -lproj is added to the $LIBS
in GDALmake.opt.in if $PROJ_STATIC is defined

ifeq ($(PROJ_STATIC),yes)
PROJ_FLAGS = -DPROJ_STATIC
LIBS += -lproj
endif

Also  when gdal is built statically with libtool < perhaps without >
mapserver will not link because it does not know about the
GDAL dependency libs in libgdal.lai

perhaps these should be added to the gdal-config script for
the static case ?

It would also be nice if there was a configure mechanism in gdal
and proj to hardwire the location of the 'shared' data in order to
facilitate remote installation on a machine on which one did not
have enough privilige to run as 'su'

Cheers

Norman


% uname -smp
Linux i686 unknown
% gcc --version
2.96

%
./configure --prefix=/home/nhv --with-netcdf=/home/nhv --enable-shared=no --with-netcdf=/home/nhv --with-static-proj4=yes --without-
python

make[1]: Entering directory `/data3/nhv/src/gdal-1.2.0a2/ogr'
/bin/sh ../libtool --mode=link	g++  ogrinfo.o ../libgdal.la -o ogrinfo
g++ ogrinfo.o -o ogrinfo  ../.libs/libgdal.a -lodbc -lgif
/usr/lib/libjpeg.so -lpng -L/home/nhv -L/home/nhv/lib -lnetcdf -lz -ldl -L/usr/lib -lpq
../.libs/libgdal.a(ogrct.o): In function `LoadProjLibrary(void)':
ogrct.o(.text+0x75): undefined reference to `pj_transform'
ogrct.o(.text+0x81): undefined reference to `pj_init'
ogrct.o(.text+0x8b): undefined reference to `pj_init_plus'
ogrct.o(.text+0x95): undefined reference to `pj_fwd'
ogrct.o(.text+0x9f): undefined reference to `pj_inv'
ogrct.o(.text+0xa9): undefined reference to `pj_free'
ogrct.o(.text+0xb3): undefined reference to `pj_transform'
ogrct.o(.text+0xbd): undefined reference to `pj_get_errno_ref'
ogrct.o(.text+0xc7): undefined reference to `pj_strerrno'
ogrct.o(.text+0xd1): undefined reference to `pj_dalloc'
ogrct.o(.text+0xdb): undefined reference to `pj_get_def'




More information about the Gdal-dev mailing list