[mapserver-users] A plaintive cry for help
Norman Vine
nhv at cape.com
Mon Aug 26 18:49:48 PDT 2002
Gerry Creager writes:
>
> A make, however, results in the following:
> ---
> [gerry at mesodata mapserver-3.6.1]$ make
> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ
> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_GD_SWAP_XY
> -DUSE_OGR -DUSE_GDAL -I/usr/include -I/usr/include
> -I/usr/local/include shp2img.o -L. -lmap -L/usr/lib -lgd -L/usr/lib
> -ljpeg -lfreetype -L/usr/lib -lpng -lz -ltiff -L/usr/lib -ljpeg
> -lfreetype -L/usr/lib -lpng -lz -lproj -L/usr/lib -ljpeg
> -L/usr/local/lib -lgdal.1.1 -lm -o shp2img
> /usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
> ---
Not sure of the easiest way to get this into your Makefile but
your libgd.so apparently needs to be linked against libxpm
try adding this to the XTRALIBS = line in your Makefile
-L/$PATH_TO_YOUR_XLIBS -lxpm
substituting the actual $PATH_TO_YOUR_XLIBS appropriately
HTH
Norman
More information about the MapServer-users
mailing list