[mapserver-users] GD/Freetype Problem (was: No Image Output)

Alexander Pucher pucher at atlas.gis.univie.ac.at
Mon Jul 29 05:01:24 PDT 2002


You were right! By unchecking the 'Pop.Places', everything works fine. 
The problem really seems to be the TrueType stuff ;-(

I played around a bit and came up with the following problem:

I want to build Mapserver with GD and freetype 1.3 (!!) support, because 
of the known problems with freetype 2.0.

To be absolutely sure, I removed all Freetype 2.0 stuff from my system 
using YAST2 at SuSE 8.0 ( I hope, it does this job well)
I built and installed freetype 1.3 and GD from source:

./doit-gd:

make clean
rm config.cache
./configure --enable-freetype --enable-jpeg

the output:

...
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for main in -lm... yes
checking for deflate in -lz... yes
checking for png_check_sig in -lpng... yes
checking for jpeglib.h... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for freetype.h... yes
checking for TT_Init_FreeType in -lttf... yes
checking for ANSI C header files... yes
checking for malloc.h... yes
checking for unistd.h... yes
checking for zlib.h... yes
checking for png.h... yes
...

when running the configure script of mapserver:

./doit-mapserver:

make clean
rm config.cache
./configure --with-proj --with-sde --with-ogr --with-gdal --with-postgis 
--with-wmsclient --with-tiff --with-jpeg --with-php=/download/php-4.2.1 
--with-freetype=/usr/local/lib --enable-force-freetype1

it keeps showing me:

...
checking for jpeg_read_header in -ljpeg... yes
        using libjpeg from system libs.
checking which version of GD to use...
        using libgd from system libs.
checking where FreeType is installed...
        using libfreetype from -L/usr/local/lib -lttf
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 gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageString16 in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
        using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP 
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR) from system libs.
checking whether we should include PDF support...
...

According to the MapServer Unix HOWTO, I should not get DUSE_GD_FT but 
DUSE_GD_TTF, when building with Freetype1 !!!

Can anybody help me?

Regards
alex







Thes Quid wrote:

> Alex,
>
> I found the /tmp/ms_tmp entries rather odd, I just replaced them with 
> the exact same values that were in the itasca demo and the gmap demo 
> worked fine. (one path full, so the system can place the images, one 
> relative to the webserver's root so the server can output them)
> I just had problems with it complaining about TrueType; if this 
> happens just uncheck the "Pop. Place" box and see if it comes up fine. 
> I still haven't solved that problem.
> I also converted everything over to pngs because I could never get the 
> gif output to compile correctly.
>
> Good luck!
> Dana
>
>
> On Sunday, July 28, 2002, at 07:50 AM, Alexander Pucher wrote:
>
>     Hi,
>
>     I've just finished my Mapserver-Setup using the following components:
>
>     SuSE Linux v.8.0 (Kernel 2.4.18-4GB)
>     PostgreSQL v.7.2.1
>     PostGIS v.0.7
>
>     freetype 1.3
>     gd-1.8.4 (patched version with GIF support)
>     proj-4.4.5
>     gdal-1.1.7
>     w3c-libwww-5.4.0
>     libgeotiff-1.1.4
>
>     PHP v.4.2.1
>     UMN Mapserver v.3.6
>     gmap-ms36
>
>     $ mapserv -v gives me the following output:
>
>     MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
>     OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER
>     SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG
>     INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
>     Itasca demo works without problems!!!
>
>     but GMAP demo doesn't produce any GIF's in my /tmp/ms_tmp directory!!!
>
>     The source code of the HTML output file looks perfect until the
>     PHP statement <?php GMApDrawMap() ?>
>
>     I checked the mailinglist entries concerning this problem, and
>     also checked the permissions of the /tmp/ms_tmp dirs. BTW, the
>     Itasca-demop writes its file into there, so the permissions should
>     be OK.
>
>     Any suggestions on this?
>
>     How can I (quick) test if the php_mapscript.so I compiled is
>     working properly ?
>
>     I tried to enable logging by _not_ commenting the resp. line in
>     the mapfile, but nothing gets logged ? How do I log Mapserver
>     actions??
>
>     Thanks you
>
>     alex
>






More information about the MapServer-users mailing list