<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Ok, it worked.<br>
<br>
Thanks,<br>
<br>
Peter<br>
<br>
On 04/27/2012 03:22 PM, Umberto Nicoletti wrote:
<blockquote
cite="mid:CAD34bBAECTghR0-fY6kiMmGzZ_7n+MASmNxgG45-fT4JJBcp6w@mail.gmail.com"
type="cite">
<div class="gmail_extra">I just built it on Ubuntu 10.04 x86,
perhaps you should try this build process:</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">./configure [your options]
--enable-python-mapscript</div>
<div class="gmail_extra">make</div>
<div class="gmail_extra">sudo make install</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">make/make install will also build and
install python mapscript, no need to cd, swig, etc.</div>
<div class="gmail_extra"><br>
Umberto<br>
<br>
<div class="gmail_quote">On Fri, Apr 27, 2012 at 3:04 PM, Peter
Hopfgartner <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:peter.hopfgartner@r3-gis.com" target="_blank">peter.hopfgartner@r3-gis.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I'm on a
CentOS 6.2, x86_64 bit system:<br>
<br>
/configure --with-gd --with-zlib --with-tiff --with-agg
--with-experimental-png --with-freetype=/usr/bin/freetype-config
--with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config
--with-geos=/usr/bin/geos-config --with-cairo=yes
--with-proj --with-wfs --with-wcs --with-sos
--with-wmsclient --with-wfsclient --with-xpm
--with-postgis=/usr/bin/pg_config
--with-mygis=/usr/bin/mysql_config
--with-curl-config=/usr/bin/curl-config
--with-xml2-config=/usr/bin/xml2-config
--with-php=/usr/bin/php-config --with-fribidi-config=/usr/lib64/pkgconfig/fribidi.pc
--with-fastcgi=/usr --without-pdf --without-eppl
--with-threads --enable-debug --disable-runpath<br>
<br>
cd mapscript/python<br>
swig -python -shadow -modern -o mapscript_wrap.c
../mapscript.i<br>
cd ../..<br>
make<br>
cd mapscript/python<br>
python setup.py build<br>
<br>
The build fails with:<br>
<br>
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE
-fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE
-fPIC -fwrapv -fPIC -DUSE_FASTCGI=1 -DUSE_CAIRO=1
-DUSE_FRIBIDI=1 -DUSE_FRIBIDI2=1 -DUSE_WMS_LYR=1
-DUSE_WFS_LYR=1 -DUSE_SOS_SVR=1 -DUSE_LIBXML2=1 -DUSE_CURL=1
-DUSE_CURLOPT_PROXYAUTH=1 -DUSE_WCS_SVR=1 -DUSE_WFS_SVR=1
-DUSE_WMS_SVR=1 -DUSE_POSTGIS=1
-DPOSTGIS_HAS_SERVER_VERSION=1 -DUSE_GDAL=1 -DUSE_OGR=1
-DUSE_GEOS=1 -DUSE_THREAD=1 -DUSE_PROJ=1 -DUSE_GD=1
-DUSE_GD_GIF=1 -DUSE_GD_PNG=1 -DUSE_GD_JPEG=1
-DUSE_GD_WBMP=1 -DUSE_GD_FT=1 -DGD_HAS_FTEX_XSHOW=1
-DGD_HAS_GDIMAGEGIFPTR=1 -DGD_HAS_GETBITMAPFONTS=1
-DGD_HAS_GET_TRUE_COLOR_PIXEL=1 -DUSE_ICONV=1 -DUSE_JPEG=1
-DUSE_GIF=1 -DUSE_PNG=1 -DUSE_ZLIB=1 -DUSE_FREETYPE=1
-DHAVE_VSNPRINTF=1 -DNEED_STRLCPY=1 -DNEED_STRLCAT=1
-DNEED_STRRSTR=1 -DDISABLE_CVSID=1 -I../..
-I/usr/include/freetype2 -Irenderers/agg/include
-I/usr/include/gdal -I/usr/include -I/usr/include/fastcgi
-I/usr/include/libxml2 -I/usr/include/fribidi
-I/usr/include/cairo -I/usr/include/pixman-1
-I/usr/include/libpng12 -I/usr/include/python2.6
-I/home/rpmbuild/tmp/mapserver-6.1.20120426 -c
pygdioctx/pygdioctx.c -o build/temp.linux-x86_64-2.6/pygdioctx/pygdioctx.o<br>
pygdioctx/pygdioctx.c: In function
‘PyFileIfaceObj_IOCtx_GetBuf’:<br>
pygdioctx/pygdioctx.c:84: warning: passing argument 3 of
‘PyString_AsStringAndSize’ from incompatible pointer type<br>
/usr/include/python2.6/stringobject.h:172: note: expected
‘Py_ssize_t *’ but argument is of type ‘int *’<br>
gcc -pthread -shared build/temp.linux-x86_64-2.6/mapscript_wrap.o
build/temp.linux-x86_64-2.6/pygdioctx/pygdioctx.o -L../../
-L/usr/lib64 -L/usr/lib64 -L/usr/lib -L/usr/lib64
-L/home/rpmbuild/tmp/mapserver-6.1.20120426 -lpython2.6
-lmapserver -lfreetype -lgd -ljpeg -lpng -lz -lXpm -lX11
-lproj -lgif -lgdal -lpq -lcurl -lgeos_c -lpthread -lc
-lfcgi -lxml2 -lm -lfribidi -lstdc++ -lfontconfig -lcairo
-lpng12 -lmapserver -o build/lib.linux-x86_64-2.6/_mapscript.so<br>
/usr/bin/ld: cannot find -lmapserver<br>
collect2: ld returned 1 exit status<br>
error: command 'gcc' failed with exit status 1<br>
<br>
Anyway, there is a file <a moz-do-not-send="true"
href="http://libmapserver.la" target="_blank">libmapserver.la</a>
in the source directory.<br>
<br>
What is it, that I'm mising?<br>
<br>
Thanks,<br>
<br>
Peter<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Peter Hopfgartner<br>
web : <a moz-do-not-send="true"
href="http://www.r3-gis.com" target="_blank">http://www.r3-gis.com</a><br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:mapserver-users@lists.osgeo.org"
target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"
target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Peter Hopfgartner
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
web : <a class="moz-txt-link-abbreviated" href="http://www.r3-gis.com">www.r3-gis.com</a>
mail : <a class="moz-txt-link-abbreviated" href="mailto:peter.hopfgartner@r3-gis.com">peter.hopfgartner@r3-gis.com</a>
phone: +39 0473 494949
fax : +39 0473 069902
ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente è vietata e può violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail.
ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verstößt gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrtümlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschließend die Mitteilung zu vernichten.
WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003)
</pre>
</body>
</html>