[mapserver-users] 3.5 compile error

Daniel Ems dems at sdimaps.com
Tue Jan 15 11:19:07 PST 2002


Steve,

I keep forgeting to CC my responses to the entire list.  Here was what I
meant to send before!

---------------------------------------

Andrew,

I have a solution to the problem (thanks to some help from Kendall Sears).
When I configured mapserver 3.5, I used the --with-pdf flag and pointed it
to the pdf *source* directory.  I removed the directory information from
this flag, recompiled mapserver, and it worked.  When I execute map2pdf, I
get some real output.

I hope it works for you, Andrew...

Daniel Ems
AM/FM/GIS Technical Support



On Tue, 15 Jan 2002, Stephen Lime wrote:

> Daniel: I'll have to have the PDF authors check their code to make sure it builds ok. I thought all was well with it. Can you build without the PDF option enabled?
> 
> Steve
> 
> Stephen Lime
> Data & Applications Manager
> 
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
> 
> >>> Daniel Ems <dems at sdimaps.com> 01/11/02 11:59AM >>>
> 
> 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.
> > 
> 
> 

-- 
Daniel Ems

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




More information about the MapServer-users mailing list