<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=idOWAReplyText89398 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>about the last mail, I'm workig on step 8.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I report that (if previously installed) GEOS support must be disabled in GDAL; it makes building to fail!</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Not sure, but actually possible, either SQLite and PostgreSQL should be disabled too.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>For secure (and not time-wasting) procedure, I built GDAL without GEOS, SQLite and PostgreSQL.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>If GEOS is certainly to set as disabled, no tests have been done enabling SQLite and PostgreSQL; however those two last are not required in GDAL building, even if required (and then enbled) in GRASS building (thanks Moritz).</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I worked with 1.4.1 version of GDAL. It would be interesting to do some testings using latest version of GDAL (1.5), which, as it seems, introduces new useful features.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Regards and thanks all for your support (specially Benjamin, Moritz and Glynn; many thanks)</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </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 marco.pasetti@alice.it<BR><B>Inviato:</B> mar 05/02/2008 14.39<BR><B>A:</B> grass-dev@lists.osgeo.org<BR><B>Oggetto:</B> R: R: R: [GRASS-dev] Re: Building GRASS/QGIS with MSYS<BR></FONT><BR></DIV>
<DIV dir=ltr>
<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> </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> </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> </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> </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> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Best Regards,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </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>> the last doubt is if those options are needed for qgis+grass building.<BR>> I'all ask to qgis-dev<BR><BR>They aren't.<BR><BR>> <BR>> another questions: reading BuildingWindowsBinaryOnLinux QgisWiki, I<BR>> noticed that the guide tells to build all the libs (XDR, ZLIB, PROJ.4<BR>> first, included in Paul Kelly's prebuilt-package, and then GEOS, GSL,<BR>> EXPAT, PostgreSQL, GDAL and SQLite) before to build GRASS, while the<BR>> WindowsWiki tells to build/install GEOS, GSL, EXPAT, PostgreSQL and<BR>> SQLite after GRASS and GDAL "Level Two"; could that be another<BR>> WinGrassWiki bug? (I'm sure now that PostgreSQL and SQLite are needed<BR>> 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>> <BR>> Many thanks. Best Regards,<BR>> <BR>> MP<BR>><BR>> ------------------------------------------------------------------------<BR>> *Da:* grass-dev-bounces@lists.osgeo.org per conto di Benjamin Ducke<BR>> *Inviato:* mar 05/02/2008 12.35<BR>> *A:* GRASS devel<BR>> *Oggetto:* Re: R: [GRASS-dev] Re: Building GRASS/QGIS with MSYS<BR>><BR>>> Probably last "./configure" and "sed" lines are supposed to be done if<BR>>> you set ./configure --with-libtool in the first step?<BR>><BR>> Yes, that's what I would assume. Without libtool, you have to to delete<BR>> the static libs and exe tools and re-link everything for stage one and<BR>> two -- tedious but works.<BR>><BR>>><BR>>> So the real question is: does GDAL need ngpython, xerces, jasper and<BR>>> postresql? (I know grass is needed, but the guide suggest to build GDAL<BR>>> first without it, and then rebuild it with grass support enabled).<BR>><BR>> GDAL needs none of those for the basic libraries to build. Xerces is an<BR>> XML parser. It's needed for GDAL to be able and access web mapping<BR>> services. NGPython is for GDAL Python bindings. Only interesting if you<BR>> intend to directly script-programm GDAL using Python. Jasper adds<BR>> another raster image format support to GDAL.<BR>><BR>> You have to first build and install GDAL without GRASS support.<BR>> Then configure and build GRASS (it will detect GDAL correctly and enable<BR>> GDAL support, even though no GRASS support is enabled in GDAL at this<BR>> stage!). Install GRASS. Then reconfigure GDAL with GRASS support, build<BR>> and install again. That should do it.<BR>><BR>> Benjamin<BR>><BR>>><BR>>> Thanks,<BR>>><BR>>> MP<BR>>><BR>>> ------------------------------------------------------------------------<BR>>><BR>>> *Da:* grass-dev-bounces@lists.osgeo.org per conto di Benjamin Ducke<BR>>> *Inviato:* mar 05/02/2008 11.39<BR>>> *Cc:* grass-dev@lists.osgeo.org<BR>>> *Oggetto:* Re: [GRASS-dev] Re: Building GRASS/QGIS with MSYS<BR>>><BR>>>><BR>>>> Now the question: is with-libtool necessary for gdal? because there are<BR>>><BR>>> It's not. In fact, the GDAL developers recommend turning it off for<BR>>> MSYS. As a consequence, you have to re-link the GDAL library files<BR>>> after successful compilation in order to get shared Win32 DLLs.<BR>>><BR>>>> some things not clear to me about this passage.. after building gdal<BR>>>> level one, it says:<BR>>>><BR>>>> ./configure --with-ngpython --with-xerces=/local/ --with-jasper=/local/<BR>>>> --with-grass=/local/grass-6.3.cvs/<BR>>> --with-pg=/local/pgsql/bin/pg_config.exe<BR>>>><BR>>>> 1) neither python nor grass and postgresql are install at this step of<BR>>>> the guide; how could that be? do I really need this "line" and the<BR>>>> following "sed"?<BR>>><BR>>> I guess the guide assumes some software to be available in your MSYS<BR>>> installation already. Do you require postgresql and python support?<BR>>><BR>>>> But also with the following warnings:<BR>>>><BR>>>> configure: warning: *** Unable to locate iconv() function.<BR>>>> configure: warning: *** Unable to locate socket() function.<BR>>>> configure: warning: *** --with-opengl=windows is untested.<BR>>>> I decided to add Tcl/Tk support to be able to test some new grass<BR>>>> modules I added before to be "qgis ready";<BR>>><BR>>> Those are harmless as long as you don't need internationalized messages<BR>>> in GRASS.<BR>>><BR>>> Benjamin<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>>><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>><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></DIV></BODY></HTML>