[Mapserver-users] Gmap75 demo - gd - freetype problem
Lowell Filak
lfilak at medinaco.org
Mon Feb 24 05:53:06 PST 2003
Following are the steps we took to install freetype & gd on RH7.3 hopefully this will help you compile a gd that includes freetype:
rpm -e gd-devel-1.8.4-4
download, compile, & install freetype-1.
download, compile, & install gd making the following changes to the Makefile:
CFLAGS=-O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBTTF
LIBS=-lgd -lpng -lz -ljpeg -lm -lttf
INCLUDEDIRS=-I. -I/usr/local/include/freetype -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include
ln -s /usr/local/include/gd.h /usr/local/lib/gd.h
Lowell F.
The following message was sent by Lars Schylberg <lars.schylberg at sssk.se> on Sun, 23 Feb 2003 12:27:28 +0100.
> I have just managed to set up mapserver on our linux machine linux 7.3
> When I try and run the mapscript demo gmap75 I get the following error.
>
> Warning: MapServer Error in msGetLabelSize(): libgd was not built with
> FreeType font support in
>
> .... /gmap/htdocs/gmap75.php3 on line 548
>
> Fatal error: Call to a member function on a non-object in ....
> /gmap/htdocs/gmap75.php3 on line 549
>
> My phpinfo_mapscript.phtml tells the following:
>
> MapScript
>
> MapScript Version ($Revision: 1.104.2.5 $ $Date: 2002/10/28 21:47:53 $)
> MapServer version 3.6.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
> SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7
> INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE
> GD Support enabled
> GD Version bundled (2.0 compatible)
> FreeType Support enabled
> FreeType Linkage with TTF library
> GIF Read Support enabled
> PNG Support enabled
> WBMP Support enabled
>
>
> Could some try and explain what is wrong. Is there a problem with gd2.
> I have compiled the latest
> 2.0.11. We are running only phtml as cgi. All other extensions are
> modules. I have not recompiled php.
> But I have removed the old gd as told in the examples on
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH73
>
> Hope someone can help med out.
>
> Lars Schylberg
>
>
More information about the MapServer-users
mailing list