<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV> </DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
href="mailto:klehr1@tampabay.rr.com"
title=klehr1@tampabay.rr.com>klehr1@tampabay.rr.com</A> </DIV>
<DIV><B>To:</B> <A href="mailto:stepan.kafka@centrum.cz"
title=stepan.kafka@centrum.cz>Stepan Kafka</A> </DIV>
<DIV><B>Cc:</B> <A href="mailto:morissette@dmsolutions.ca"
title=morissette@dmsolutions.ca>Daniel Morissette</A> </DIV>
<DIV><B>Sent:</B> Friday, March 08, 2002 10:30 AM</DIV>
<DIV><B>Subject:</B> Re: [mapserver-users] Compiling freetype</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>I've got this working on RH 7.1 -- actually by
default. When I go to RH 6.1 it didn't work, and do to the
documentation, I thought I needed to compile in this stuff my self.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I've tried: freetype 1.2, 1.3, gd
1.8.4. I can't get either 1.2 or 1.3 to compile make do the fact that the
X11 library is not installed (its does not run x-windows, so the test scripts
don't run).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I've tried compiling everything by hand making all
the .o files</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>then generating the libtff.a by ar -r libtff.a
tt*.o, libfreetype.a = ar -r libfreetype.a ft*.o</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>when compiling gd 1.8.4 I tried the -libtff stuff
and it compiled without complaint. I tried adding in the -lfreetype and
then it complains about the file ftglyph.h missing -- so no free type its not in
ft 1.2 or 1.3.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>So I get gd built with only -libttf</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>When I build mapserver(3.5)</FONT></DIV>
<DIV><FONT face=Arial size=2>./configure
--with-gd=static,/www/stevestuff/gd-1.8.4 --with-ttf
--enable-force-freetype1</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>gcc -c -O2 -Wall -DIGNORE_MISSING_DATA
-DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DU<BR>SE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP
-I/www/stevestuff/gd-1.8.4<BR> maplexer.c -o
maplexer.o<BR>maplexer.c: In function `msyylex':<BR>maplexer.c:1602: warning:
`yy_cp' might be used uninitialized in this function<BR>maplexer.c:1602:
warning: `yy_bp' might be used uninitialized in this function<BR>maplexer.c: At
top level:<BR>maplexer.c:3125: warning: `yyunput' defined but not
used<BR></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>gcc -c -O2 -Wall -DIGNORE_MISSING_DATA
-DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DU<BR>SE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP
-I/www/stevestuff/gd-1.8.4<BR> mapsymbol.c -o
mapsymbol.o<BR>mapsymbol.c: In function `msDrawShadeSymbol':<BR>mapsymbol.c:458:
warning: unused variable `font'<BR>mapsymbol.c:457: warning: unused variable
`rect'<BR>mapsymbol.c:456: warning: unused variable `bbox'<BR>mapsymbol.c: In
function `msGetMarkerSize':<BR>mapsymbol.c:661: warning: unused variable
`font'<BR>mapsymbol.c:660: warning: unused variable `rect'<BR>mapsymbol.c: In
function `msDrawMarkerSymbol':<BR>mapsymbol.c:729: warning: unused variable
`font'<BR>mapsymbol.c:728: warning: unused variable `rect'<BR>mapsymbol.c:727:
warning: unused variable `bbox'<BR>mapsymbol.c: In function
`msCircleDrawShadeSymbol':<BR>mapsymbol.c:1016: warning: unused variable
`font'<BR>mapsymbol.c:1015: warning: unused variable `rect'<BR>mapsymbol.c:1014:
warning: unused variable `bbox'<BR>mapsymbol.c: At top
level:
</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>mapserv -v </DIV>
<DIV>MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP INPUT=TIFF
INPUT=EPPL7<BR>INPUT=JPEG INPUT=SHAPEFILE </DIV>
<DIV> </DIV>
<DIV>Suggestions???</DIV>
<DIV> </DIV>
<DIV>Dan I tried you RPM 1.8.4 trick, but could only find 1.8.3-7 and my package
manager claimed defeat (didnt see a 1.8.4 version on my RH 7.1 disk nor Red Hat
site--coincidentially I run 7.1 in the garage and every thing works just fine
there).
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>rpm -i gd-1.8.3-7.i386.rpm<BR>only packages with
major numbers <= 3 are supported by this version of RPM<BR>error:
gd-1.8.3-7.i386.rpm cannot be
installed </FONT></DIV>
<DIV> </DIV>
<DIV>I tried installing newer package managers put that failed too!
Arrgh.</DIV>
<DIV>Suggestions??</DIV></DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:stepan.kafka@centrum.cz" title=stepan.kafka@centrum.cz>Stepan
Kafka</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:klehr1@tampabay.rr.com"
title=klehr1@tampabay.rr.com>klehr1@tampabay.rr.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, March 08, 2002 9:36
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [mapserver-users] Compiling
freetype</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=907362814-08032002><FONT color=#0000ff face=Arial
size=2>There is a lot of comments inside the makefile, fplease follow them, I
dont have it on my hand but I think you are to use only
-DHAVE_LIBTTF.</FONT></SPAN></DIV>
<DIV><SPAN class=907362814-08032002><FONT color=#0000ff face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=907362814-08032002><FONT color=#0000ff face=Arial
size=2>ATTENTION!!!! I forgotten the <FONT face="Courier New"
size=2><STRONG>--enable-force-freetype1</STRONG> switch in the MS configure
parameters. The right syntax is:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=907362814-08032002><FONT face="Courier New"><FONT
size=2><FONT color=#ff0000>./configure --with-gd=static,<<SPAN
class=907362814-08032002>path to your gd</SPAN>> --with-ttf
--enable-force-freetype1</FONT><FONT color=#0000ff> </FONT><FONT
color=#ff0000>...</FONT></FONT></FONT></DIV>
<DIV>
<P><FONT color=#0000ff face=Arial size=2><SPAN class=907362814-08032002>good
luck!<BR></SPAN></FONT><FONT color=#0000ff face=Arial size=2><SPAN
class=907362814-08032002></SPAN></FONT></P>
<P><FONT color=#0000ff face=Arial size=2><SPAN class=907362814-08032002>Stepan
Kafka</SPAN></FONT></P></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV class=OutlookMessageHeader><FONT face="Times New Roman"
size=2>-----Původní zpráva-----<BR><B>Od:</B> klehr1@tampabay.rr.com
[mailto:klehr1@tampabay.rr.com]<BR><B>Odesláno:</B> 8. března 2002
13:44<BR><B>Komu:</B> Stepan Kafka<BR><B>Předmět:</B> Re: [mapserver-users]
Compiling freetype<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>When compiling gd it asks about
DHAVE_LIBFREETYPE and -DHAVE_LIBTTF</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>do I only use -DHAVE_LIBTTF ?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Steve</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:stepan.kafka@centrum.cz"
title=stepan.kafka@centrum.cz>Stepan Kafka</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:klehr1@tampabay.rr.com"
title=klehr1@tampabay.rr.com>klehr1@tampabay.rr.com</A> ; <A
href="mailto:mapserver-users@lists.gis.umn.edu"
title=mapserver-users@lists.gis.umn.edu>Users</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, March 08, 2002 2:00
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [mapserver-users]
Compiling freetype</DIV>
<DIV><BR></DIV>
<DIV>
<DIV><SPAN class=436354606-08032002><FONT color=#0000ff face=Arial
size=2>Hi Steve,</FONT></SPAN></DIV>
<DIV><SPAN class=436354606-08032002><FONT color=#0000ff face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=436354606-08032002><FONT color=#0000ff face=Arial
size=2>I have good experience with this configuration:</FONT></SPAN></DIV>
<DIV><SPAN class=436354606-08032002><FONT color=#0000ff face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=436354606-08032002><FONT face=Arial><FONT
color=#0000ff><FONT size=2>1. Compiling gd 1.8.4. with freetype 1.2
(I had to edit makefile to ensure the freetype 1.2) <SPAN
class=905595306-08032002>without make
install.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=436354606-08032002></SPAN><SPAN
class=436354606-08032002><FONT color=#0000ff face=Arial size=2>2.
Configuring and compiling mapserver with these
options:</FONT></SPAN></DIV>
<DIV><SPAN class=436354606-08032002><FONT color=#0000ff face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=436354606-08032002><FONT face=Arial><FONT
size=2> ./configure --with-gd=static,/installs/gd-1.8.4
--with-ttf<SPAN class=905595306-08032002>
...</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=436354606-08032002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=436354606-08032002><FONT face=Arial size=2>Stepan
Kafka</FONT></SPAN></DIV></DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV class=OutlookMessageHeader><FONT face="Times New Roman"
size=2>-----Původní zpráva-----<BR><B>Od:</B> <A
href="mailto:owner-mapserver-users@lists.gis.umn.edu">owner-mapserver-users@lists.gis.umn.edu</A>
[<A
href="mailto:owner-mapserver-users@lists.gis.umn.edu">mailto:owner-mapserver-users@lists.gis.umn.edu</A>]<B>za
uživatele</B> klehr1@tampabay.rr.com<BR><B>Odesláno:</B> 7. března 2002
18:18<BR><B>Komu:</B> Users<BR><B>Předmět:</B> [mapserver-users]
Compiling freetype<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Good morning:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>I'm getting the error:
</FONT><FONT face=Arial size=2>getSymbol(): Symbol definition error.
(FONT):(118) </FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My goal is to get rotating text to work and
have downloaded the freetype 1.2 library and the gd-1.8.4
library.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>It seems that this version of freetype does
not make a libfreetype.a file which is needed to make the symbols work
in when compiling mapserver with gd option.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I've searched the archives and help sites,
but I'm missing something here---</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>1. Download freetype 1.2 and compile
(check)</FONT></DIV>
<DIV><FONT face=Arial size=2>2. Download gd-1.8.4 and compile
with -libttf (check)</FONT></DIV>
<DIV><FONT face=Arial size=2>3. Download mapserver_3.5 and
configure ./configure
--with-gd=/installs/gd-1.8.4 (since gd is compiled with
freetype--though there's no libfreetype.a generated?? I don't need to
--with-freetype)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I guess my question is do what version of
freetype do I need to make libfreetype.a and do I really need
that?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>Steve Lehr</FONT></DIV>
<DIV><FONT face=Arial size=2>WebDatabaseSolutions.com</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>