<div dir="ltr">Hi again,<div><br></div><div>Finally I got the KML support working in gdal 1.10 and so I am trying now to compile mapserver against it to get the KMZ support. I am trying to compile 6.0.2 version but still there are problems with GDAL. After compiling GDAL I configure Mapserver with the following parameters:</div>
<div><br></div><div><div><pre style="text-align:-webkit-auto;margin-right:1em;margin-left:1.6em;padding:8px;background-color:rgb(250,250,250);border:1px solid rgb(226,226,226);width:auto;color:rgb(72,72,72);font-size:12px">
sudo ./configure --with-proj --with-geos=/usr/local/bin/geos-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/local/apache2/bin/httpd --with-php=/usr/local/php-5.2.2 --enable-point-z-m --with-png=/usr/local/include/libpng16/ --with-libiconv-dir=/usr/local/libiconv-1.12 --with-gd --with-jpeg --with-tiff --with-xpm --with-wfs --with-wcs --with-wmsclient --with-wfsclient  --with-gdal=/usr/src/gdal-1.10.1/apps/gdal-config --with-kml
</pre></div></div><div>It starts compiling but when compiling the shp2img tool it throws the following error:</div><div><pre style="text-align:-webkit-auto;margin-right:1em;margin-left:1.6em;padding:8px;background-color:rgb(250,250,250);border:1px solid rgb(226,226,226);width:auto;color:rgb(72,72,72);font-size:12px">
<br><div><pre style="text-align:-webkit-auto;margin-right:1em;margin-left:1.6em;padding:8px;border:1px solid rgb(226,226,226);width:auto"></pre><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">
sudo make</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">
g++ -O2 -fPIC -Wall  -DNDEBUG   -DUSE_POINT_Z_M -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR    -DUSE_POINT_Z_M       -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS   -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS    -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG  -DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/freetype2  -I/usr/local/include/libpng16/   -I/usr/include -Irenderers/agg/include       -I/usr/src/gdal-1.10.1/port -I/usr/src/gdal-1.10.1/gcore -I/usr/src/gdal-1.10.1/alg -I/usr/src/gdal-1.10.1/ogr -I/usr/src/gdal-1.10.1/ogr/ogrsf_frmts -I/usr/src/gdal-1.10.1/frmts/vrt -I/usr/local/pgsql/include    -I/usr/local/include    -I/usr/include/libxml2   shp2img.o  -L. -lmapserver -lfreetype -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -L/usr/local/include/libpng16/ -lpng -L/lib64 -lz -lXpm -lX11  -lexpat   -lproj -ljpeg -L/usr/local/include/libpng16/ -lpng -lgif  /usr/src/gdal-1.10.1/<a href="http://libgdal.la">libgdal.la</a> -L/usr/local/pgsql/lib -lpq  -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz    -L/usr/local/lib -lgeos_c  -liconv    -L/lib64 -lz -lxml2 -lz -lm  -lm -lstdc++    -o shp2img</div>
<div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">
/usr/src/gdal-1.10.1/<a href="http://libgdal.la">libgdal.la</a>: file not recognized: File format not recognized</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">collect2: ld devolvió el estado de salida 1</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">make: *** [shp2img] Error 1</div></div></pre></div><div>I have checked that the gdal binaries are from a make after a make clean (to avoid corruption) but it did not sort out the problem. Could anyone give a key for solving this problem?</div>
<div><br></div><div>Cheers,</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Juan Manuel Moreno Rivera.


<p><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Sección de Teledetección y SIG / Remote Sensing & GIS
group</span></font></p>

<p><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Instituto de Desarrollo Regional / Institute for Regional
Development</span></font></p>

<p><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Universidad de Castilla-La Mancha / University of
Castilla-La Mancha</span></font></p><p><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Tlf: +34 967599200 (Ext: 2623)<br></span></font></p>

<font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><a href="http://www.teledeteccionysig.es/" target="_blank">http://www.teledeteccionysig.es/</a></span></font></div></div>
<br><br><div class="gmail_quote">2014-02-17 11:09 GMT+01:00 Juanma M. R. <span dir="ltr"><<a href="mailto:juanma.mr@gmail.com" target="_blank">juanma.mr@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Dear list,<div><br></div><div>I am trying to compile mapserver with KMZ support. </div><div><br></div><div>I have tried with both, mapserver 6.02 and Mapserver 6.4. The main problem is:</div><div><br></div>
<div>
* How should I add support to KMZ in Mapserver? I have tried compiling from trunk libkml (as explain <a href="http://www.gdal.org/ogr/drv_libkml.html" target="_blank">here</a> and <a href="https://code.google.com/p/libkml/wiki/UserGuide01x" target="_blank">here</a>) but I didn't manage to do it. Is this the correct way or is there a more simplified method?</div>

<div><br></div><div>Cheers,<br></div><div><div><div dir="ltr">Juan Manuel Moreno Rivera.


<p><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Sección de Teledetección y SIG / Remote Sensing & GIS
group</span></font></p>

<p><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Instituto de Desarrollo Regional / Institute for Regional
Development</span></font></p>

<p><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Universidad de Castilla-La Mancha / University of
Castilla-La Mancha</span></font></p><p><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Tlf: <a href="tel:%2B34%20967599200" value="+34967599200" target="_blank">+34 967599200</a> (Ext: 2623)<br></span></font></p>


<font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><a href="http://www.teledeteccionysig.es/" target="_blank">http://www.teledeteccionysig.es/</a></span></font></div></div>
</div></div>
</blockquote></div><br></div>