RES: [Mapserver-users] Problems Compiling GDAL1.1.9 + MapServer
Daniel Morissette
dmorissette at dmsolutions.ca
Tue Apr 13 11:23:36 PDT 2004
Gabriel Moricz wrote:
> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H
> -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_MING_FLASH -DUSE_GD_GIF -DUSE_GD_PN
> G -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF -DUSE_GDAL -D
> USE_POSTGIS -I/usr/local/include -I/usr/local/include -I/usr/local
> /include -I/usr/local/pgsql/include -I/usr/local/include
>
> hp2img.o -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lpd
> f -ljpeg -lfreetype -lpng -lz -L/usr/local/lib -lproj -ljpeg -L/usr/local
> /lib -lgdal.1.1 -lming -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lcurl
> -lz -ldl -lz -lm -o shp2img
> ./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
>
Sounds like you may have two copies of GD on your system. The configure
may have found one that includes JPEG support (in /usr/lib, coming from
the gd-devel RPM), but at link time it is another one that doesn't
include JPEG that is being used (maybe one that you have installed in
/usr/local/lib).
Make sure there is only one set of libgd.so, libgd.a and GD header
files, then rerun configure and make clean;make
BTW, there are step by step instructions to compile on various flavours
of Linux in the wiki:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript
--
------------------------------------------------------------
Daniel Morissette dmorissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list