[mapserver-users] compiling mapserv 5.4.1 with PNG driver
Peter Peterse
peter at peterse-uithuizen.com
Wed Jul 1 00:31:48 PDT 2009
Thanks, but I'm not that far.
I've just compiled mapserv
After that I call the next command's:
$ ./mapserv -v
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
$ ./shp2img -m ../mapserver-utils-read-only/osm.map -o osm.png
loadOutputFormat(): General error message. OUTPUTFORMAT clause references
driver AGG/PNG, but this driver isn't configured. <br>
My configure command gave me the next result:
====================
MapServer is now configured for
-------------- Compiler Info -------------
C compiler: gcc -g -O2 -fPIC -Wall
C++ compiler: g++ -g -O2 -fPIC -Wall
Debug: -g -DNEED_NONBLOCKING_STDERR
Generic NINT:
-------------- Renderer Settings ---------
zlib support: -DUSE_ZLIB
png support:
palette rgba png support:
jpeg support:
iconv support: -DUSE_ICONV
AGG support: -DUSE_AGG
AGG Freetype support: agg_font_freetype.o
Ming(flash) support:
PDFLib support:
-------------- Support Libraries ---------
Proj.4 support: -DUSE_PROJ
Libxml2 support: -DUSE_LIBXML2
FriBidi support:
Curl support: -DUSE_CURL
FastCGI support:
Threading support: -DUSE_THREAD
GEOS support: -DUSE_GEOS
-------------- Data Format Drivers -------
native tiff support: -DUSE_TIFF
PostGIS support: -DUSE_POSTGIS
EPPL7 support: -DUSE_EPPL
ArcSDE support:
OGR support: -DUSE_OGR
GDAL support: -DUSE_GDAL
Oracle Spatial support:
-------------- OGC Services --------------
WMS Server: -DUSE_WMS_SVR
WMS Client: -DUSE_WMS_LYR
WFS Server: -DUSE_WFS_SVR
WFS Client: -DUSE_WMS_LYR
WCS Server: -DUSE_WCS_SVR
SOS Server: -DUSE_SOS_SVR
-------------- MapScript -----------------
PHP MapScript: no
====================
I hope this give some more information.
Peter.
> you're apache configuration is probably not calling the mapserv binary
> you just compiled, but another one on your system.
>
> regards,
> thomas
>
> www.camptocamp.com
> +33 4 79 26 57 97
>
>
>
> On Tue, Jun 30, 2009 at 22:41, Peter Peterse<peter at peterse-uithuizen.com>
> wrote:
>> 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.
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
More information about the MapServer-users
mailing list