[Mapserver-users] Gmap75 demo - gd - freetype problem

Lars Schylberg lars.schylberg at sssk.se
Sun Feb 23 06:27:28 EST 2003


--------------020608030403010706000400
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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


--------------020608030403010706000400
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
I have just managed to set up mapserver on our linux machine linux 7.3 <br>
When I try and run the mapscript demo gmap75 I get the following error.<br>
<br>
<b>Warning</b>:  MapServer Error in msGetLabelSize(): libgd was not built
with FreeType font support   in<br>
<br>
&nbsp; &nbsp; .... &nbsp; &nbsp;<b>/gmap/htdocs/gmap75.php3</b> on line <b>548</b><br>
 <br>
 <b>Fatal error</b>:  Call to a member function on a non-object in &nbsp;....
&nbsp;<b>/gmap/htdocs/gmap75.php3</b> on line <b>549</b><a
 name="module_MapScript"><br>
<br>
My phpinfo_mapscript.phtml tells the following:<br>
<br>
MapScript</a> <br>
<br>
MapScript Version ($Revision: 1.104.2.5 $ $Date: 2002/10/28 21:47:53 $)<br>
  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<br>
  
<table border="0" cellpadding="3" width="600">
  <tbody>
    <tr>
      <td class="e">GD Support </td>
      <td class="v">enabled </td>
    </tr>
 <tr>
      <td class="e">GD Version </td>
      <td class="v">bundled (2.0 compatible) </td>
    </tr>
 <tr>
      <td class="e">FreeType Support </td>
      <td class="v">enabled </td>
    </tr>
 <tr>
      <td class="e">FreeType Linkage </td>
      <td class="v">with TTF library </td>
    </tr>
 <tr>
      <td class="e">GIF Read Support </td>
      <td class="v">enabled </td>
    </tr>
 <tr>
      <td class="e">PNG Support </td>
      <td class="v">enabled </td>
    </tr>
 <tr>
      <td class="e">WBMP Support </td>
      <td class="v">enabled</td>
    </tr>
  </tbody>
</table>
<br>
Could some try and explain what is wrong. &nbsp;Is there a problem with gd2. I
have compiled the latest<br>
2.0.11. &nbsp; We are running only phtml as cgi. &nbsp;All other extensions are modules.
I have not recompiled php.<br>
But I have removed the old gd as told in the examples on <a class="moz-txt-link-freetext" href="http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH73">http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH73</a><br>
<br>
Hope someone can help med out.<br>
<br>
Lars Schylberg<br>
<br>
</body>
</html>

--------------020608030403010706000400--




More information about the mapserver-users mailing list