[mapserver-users] compiling mapserv 5.4.1 with PNG driver

Peter Peterse peter at peterse-uithuizen.com
Tue Jun 30 13:41:50 PDT 2009


Hello,

I'm trying to compile mapserv v5.4.1. I used the next configure command:
================
./configure     --with-ogr=/usr/local/bin/gdal-config \
                --with-gdal=/usr/local/bin/gdal-config \
                --with-httpd=/usr/sbin/httpd \
                --with-wfsclient \
                --with-wmsclient \
                --enable-debug \
                --with-curl-config=/usr/local/bin/curl-config \
                --with-proj=/usr/local \
                --with-tiff \
                --with-gd=/usr/local \
                --with-jpeg=/usr/lib/ \
                --with-png=/usr/local/bin/libpng12-config \
                --with-freetype=/usr/ \
                --with-threads \
                --with-wcs \
                --with-wfs \
                --with-postgis=/usr/local/pgsql/bin/pg_config \
                --with-libiconv=/usr \
                --with-geos=/usr/local/bin/geos-config \
                --with-libiconv=/usr \
                --with-xml2-config=/usr/bin/xml2-config \
                --with-sos \
                --with-agg=/home/peter/src/agg-2.5
================

after the make command there is a mapserv program.
mapserv -v gives:
================
MapServer version 5.4.1 OUTPUT=GIF OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
================

In my map-file I have defined OUTPUTFORMAT:
==========
OUTPUTFORMAT
    NAME agg
    DRIVER AGG/PNG
    IMAGEMODE RGB
    FORMATOPTION "INTERLACE=false"
    MIMETYPE "image/png"
END
==========
this give the next error:
OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't
configured.

Does anyone knows what I'm doing wrong?


Thanks for your response.

Peter.




More information about the MapServer-users mailing list