make: gdal & mapserver
Frank Warmerdam
warmerdam at POBOX.COM
Mon Oct 31 07:55:04 PST 2005
On 10/31/05, Agneta Schick <schick at sdac.hannover.bgr.de> wrote:
> Hello,
>
> I'm trying to get a newer version of mapserver installed.
>
> On sparc-sun-solaris2.8 I've installed:
> gd-2.0.33
> gdal-1.3.1
> proj-4.4.9
>
> Making mapserver-4.6.1 results in :
> ...
> gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR
> -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_ICONV
> -I/usr/local/include -I/usr/local/include
> -I/usr/local/mapserver/gdal-1.3.1/port -I/usr/local/mapserver/gdal-1.3.1/gcore
> -I/usr/local/mapserver/gdal-1.3.1/alg -I/usr/local/mapserver/gdal-1.3.1/ogr
> -I/usr/local/mapserver/gdal-1.3.1/ogr/ogrsf_frmts shp2img.o -L. -lmap -lgd
> -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11 -ltiff
> -ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg
> /usr/local/mapserver/gdal-1.3.1/libgdal.la -liconv -L/lib -lz -lm -o shp2img
> ld: fatal: file /usr/local/mapserver/gdal-1.3.1/libgdal.la: unknown file type
> ld: fatal: File processing errors. No output written to shp2img
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
>
> gdal-1.1.8/apps/gdal-config:
> CONFIG_LIBS="-L/usr/local/mapserver/gdal-1.1.8 -lgdal.1.1 -ljpeg -lpng -lz -lm
> -ldl -L/usr/local/lib -lm"
>
> gdal-1.3.1/apps/gdal-config:
> CONFIG_LIBS="/usr/local/mapserver/gdal-1.3.1/libgdal.la"
>
> What should I do to get MapServer installed? Is gdal not properly installed
> or the gdal-config pointing to the wrong directory or the mapserver
> configuration not correct?
Agneta,
It looks like you are trying to build against the GDAL "build" directory
rather than where it was installed. This is not normally supported. In
this case the linker used by mapserver is complaining that it does
not understand the format of the .la file, a "libtool" thing.
I would suggest ensuring you do a "make install" in the GDAL
build directory, and then using the gdal-config that gets installed,
likely /usr/local/bin/gdal-config.
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 | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list