Compiling mapserver with SLD support
Yewondwossen Assefa
assefa at DMSOLUTIONS.CA
Thu Sep 15 06:35:21 PDT 2005
If you build mapserver with OGR support, you should normally have an sld
support enabled. Only flag in the source code is USE_OGR.
Brock Anderson wrote:
> Hi List,
>
> I haven't been able to find instructions for compiling mapserver with
> SLD support. Does such a document exist?
>
> I am suspicious that the mapserver I recently compiled doesn't have SLD
> support. After I make getMap requests I expect to see an entry in the
> apache access log where mapserver has requested the SLD file, but
> there's nothing. Mapserver and the SLD file are both hosted from the
> same apache.
>
> I configured mapserver like this:
>
> ./configure --with-proj=/usr/ --with-postgis=yes
> --with-gdal=/usr/local/bin/gdal-config
> --with-ogr=/usr/local/bin/gdal-config --with-curl-config=/usr/bin/
> --with-wmsclient
>
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for ranlib... ranlib
> checking for flex... flex
> checking for yywrap in -lfl... yes
> checking lex output file root... lex.yy
> checking whether yytext is a pointer... 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 for __gxx_personality_v0 in -lstdc++... yes
> checking how to run the C preprocessor... gcc -E
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for strcasecmp... yes
> checking for strncasecmp... yes
> checking for strdup... yes
> checking for strlcat... no
> MapServer Version from map.h: '4.6.0'
> configure: checking where FreeType 2.x is installed...
> checking for FT_Init_FreeType in -lfreetype... yes
> using libfreetype -lfreetype from system libs.
> configure: checking where Zlib is installed...
> checking for zlibVersion in -lz... yes
> using libz from system libs.
> configure: checking where PNG is installed...
> checking for png_init_io in -lpng... yes
> using libpng from system libs.
> configure: checking whether we should include JPEG support...
> checking for jpeg_read_header in -ljpeg... yes
> using libjpeg from system libs.
> configure: checking where libXpm is installed...
> checking for XpmFreeXpmImage in -lXpm... no
> XPM (libXpm) library cannot be found, possibly needed for GD
> configure: checking where libiconv is installed...
> checking for iconv_open in -lc... yes
> checking for libiconv_open in -liconv... no
> using libiconv from system libs.
> libiconv found. Enabling internationalization (-DUSE_ICONV)
> configure: checking for GD 2.0.16 or higher...
> checking for gdFontCacheSetup in -lgd... yes
> using libgd 2.0.16 (or higher) from system libs (-L/usr/lib -lgd
> -ljpeg -lfreetype -lpng -lz ).
> 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 gdImageGifPtr in -lgd... yes
> checking for gdFontGetTiny in -lgd... yes
> using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
> -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system
> libs.
> configure: checking whether we should include PDF support...
> checking for PDF_setlinewidth in -lpdf... no
> checking for PDF_setrgbcolor in -lpdf... no
> checking for PDF_moveto in -lpdf... no
> checking for PDF_curveto in -lpdf... no
> checking for PDF_show_xy in -lpdf... no
> libpdf not found... PDF support not included.
> configure: checking whether we should include EPPL7 support...
> including EPPL7 support.
> configure: checking whether we should include PROJ.4 support...
> checking for pj_transform in -lproj... yes
> using PROJ.4 from /usr/.
> configure: checking whether we should include thread safe support...
> thread safe support disabled.
> configure: checking whether we should include ESRI SDE support...
> ESRI SDE support not requested.
> configure: checking whether we should include SDE raster support...
> not including experimental SDE raster support.
> configure: checking whether we should compile in MPATROL support...
> MPATROL support not requested.
> checking if GEOS support requested... no
> configure: checking whether we should include OGR support...
> OGR enabled (-DUSE_OGR).
> checking if GDAL support requested... yes, user supplied gdal-config
> (/usr/local/bin/gdal-config)
> checking checking ms JPEG output... no we, have GDAL available.
> configure: checking whether we should include TIFF support...
> disabled since gdal is in use
> checking if PostGIS support requested... yes
> checking for pg_config... /usr/bin/pg_config
> yes, user supplied pg_config
> checking if MyGIS support requested... no
> checking if OracleSpatial support requested... no
> checking if MING/Flash support requested... no
> configure: checking whether we should include WMS Server support...
> OGC WMS compatibility enabled (-DUSE_WMS_SVR).
> configure: checking whether we should include WFS Server support...
> OGC WFS Server support not requested.
> configure: checking whether we should include WCS Server support...
> OGC WCS Server support not requested.
> configure: checking whether we should include WMS Client Connections
> support...
> configure: checking whether we should include WFS Client Connections
> support...
> configure: checking for curl-config...
> checking for curl-config... /usr/bin/curl-config
> found libcurl version 7.13.1
> OGC WMS Client Connections enabled (-DUSE_WMS_LYR).
> configure: checking whether FastCGI support should be enabled...
> FastCGI support not enabled.
> configure: checking HTTPD server (Apache) version...
> checking for httpd... /usr/sbin/httpd
> /usr/sbin/httpd version is Apache/2.0.54 (2000054).
> Compiling with -DIGNORE_MISSING_DATA.
> checking compiler warnings... basic
> configure: checking whether we should enable debug features...
> configure: checking for PHP/MapScript module options...
> PHP/MapScript module not configured.
> checking if --enable-runpath requested... no
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating mapscript/java/Makefile
>
> MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
> INPUT=SHAPEFILE
>
> Any thoughts why SLD appears not be working?
>
> Brock
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list