[mapserver-users] How to compile mapserv with FreeType support ? HELP !!!!!!!!!

Stéphane Bricard stephane.bricard at ducvra.com
Mon Sep 10 11:58:27 EDT 2001


Hi everybody,

I'm trying to compile mapserv (3.5 nightly build) with FreeType support.
Freetype 2.04 is installed, GD1.3 also (I was previously using it with PHP
4.05).

- Here are my compile options :

php-4.0.6 :
./configure --with-mysql --with-apache=../apache_1.3.20 --with-gd=../gd1.3 -
-without-ttf --enable-track-vars --enable-dbase --with-system-regex

apache_1.3.20:
./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a

mapserver
./configure --with-php=../php-4.0.6 --with-gd=../gd1.3 --with-freetype=/usr/
local/bin/freetype-config

- Here is the output of mapserv configure :
----------------------------------
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for exp in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
        using libjpeg from system libs.
checking which version of GD to use...
        using libgd from -L/root/install/mapserver/../gd1.3 -lgd
checking where FreeType is installed...
        using libfreetype from -L/usr/local/lib -lfreetype
checking for FT_Init_FreeType in -lfreetype... yes
        using libfreetype -lfreetype from system libs.
./configure: unset: `ac_cv_lib_z_z,zlibVersion': not a valid identifier
checking where Zlib is installed...
checking for zlibVersion in -lz... yes
        using libz from system libs.
checking where PNG is installed...
checking for png_init_io in -lpng... yes
        using libpng from system libs.
checking for gdImageGif in -lc... yes
checking for gdImagePng in -lc... no
checking for gdImageJpeg in -lc... no
checking for gdImageWBMP in -lc... no
checking for gdImageStringFT in -lc... no
checking for gdImageStringTTF in -lc... no
checking for gdImageString16 in -lc... yes
checking for gdImageGifPtr in -lc... no
        using GD ( -DUSE_GD_GIF) from /root/install/mapserver/../gd1.3.
checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... yes
        using libtiff from system libs.
checking whether we should include EPPL7 support...
        including EPPL7 support.
checking whether we should include PROJ.4 support...
        PROJ.4 support not requested.
checking whether we should include ESRI SDE support...
SDE Version is 80.
        ESRI SDE support not requested.
checking whether we should compile in MPATROL support...
        MPATROL support not requested.
checking whether we should include OGR support...
        OGR support not requested.
checking if GDAL support requested... no
checking if PostGIS support requested... no
checking whether we should include WMS support...
        OGC WMS Compatibility not enabled (PROJ.4 is required for WMS).
checking whether we should include WMS Client Connections support...
        OGC WMS Client Connections not enabled (PROJ.4 and libwww required).
Compiling with -DIGNORE_MISSING_DATA.
checking for PHP/MapScript module options...
checking whether 'perl -V' works... yes
checking for location of config.h or php_config.h...
/root/install/mapserver/../php-4.0.6/main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... no
        PHP/MapScript module configured.
updating cache ./config.cache
creating ./config.status
creating Makefile
creating mapscript/php3/Makefile
--------------------------------------
I don't get any error while comiling mapserv BUT the only result I get when
I try to use a TrueType related keyword in my mapfile (i.e FONT) is that :
Warning: MapServer Error in loadlabel(): Keyword FONT is not valid without
TrueType font support

ms_GetVersion() returns this : MapServer version 3.5 (pre-alpha) OUTPUT=GIF
INPUT=SHAPEFILE

All of this is running on a Suse 6.4 box running pretty smoothly Apache and
PHP for the last 2 years.

Thanks in advance for any insight from any of you out there !

Stéphane Bricard
Paris
France








More information about the mapserver-users mailing list