[mapserver-users] 3.5 compile problems
ANDREW WOOLEY
AWOOLEY at mountainland.org
Wed Dec 19 16:04:28 PST 2001
Folks,
I have really been looking forward to and am excited about the PDF
support in mapserver. Thanks very much for doing it. However, I cannot
get it to compile. I downloaded and installed pdflib with c++ support
(which may or may not be the problem) and I am pretty sure it was done
properly. When I attempt to compile mapserver with PDF, it chokes and
looks like this:
mappdf.c: In function `msDrawMarkerSymbolPDF':
mappdf.c:325: warning: implicit declaration of function `gdFree'
ar rc libmap.a mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o
maplexer.o maptree.
o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o
mapscale.o mapquer
y.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o
mapsde.o mapogr.o mapp
ostgis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o
maporaclespatial.o mapgml.o map
projhack.o epplib.o mappdf.o
ranlib libmap.a
gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_WM
S -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_TTF -DUSE_PD
F -I/usr/include shp2img.c -o shp2img.o
gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_WMS
-DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_TTF -DUSE_PDF
-I/usr/include shp2img.o -L. -lmap -lgd -L/usr/lib
-lgd -ljpeg -lfreet
ype -lpng -lz -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg
-lm -o sh
p2img
gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_WM
S -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_TTF -DUSE_PD
F -I/usr/include shp2pdf.c -o shp2pdf.o
shp2pdf.c: In function `main':
shp2pdf.c:51: warning: unused variable `FontHash'
shp2pdf.c:50: warning: unused variable `MapPixelSize'
shp2pdf.c:49: warning: unused variable `MapScaleFactor'
shp2pdf.c:37: warning: unused variable `img'
gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_WMS
-DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_TTF -DUSE_PDF
-I/usr/include shp2pdf.o -L. -lmap -lgd -L/usr/lib
-lgd -ljpeg -lfreet
ype -lpng -lz -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg
-lm -o sh
p2pdf
./libmap.a(mappdf.o): In function `msDrawMarkerSymbolPDF':
mappdf.o(.text+0xc5c): undefined reference to `gdFree'
collect2: ld returned 1 exit status
make: *** [shp2pdf] Error 1
It compiles fine when I set the --without-pdf flag. Oh yeah, when I run
the configure script, it checks for pdf libs and seems to find them OK.
Any ideas or assistance would be much appreciated.
Thanks
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20011219/580ebd96/attachment.htm>
More information about the MapServer-users
mailing list