[mapserver-users] 3.5 compile error

Daniel Ems dems at sdimaps.com
Fri Jan 11 12:59:01 EST 2002


Steve,

Thanks for the suggestion!  It got me one step further, but now I have a 
new error while running make on mapserver.  It appears to be an issue 
with a .c file, which I have little experience with.  Any suggestions?

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_FT -DUSE_PDF   -DUSE_GDAL   
-I/usr/include -I/root/mapserver/sources/pdflib-4.0.1/pdflib 
-I/root/mapserver/sources/proj-4.4.5//src        -I/usr/local/include    
shp2pdf.o  -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz 
-L/root/mapserver/sources/pdflib-4.0.1/pdflib/lib -lpdf -ltiff -ljpeg 
-lfreetype -lpng -lz -L/root/mapserver/sources/proj-4.4.5//src/.libs 
-lproj -ljpeg    -L/usr/local/lib -lgdal.1.1     -lm   -o shp2pdf
shp2pdf.o: In function `main':
shp2pdf.o(.text+0x4d7): undefined reference to `msDrawMapPDF'
collect2: ld returned 1 exit status
make: *** [shp2pdf] Error 1

Thanks!

Daniel Ems
AM/FM/GIS Technical Support
Spatial Data Integrations, Inc.


On Fri, 11 Jan 2002, Stephen Woodbridge wrote:

> Daniel,
> 
> do an:
> 
> ls /root/mapserver/sources/pdflib-4.0.1/pdflib/lib
> 
> you should have a file something like libpdf.* or libPDF.* if the is the
> former the you should be using -lpdf and not -lPDF
> 
> -Steve
> 
> Daniel Ems wrote:
> > 
> > I am trying to compile version 3.5 with pdf support.  I added the four
> > directories mentioned in the output from the pdf "make" command to my
> > /etc/ld.so.conf file and I ran ldconfig.  However, when running "make" for
> > mapserver, I get the following error.  Any ideas?
> > 
> > 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_FT -DUSE_PDF   -DUSE_GDAL
> > -I/usr/include -I/root/mapserver/sources/pdflib-4.0.1/pdflib
> > -I/root/mapserver/sources/proj-4.4.5//src        -I/usr/local/include
> > shp2img.o  -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz
> > -L/root/mapserver/sources/pdflib-4.0.1/pdflib/lib -lPDF -ltiff -ljpeg
> > -lfreetype -lpng -lz -L/root/mapserver/sources/proj-4.4.5//src/.libs
> > -lproj -ljpeg    -L/usr/local/lib -lgdal.1.1     -lm   -o shp2img
> > /usr/bin/ld: cannot find -lPDF
> > collect2: ld returned 1 exit status
> > make: *** [shp2img] Error 1
> > 
> > Thanks!
> > 
> > --
> > Daniel Ems
> > 
> > AM/FM/GIS Technical Support
> > Spatial Data Integrations, Inc.
> 




More information about the mapserver-users mailing list