Fw: [mapserver-users] Compiling freetype

klehr1 at tampabay.rr.com klehr1 at tampabay.rr.com
Fri Mar 8 10:31:27 EST 2002


----- Original Message ----- 
From: klehr1 at tampabay.rr.com 
To: Stepan Kafka 
Cc: Daniel Morissette 
Sent: Friday, March 08, 2002 10:30 AM
Subject: Re: [mapserver-users] Compiling freetype


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.


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).

I've tried compiling everything by hand making all the .o files

then generating the libtff.a by ar -r libtff.a tt*.o, libfreetype.a = ar -r libfreetype.a ft*.o

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.

So I get gd built with only -libttf

When I build mapserver(3.5)
./configure --with-gd=static,/www/stevestuff/gd-1.8.4 --with-ttf --enable-force-freetype1

gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL    -DUSE_TIFF -DUSE_JPEG -DU
SE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP       -I/www/stevestuff/gd-1.8.4
    maplexer.c -o maplexer.o
maplexer.c: In function `msyylex':
maplexer.c:1602: warning: `yy_cp' might be used uninitialized in this function
maplexer.c:1602: warning: `yy_bp' might be used uninitialized in this function
maplexer.c: At top level:
maplexer.c:3125: warning: `yyunput' defined but not used


gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL    -DUSE_TIFF -DUSE_JPEG -DU
SE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP       -I/www/stevestuff/gd-1.8.4
    mapsymbol.c -o mapsymbol.o
mapsymbol.c: In function `msDrawShadeSymbol':
mapsymbol.c:458: warning: unused variable `font'
mapsymbol.c:457: warning: unused variable `rect'
mapsymbol.c:456: warning: unused variable `bbox'
mapsymbol.c: In function `msGetMarkerSize':
mapsymbol.c:661: warning: unused variable `font'
mapsymbol.c:660: warning: unused variable `rect'
mapsymbol.c: In function `msDrawMarkerSymbol':
mapsymbol.c:729: warning: unused variable `font'
mapsymbol.c:728: warning: unused variable `rect'
mapsymbol.c:727: warning: unused variable `bbox'
mapsymbol.c: In function `msCircleDrawShadeSymbol':
mapsymbol.c:1016: warning: unused variable `font'
mapsymbol.c:1015: warning: unused variable `rect'
mapsymbol.c:1014: warning: unused variable `bbox'
mapsymbol.c: At top level:              


mapserv -v 
MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP INPUT=TIFF INPUT=EPPL7
INPUT=JPEG INPUT=SHAPEFILE 

Suggestions???

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). 
 
rpm -i gd-1.8.3-7.i386.rpm
only packages with major numbers <= 3 are supported by this version of RPM
error: gd-1.8.3-7.i386.rpm cannot be installed        

I tried installing newer package managers put that failed too!  Arrgh.
Suggestions??
  ----- Original Message ----- 
  From: Stepan Kafka 
  To: klehr1 at tampabay.rr.com 
  Sent: Friday, March 08, 2002 9:36 AM
  Subject: RE: [mapserver-users] Compiling freetype


  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.
   
  ATTENTION!!!! I forgotten the --enable-force-freetype1 switch in the MS configure parameters. The right syntax is:
  ./configure --with-gd=static,<path to your gd> --with-ttf --enable-force-freetype1 ...
  good luck!


  Stepan Kafka

    -----Puvodní zpráva-----
    Od: klehr1 at tampabay.rr.com [mailto:klehr1 at tampabay.rr.com]
    Odesláno: 8. brezna 2002 13:44
    Komu: Stepan Kafka
    Predmet: Re: [mapserver-users] Compiling freetype


    When compiling gd it asks about DHAVE_LIBFREETYPE and -DHAVE_LIBTTF

    do I only use -DHAVE_LIBTTF ?

    Steve
      ----- Original Message ----- 
      From: Stepan Kafka 
      To: klehr1 at tampabay.rr.com ; Users 
      Sent: Friday, March 08, 2002 2:00 AM
      Subject: RE: [mapserver-users] Compiling freetype


      Hi Steve,
       
      I have good experience with this configuration:
       
      1. Compiling gd 1.8.4. with freetype 1.2 (I had to edit makefile to ensure the freetype 1.2) without make install.
      2. Configuring and compiling mapserver with these options:
       
       ./configure --with-gd=static,/installs/gd-1.8.4 --with-ttf ...
       
      Stepan Kafka
        -----Puvodní zpráva-----
        Od: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]za uzivatele klehr1 at tampabay.rr.com
        Odesláno: 7. brezna 2002 18:18
        Komu: Users
        Predmet: [mapserver-users] Compiling freetype


        Good morning:

        I'm getting the error:   getSymbol(): Symbol definition error. (FONT):(118) 
         
        My goal is to get rotating text to work and have downloaded the freetype 1.2 library and the gd-1.8.4 library.

        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.

        I've searched the archives and help sites, but I'm missing something here---

        1.  Download freetype 1.2 and compile (check)
        2.  Download gd-1.8.4 and compile with -libttf (check)
        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)

        I guess my question is do what version of freetype do I need to make libfreetype.a and do I really need that?

        Thanks
        Steve Lehr
        WebDatabaseSolutions.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020308/97a7b489/attachment-0002.html


More information about the mapserver-users mailing list