<div dir="ltr">Hello<br><div class="gmail_quote"><div dir="ltr"><div>Dear friends</div><div>I've been working with mapserver since 2005, but I've always had problems when compiling newer versions of mapserver and this is one of these cases with the 6.2.1 version.</div>
<div><br></div><div>H einstalado and all dependencies compiled mapserver with the following script, including support for svg symbols.</div><div><br></div><div><div>./configure \</div><div>--with-proj=/usr/local \</div><div>
--with-geos=/usr/local/bin/geos-config \</div><div>--with-ogr=/usr/local/bin/gdal-config \</div><div>--with-gdal=/usr/local/bin/gdal-config \</div><div>--with-zlib=/usr/lib/ \</div><div>--with-pkg-config=/usr/bin/pkg-config \</div>
<div>--with-mysql=/usr/bin/mysql_config \</div><div>--with-postgis=/usr/local/pgsql/bin/pg_config \</div><div>--with-curl-config=/usr/bin/curl-config \</div><div>--with-apache-module \</div><div>--with-apxs=/usr/local/apache2/bin/apxs \</div>
<div>--with-fastcgi \</div><div>--with-php=/usr/local/apache2/php/bin/php-config \</div><div>--with-wfs \</div><div>--with-wfsclient \</div><div>--with-exempi \</div><div>--with-fribidi-config=/usr/local/lib/pkgconfig/fribidi.pc \</div>
<div>--with-wmsclient \</div><div>--enable-debug \</div><div>--with-curl-config=/usr/bin/curl-config \</div><div>--with-threads \</div><div>--with-wcs \</div><div>--with-kml=yes \</div><div>--with-cairo=/usr/local/lib/pkgconfig/cairo.pc \</div>
<div>--with-sos \</div><div>--with-gd=/usr/bin/gdlib-config \</div><div>--with-freetype \</div><div>--with-jpeg \</div><div>--with-xml2-config=/usr/bin/xml2-config \</div><div>--with-xml-mapfile=yes \</div><div>--enable-proj-fastpath \</div>
</div><div><br></div><div>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$</div><div><div>MapServer is now configured for i686-pc-linux-gnu</div><div><br></div><div> -------------- Compiler Info -------------</div>
<div> C compiler: gcc -g -Wall -Wdeclaration-after-statement</div><div> C++ compiler: g++ -g -Wall</div><div> Debug: -g</div><div> Generic NINT:</div><div><br></div>
<div> -------------- Renderer Settings ---------</div><div> OpenGL support:</div><div> zlib support:</div><div> png support: -DUSE_PNG</div><div> gif support: -DUSE_GIF</div><div> jpeg support: -DUSE_JPEG</div>
<div> freetype support: -DUSE_FREETYPE</div><div> iconv support: -DUSE_ICONV</div><div> AGG support: internal</div><div> GD support: -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF</div>
<div> Cairo (SVG,PDF) support: -DUSE_CAIRO</div><div> Cairo SVG symbol support: -DUSE_SVG_CAIRO</div><div> KML support: -DUSE_KML</div><div><br></div><div> -------------- Support Libraries ---------</div>
<div> Proj.4 support: -DUSE_PROJ</div><div> Proj Fastpaths: -DUSE_PROJ_FASTPATHS</div><div> Libxml2 support: -DUSE_LIBXML2</div><div> FriBidi support: -DUSE_FRIBIDI -DUSE_FRIBIDI2</div>
<div> Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH</div><div> FastCGI support: -DUSE_FASTCGI</div><div> Exempi support: -DUSE_EXEMPI</div><div> Threading support: -DUSE_THREAD</div>
<div> GEOS support: -DUSE_GEOS</div><div> XML Mapfile support: -DUSE_XMLMAPFILE</div><div> XSLT support: -DUSE_XSLT</div><div> EXSLT support: -DUSE_EXSLT</div><div><br></div>
<div> -------------- Data Format Drivers -------</div><div> PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION</div><div> ArcSDE support:</div><div> OGR support: -DUSE_OGR</div><div> GDAL support: -DUSE_GDAL</div>
<div> Oracle Spatial support:</div><div><br></div><div> -------------- OGC Services --------------</div><div> WMS Server: -DUSE_WMS_SVR</div><div> WMS Client: -DUSE_WMS_LYR</div><div> WFS Server: -DUSE_WFS_SVR</div>
<div> WFS Client: -DUSE_WFS_LYR</div><div> WCS Server: -DUSE_WCS_SVR</div><div> SOS Server: -DUSE_SOS_SVR</div><div><br></div><div> -------------- MapScript -----------------</div>
<div> PHP MapScript: yes</div><div> Python MapScript: no</div></div><div>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$</div><div><br></div>
<div>But it throws the following error:</div><div><br></div><div><div>USE_EXSLT -DUSE_XSLT -DUSE_XMLMAPFILE -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_EXEMPI -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYSQL -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DHAVE_SYNC_FETCH_AND_ADD -DUSE_THREAD -DUSE_PROJ -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DDISABLE_CVSID -I/usr/include/freetype2 -Irenderers/agg/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -I/usr/local/include -I/usr/include/exempi-2.0/exempi -I/usr/include/libxml2 -I/usr/local/include/fribidi -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/apr-1 -I/usr/local/apache2/include mapcairo.c -o mapcairo.lo</div>
<div>libtool: compile: gcc -c -g -Wall -Wdeclaration-after-statement -DUSE_PROJ_FASTPATHS -DMOD_WMS_ENABLED -DUSE_FASTCGI -DUSE_SVG_CAIRO -DUSE_CAIRO -DUSE_FRIBIDI -DUSE_FRIBIDI2 -DUSE_EXSLT -DUSE_XSLT -DUSE_XMLMAPFILE -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_EXEMPI -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYSQL -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DHAVE_SYNC_FETCH_AND_ADD -DUSE_THREAD -DUSE_PROJ -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DDISABLE_CVSID -I/usr/include/freetype2 -Irenderers/agg/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -I/usr/local/include -I/usr/include/exempi-2.0/exempi -I/usr/include/libxml2 -I/usr/local/include/fribidi -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/apr-1 -I/usr/local/apache2/include mapcairo.c -fPIC -DPIC -o .libs/mapcairo.o</div>
<div>mapcairo.c:367: error: expected specifier-qualifier-list before 'svg_cairo_t'</div><div>mapcairo.c: In function 'renderSVGSymbolCairo':</div><div>mapcairo.c:398: error: 'svg_cairo_status_t' undeclared (first use in this function)</div>
<div>mapcairo.c:398: error: (Each undeclared identifier is reported only once</div><div>mapcairo.c:398: error: for each function it appears in.)</div><div>mapcairo.c:398: error: expected ';' before 'status'</div>
<div>mapcairo.c:399: error: 'status' undeclared (first use in this function)</div><div>mapcairo.c:399: warning: implicit declaration of function 'svg_cairo_render'</div><div>mapcairo.c:399: error: 'struct svg_symbol_cache' has no member named 'svgc'</div>
<div>mapcairo.c:400: error: 'SVG_CAIRO_STATUS_SUCCESS' undeclared (first use in this function)</div><div>mapcairo.c: In function 'freeSVGCache':</div><div>mapcairo.c:1041: error: 'struct svg_symbol_cache' has no member named 'svgc'</div>
<div>mapcairo.c:1043: warning: implicit declaration of function 'svg_cairo_destroy'</div><div>mapcairo.c:1043: error: 'struct svg_symbol_cache' has no member named 'svgc'</div><div>mapcairo.c: In function 'msPreloadSVGSymbol':</div>
<div>mapcairo.c:1102: error: 'symbolObj' has no member named 'renderer_free_func'</div><div>mapcairo.c:1106: error: 'struct svg_symbol_cache' has no member named 'svgc'</div><div>mapcairo.c:1113: warning: implicit declaration of function 'svg_cairo_create'</div>
<div>mapcairo.c:1113: error: 'struct svg_symbol_cache' has no member named 'svgc'</div><div>mapcairo.c:1118: warning: implicit declaration of function 'svg_cairo_parse'</div><div>mapcairo.c:1118: error: 'struct svg_symbol_cache' has no member named 'svgc'</div>
<div>mapcairo.c:1123: warning: implicit declaration of function 'svg_cairo_get_size'</div><div>mapcairo.c:1123: error: 'struct svg_symbol_cache' has no member named 'svgc'</div><div>mapcairo.c: In function 'msRenderRasterizedSVGSymbol':</div>
<div>mapcairo.c:1176: error: 'struct svg_symbol_cache' has no member named 'scale'</div><div>mapcairo.c:1176: error: 'struct svg_symbol_cache' has no member named 'rotation'</div><div>mapcairo.c:1213: error: 'struct svg_symbol_cache' has no member named 'svgc'</div>
<div>mapcairo.c:1213: error: 'SVG_CAIRO_STATUS_SUCCESS' undeclared (first use in this function)</div><div>mapcairo.c:1224: error: 'struct svg_symbol_cache' has no member named 'scale'</div><div>mapcairo.c:1225: error: 'struct svg_symbol_cache' has no member named 'rotation'</div>
<div>make: *** [mapcairo.lo] Error 1</div><div>[root@sigservertemp mapserver-6.2.1]#</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Someone can help me with this problem, I certainly have libsvg-cairo compiled as indicated in the installation manual mapserver site</div>
</div></div></div>