MapTools.org

[maplab-users] mapedit preview and freetype

Daniel Navascués Benito navasben@teleline.es
Sat, 9 Aug 2003 14:57:33 +0200
Hello Zak,

You were completely right, php was compiled against the gd library in its
ext directory. The fact was that a phpinfo() script after compiling php
with --with-gd gives you "TTF enabled" in the gd section, and this confused
me. After compiling php whith --with-gd=<system gd directory> and then
mapserver with --with-php=<system php directory>, and upgrading the
resulting php_mapscript.so in my /usr/local/lib directory, preview.php works
ok.

Thank you very much indeed

Daniel.

----- Original Message -----
From: "Zak James" <zak-ms@hoppsan.org>
To: "NAVASBEN" <NAVASBEN@teleline.es>
Cc: <maplab-users@dmsolutions.ca>
Sent: Wednesday, August 06, 2003 2:25 AM
Subject: Re: [maplab-users] mapedit preview and freetype


> When you specify that Mapserver is to be built --with-php, it may use
> the gd library bundled with php (in the php ext directory). This
> version does not automatically get built with ttf support, even when
> php is compiled with ttf. You can get around this by specifying your
> system's gd library in the php build and/or the mapserver build (i.e.
> configure --with-gd=<system gd directory>).
>
> zj
>
> > Warning: MapServer Error in msGetLabelSize(): libgd was not built with
> > FreeType font support in
> > /home/dnavascues/downloads/GIS/MapLab/maplab-2.0-release/htdocs/
> > mapedit/preview.php
> > on line 465
> >
> > My configuration is the following:
> >
> > S.O: Slackware 9.0
> > Web Server: Apache 1.3
> > PHP: 4.3.2
> > MapServer: 3.6.6
> > MapLab: 2.0
> > Freetype: 1.3
> > GD library: 2.0.15
> >
> > These are my configure settings:
> >
> > For PHP,
> >
> > ./configure --with-zlib --with-gd --with-dbase --with-ttf
> > --enable-gd-native-ttf --with-regex=system
> >
> > For MapServer & MapScript
> >
> > ./configure --with-jpeg --with-gd --enable-force-freetype1 --with-zlib
> > --with-png --with-pdf --with-tiff --with-eppl
> > --with-proj --with-ogr --with-gdal --with-wmsclient --with-php
> >
> > I have modified the fonts.txt file to include complete paths, as it is
> > suggested in other posts related to this, but the problem persists.
> >
> > Thank you very much indeed for your help,
> >
> > Daniel
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Maplab-users mailing list
> > Maplab-users@dmsolutions.ca
> > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
> >
>
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@dmsolutions.ca
> http://lists.dmsolutions.ca/mailman/listinfo/maplab-users



This archive was generated by Pipermail.