<HTML dir=ltr><HEAD><TITLE>Re: R: R: [GRASS-dev] Re: Building GRASS/QGIS with MSYS</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR><BASE href=http://mailstore.rossoalice.alice.it/exchange/Alice000000001264700/Bozze/R:%20R:%20R:%20[GRASS-dev]%20Re:%20Building%20GRASS_xF8FF_QGIS%20with%20MSYS.EML/1_text.htm></HEAD>
<BODY>
<DIV id=idOWAReplyText93385 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Thanks again,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>I'll rebuild a brand new msys environment, with the following sequece:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>01) Flex and Bison</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>02) Paul Kelly's precompiled grass-extralibs, including:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>- zlib.1.2.3</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>- libpng-1.2.16-noconfig</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>- xdr-4.0-mingw2</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>- freetype-2.3.4</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>- fftw-2.1.5</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>- PDCurses-3.1</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>- proj-4.5.0</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>- gdal-1.4.1</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>03) GEOS</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>04) SQLite</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>05) GSL</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>06) Expat</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>07) PostgreSQL</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>08) GDAL Level One</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>09) Tcl/Tk</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>10) GRASS (with postgresql, sqlite and tcl/tk support enabled)</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>11) GDAL Level Two</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Best Regards,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>MP</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Da:</B> grass-dev-bounces@lists.osgeo.org per conto di Benjamin Ducke<BR><B>Inviato:</B> mar 05/02/2008 13.39<BR><B>A:</B> GRASS devel<BR><B>Oggetto:</B> Re: R: R: [GRASS-dev] Re: Building GRASS/QGIS with MSYS<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>&gt; the last doubt is if those options are needed for qgis+grass building.<BR>&gt; I'all ask to qgis-dev<BR><BR>They aren't.<BR><BR>&gt;&nbsp;<BR>&gt; another questions: reading BuildingWindowsBinaryOnLinux QgisWiki, I<BR>&gt; noticed that the guide tells to build all the libs (XDR, ZLIB, PROJ.4<BR>&gt; first, included in Paul Kelly's prebuilt-package, and then GEOS, GSL,<BR>&gt; EXPAT, PostgreSQL, GDAL and SQLite) before to build GRASS, while the<BR>&gt; WindowsWiki tells to build/install GEOS, GSL, EXPAT, PostgreSQL and<BR>&gt; SQLite after GRASS and GDAL "Level Two"; could that be another<BR>&gt; WinGrassWiki bug? (I'm sure now that PostgreSQL and SQLite are needed<BR>&gt; before GRASS build!)<BR><BR>Neitjer PostgreSQL nor SQLite are needed for a basic version of<BR>QGIS+GRASS. All other libraries are needed by either GRASS or GDAL<BR>or both to be installed first.<BR><BR>If you want support for SQLite and PostgreSQL and GRASS, you need<BR>to have them installed first, as well.<BR><BR>Benjamin<BR><BR>&gt;&nbsp;<BR>&gt; Many thanks. Best Regards,<BR>&gt;&nbsp;<BR>&gt; MP<BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; *Da:* grass-dev-bounces@lists.osgeo.org per conto di Benjamin Ducke<BR>&gt; *Inviato:* mar 05/02/2008 12.35<BR>&gt; *A:* GRASS devel<BR>&gt; *Oggetto:* Re: R: [GRASS-dev] Re: Building GRASS/QGIS with MSYS<BR>&gt;<BR>&gt;&gt; Probably last "./configure" and "sed" lines are supposed to be done if<BR>&gt;&gt; you set ./configure --with-libtool in the first step?<BR>&gt;<BR>&gt; Yes, that's what I would assume. Without libtool, you have to to delete<BR>&gt; the static libs and exe tools and re-link everything for stage one and<BR>&gt; two -- tedious but works.<BR>&gt;<BR>&gt;&gt;<BR>&gt;&gt; So the real question is: does GDAL need ngpython, xerces, jasper and<BR>&gt;&gt; postresql? (I know grass is needed, but the guide suggest to build GDAL<BR>&gt;&gt; first without it, and then rebuild it with grass support enabled).<BR>&gt;<BR>&gt; GDAL needs none of those for the basic libraries to build. Xerces is an<BR>&gt; XML parser. It's needed for GDAL to be able and access web mapping<BR>&gt; services. NGPython is for GDAL Python bindings. Only interesting if you<BR>&gt; intend to directly script-programm GDAL using Python. Jasper adds<BR>&gt; another raster image format support to GDAL.<BR>&gt;<BR>&gt; You have to first build and install GDAL without GRASS support.<BR>&gt; Then configure and build GRASS (it will detect GDAL correctly and enable<BR>&gt; GDAL support, even though no GRASS support is enabled in GDAL at this<BR>&gt; stage!). Install GRASS. Then&nbsp; reconfigure GDAL with GRASS support, build<BR>&gt; and install again. That should do it.<BR>&gt;<BR>&gt; Benjamin<BR>&gt;<BR>&gt;&gt;<BR>&gt;&gt; Thanks,<BR>&gt;&gt;<BR>&gt;&gt; MP<BR>&gt;&gt;<BR>&gt;&gt; ------------------------------------------------------------------------<BR>&gt;&gt;<BR>&gt;&gt; *Da:* grass-dev-bounces@lists.osgeo.org per conto di Benjamin Ducke<BR>&gt;&gt; *Inviato:* mar 05/02/2008 11.39<BR>&gt;&gt; *Cc:* grass-dev@lists.osgeo.org<BR>&gt;&gt; *Oggetto:* Re: [GRASS-dev] Re: Building GRASS/QGIS with MSYS<BR>&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Now the question: is with-libtool necessary for gdal? because there are<BR>&gt;&gt;<BR>&gt;&gt; It's not. In fact, the GDAL developers recommend turning it off for<BR>&gt;&gt; MSYS. As a consequence, you have to re-link the GDAL library files<BR>&gt;&gt; after successful compilation in order to get shared Win32 DLLs.<BR>&gt;&gt;<BR>&gt;&gt;&gt; some things not clear to me about this passage.. after building gdal<BR>&gt;&gt;&gt; level one, it says:<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; ./configure --with-ngpython --with-xerces=/local/ --with-jasper=/local/<BR>&gt;&gt;&gt; --with-grass=/local/grass-6.3.cvs/<BR>&gt;&gt; --with-pg=/local/pgsql/bin/pg_config.exe<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; 1) neither python nor grass and postgresql are install at this step of<BR>&gt;&gt;&gt; the guide; how could that be? do I really need this "line" and the<BR>&gt;&gt;&gt; following "sed"?<BR>&gt;&gt;<BR>&gt;&gt; I guess the guide assumes some software to be available in your MSYS<BR>&gt;&gt; installation already. Do you require postgresql and python support?<BR>&gt;&gt;<BR>&gt;&gt;&gt; But also with the following warnings:<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; configure: warning: *** Unable to locate iconv() function.<BR>&gt;&gt;&gt; configure: warning: *** Unable to locate socket() function.<BR>&gt;&gt;&gt; configure: warning: *** --with-opengl=windows is untested.<BR>&gt;&gt;&gt; I decided to add Tcl/Tk support to be able to test some new grass<BR>&gt;&gt;&gt; modules I added before to be "qgis ready";<BR>&gt;&gt;<BR>&gt;&gt; Those are harmless as long as you don't need internationalized messages<BR>&gt;&gt; in GRASS.<BR>&gt;&gt;<BR>&gt;&gt; Benjamin<BR>&gt;&gt; --<BR>&gt;&gt; Benjamin Ducke, M.A.<BR>&gt;&gt; Archäoinformatik<BR>&gt;&gt; (Archaeoinformation Science)<BR>&gt;&gt; Institut für Ur- und Frühgeschichte<BR>&gt;&gt; (Inst. of Prehistoric and Historic Archaeology)<BR>&gt;&gt; Christian-Albrechts-Universität zu Kiel<BR>&gt;&gt; Johanna-Mestorf-Straße 2-6<BR>&gt;&gt; D 24098 Kiel<BR>&gt;&gt; Germany<BR>&gt;&gt;<BR>&gt;&gt; Tel.: ++49 (0)431 880-3378 / -3379<BR>&gt;&gt; Fax : ++49 (0)431 880-7300<BR>&gt;&gt; www.uni-kiel.de/ufg<BR>&gt;&gt;<BR>&gt;&gt; _______________________________________________<BR>&gt;&gt; grass-dev mailing list<BR>&gt;&gt; grass-dev@lists.osgeo.org<BR>&gt;&gt; <A href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</A><BR>&gt;&gt;<BR>&gt;<BR>&gt; --<BR>&gt; Benjamin Ducke, M.A.<BR>&gt; Archäoinformatik<BR>&gt; (Archaeoinformation Science)<BR>&gt; Institut für Ur- und Frühgeschichte<BR>&gt; (Inst. of Prehistoric and Historic Archaeology)<BR>&gt; Christian-Albrechts-Universität zu Kiel<BR>&gt; Johanna-Mestorf-Straße 2-6<BR>&gt; D 24098 Kiel<BR>&gt; Germany<BR>&gt;<BR>&gt; Tel.: ++49 (0)431 880-3378 / -3379<BR>&gt; Fax : ++49 (0)431 880-7300<BR>&gt; www.uni-kiel.de/ufg<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; grass-dev mailing list<BR>&gt; grass-dev@lists.osgeo.org<BR>&gt; <A href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</A><BR>&gt;<BR><BR>--<BR>Benjamin Ducke, M.A.<BR>Archäoinformatik<BR>(Archaeoinformation Science)<BR>Institut für Ur- und Frühgeschichte<BR>(Inst. of Prehistoric and Historic Archaeology)<BR>Christian-Albrechts-Universität zu Kiel<BR>Johanna-Mestorf-Straße 2-6<BR>D 24098 Kiel<BR>Germany<BR><BR>Tel.: ++49 (0)431 880-3378 / -3379<BR>Fax : ++49 (0)431 880-7300<BR>www.uni-kiel.de/ufg<BR><BR>_______________________________________________<BR>grass-dev mailing list<BR>grass-dev@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</A><BR></FONT></P></DIV></BODY></HTML>