[GRASS-dev] Re: winGRASS

Paul Kelly paul-grass at stjohnspoint.co.uk
Wed Dec 13 08:29:03 EST 2006


Hello Moritz
Comments below.

On Wed, 13 Dec 2006, Moritz Lennert wrote:

> Great job. Thanks for doing this !
>
> I have had the following issues/questions while trying to go through the
> compilation using your tarball of compiled libraries (as comments (Mo:)
> within your compile instructions (Pa:)):
>
> Pa: Download and run the MinGW installer. Let it download and install what
> it needs.
>
> Mo:
>
> - I imagine I have to tell the installer to install g++ and mingw make ?

Hmm, yes. I wasn't sure but as I recall I ticked those boxes yes. I told 
you my notes weren't thorough!

> - I imagine you just forgot to mention the install of msys ?

I mentioned it after pdcurses - don't recall there being any notable 
problems with it hence the briefness of the mention!

> Pa: Also install: flex from gnuwin32.sourceforge.net and put flex.exe in
> Mingw bin directory
>
> Mo: Why not flex from mingw ? And all I need to do is copy flex.exe,
> nothing else ?

I couldn't find flex on the Mingw site. Maybe I was blind. Is it there? 
Yes, just putting the flex.exe in the mingw bin directory worked fine for 
me.

> Pa: Use bison from Mingw as Gnuwin32 bison looks for libintl3.dll
>
> Mo: I did that, but I get this error:
>
> cannot open file `/msys/share/bison/m4sugar/m4sugar.m4': No such file or
> directory
> make[3]: *** [y.tab.h] Error 1
>
> It is in /mingw/share/bison/m4sugar/m4sugar.m4. I don't know why it is
> looking for it in msys ? This causes an error in the compilation of
> libvect and so many consequent errors.

Ah OK. I think I hacked about with that a little bit come to think of it. 
Just put it where it's looking for it ;)

> Mo: What about the shared files from proj, such as epsg (in share
> directory when ./configure&&make&&make install of proj in msys), they are
> not in your tarball

Good point. I should think there is only that one file affected by that 
though. Shared files needed by PROJ and GDAL are generally included with 
GRASS. See earlier discussions on the mailing list today about that EPSG 
file.

> Mo: during compilation, I get many errors concerning unfindable
> libz.dll.1.2.3; apparently program tries to launch db.*  grass exe files
> such as db.columns, etc during compilation. Don't know why.
> After copying all files from c:\forgrass\lib to
> c:\grasssrc\grass6\dist*\lib no more error messages during compilation.
> You mention copying these after compilation. What am I doing wrong ?

Just make sure c:\forgrass\lib is in your PATH before you start compiling 
and it should be fine. I copy them after compilation just to have 
everything self-contained for distributing it to others. As long as the 
DLLs are on your system and in the PATH everything should work.

Also you need to change man/Makefile so it doesn't convert the HTML pages 
to man. The Makefile should be conditionalised so this is dependent on 
Perl being installed. Will look at it later.

Thanks a lot for testing this.

Paul




More information about the grass-dev mailing list