[Mapserver-users] Problems Compiling GDAL1.1.9 + MapServer
Gabriel Moricz
gabriel at autofax.com.br
Mon Apr 12 09:00:05 PDT 2004
Hello at all..
Well I am having a problem that is getting me crazy!!!
Well I use the compilation like this:
./configure --with-libtiff=/usr/local/lib --with-geotiff=/usr/local/lib --wi
th-jpeg=/usr/local/lib --with-gif=/usr/lib --with-pg=/usr/local/pgsql/bin/pg
_config
I found the libs and the directory of each lib is RIGHT..
after the make I receive the error status:
make[1]: Entering directory `/backup/mapserv/gdal-1.1.9'
g++ -shared ./frmts/o/*.o ./gcore/*.o ./port/*.o ./alg/*.o ./ogr/ogrct.o
./ogr/ogr_opt.o ./ogr/ogr_fromepsg.o ./ogr/ogr_srs_validate.o
./ogr/ogrutils.o ./ogr/ogr_srs_proj4.o ./ogr/ograssemblepolygon.o
./ogr/ogr_api.o ./ogr/ogrsf_frmts/generic/ogrregisterall.o
./ogr/ogrfeaturestyle.o
./ogr/ogrsf_frmts/ogrsf_frmts.a -L/usr/local/pgsql/lib -lpq ./gdal.a
./ogr/ogr.a ./gdal.a
./port/cpl.a -L/usr/lib -L/usr/lib/lib -lgif -L/usr/local/lib -L/usr/local/l
ib/lib -ljpeg -L/usr/local/lib -lgeotiff -L/usr/local/lib/lib -ltiff -lpng -
lz -lm -ldl -lm \
-o ./libgdal.1.1.so
/usr/bin/ld: cannot find -lgif
collect2: ld returned 1 exit status
make[1]: *** [libgdal.1.1.so] Error 1
make[1]: Leaving directory `/backup/mapserv/gdal-1.1.9'
make: *** [check-lib] Error 2
If I putt off the --with-gif I receive the error -ljpeg and so on....
My god...where did I miss???
If I run the ./configure withou any external parameter it works, but it
doesnt add the jpeg, gif, postgresql and so...
And if someone could help...I am using gd2.0.12 and when I try to configure
the mapserver it says that I dont have it installed, But I already installed
it....how to solve??:
configure: checking for GD 2.0.12 or higher......
checking for gdImageSetAntiAliased in -lgd... yes
configure: error: "Could not find gd.h or libgd.a/libgd.so in
/usr/local/lib/. Make sure GD 2.0.12 or higher is compiled before calling
configure."
all those libraries exists in my OS and all in the /usr/local/lib except the
gd.h that is in the /usr/local/include
so then I created a link of the gd.h to /usr/local/lib, well it works, but
at the make of the mapserver bummmmmmm:
./libmap.a(mappdf.o): In function `msDrawMarkerSymbolPDF':
mappdf.o(.text+0x1b26): undefined reference to `gdImageJpegPtr'
./libmap.a(mappdf.o): In function `msDrawRasterLayerPDF':
mappdf.o(.text+0x22c4): undefined reference to `gdImageJpegPtr'
./libmap.a(mappdf.o): In function `msSaveImagePDF':
mappdf.o(.text+0x2536): undefined reference to `gdImageJpegPtr'
./libmap.a(mappdf.o): In function `msDrawWMSLayerPDF':
mappdf.o(.text+0x2dca): undefined reference to `gdImageJpegPtr'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
I dont know what more to do...I am trying for months make it work, but
always without sucess..
Please...Someone Help me...
PS: Answer directly for me, I dont know why but I am being unable to
inscrible the list...
Thanks...
Gabriel Moricz
More information about the MapServer-users
mailing list