[mapserver-users] Compiling freetype

Daniel Morissette morissette at dmsolutions.ca
Sun Mar 10 11:53:00 EST 2002


Steve,

The problem seems to be that MapServer doesn't recognize the Freetype
support in your GD-1.8.4... I've ran into similar problems in the past
with GD... even the GD test programs wouldn't work for some reason. 
Anyway, I managed to get it to work but never took the time to figure
out why it wasn't working before.

I've got a copy that is built already and runs well with MapServer on
RH6.1 ... you can download it at
 http://www2.dmsolutions.ca/mapserver/dl/misc/gd-1.8.4-rh61.tar.gz

Assuming that you have libpng and libjpeg on your system, you should be
able to point your MapServer configure to this copy of GD and things
should work.  If it doesn't work, then try starting from the Makefile
that is included in the archive to build a working copy for yourself.

Good Luck!

Daniel



> klehr1 at tampabay.rr.com wrote:
> 
> 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??




More information about the mapserver-users mailing list