[mapserver-users] Problems with TrueType
Ballard,Lowell
LBallard at YesVirginia.org
Fri Jul 20 05:30:54 PDT 2001
I think I had similar issues once and solved it 2 different ways but I can't
remember the details. The 2 different ways were to:
1. Install the freetype-devel RPM then build the other things
2. Use Apachetoolbox (ATB)(this is what I do pretty much all the time now).
ApacheToolbox can be obtained from:
http://www.apachetoolbox.com and it's a REAL time saver.
My standard methodology has been to download the (ATB) script only, run it
selecting the options I want to compile into Apache, and then compile
Apache. GD, PHP, etc. are all options. I seem to remember having one mild
issue with compiling in GD/TTF support---maybe I need to install Latex
first?? I did so with an RPM and things compiled fine. Give it a try I
think you'll find it useful.
Lowell------
-----Original Message-----
From: Daniel Morissette [mailto:morissette at dmsolutions.ca]
Sent: Thursday, July 19, 2001 5:21 PM
To: Oberdan Luiz May
Cc: mapserver-users
Subject: Re: [mapserver-users] Problems with TrueType
Oberdan Luiz May wrote:
>
> I'm a newbie with mapserver, and I'm having some problems to
compile/build
> it correctly. I'm trying to make this work on a Solaris 2.6 SPARC, using
>
> mapserver 3.5
> GD 1.8.4
> FreeType 2.0.4
>
> GD is being compiled with FreeType, and when mapserver is
configured, it
> finds the freetype support on DG and builds all correctly, but when I try
> to use one truetype font, I get the error :
>
> msGetLabelSize(): TrueType Font error. libgd was not built with FreeType
> font support
>
It could be that you have 2 versions of GD on your system and the wrong
one gets picked. Try using the following configure option:
--with-gd=static,/path/to/gd-1.8.4
This will explicitly link with /path/to/gd-1.8.4/libgd.a instead of
using -lgd which would search your library path and may find the wrong
library.
If that doesn't work, then you may be in the same boat as me... I've
been experiencing similar problems trying to compile GD1.8.4 from source
with Freetype2 ... things did compile and I'm convinced that the right
copy of the lib was loaded, but I couldn't load any TTF font in
MapServer.
That was using the GD1.8.4 source code with the Freetype2 that comes
preinstalled on RH7.1 ... I never had time to figure out the problem but
it seemed to me like I had not built the GD+freetype combination
properly. So I just decided to fallback to the GD1.8.4 RPM that is
distributed with RH7.1
But if anyone figures it out or gets that combination working then I
would apreciate hearing about what they did.
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
Don't put for tomorrow what you can do today, because if
you enjoy it today you can do it again tomorrow.
More information about the MapServer-users
mailing list