[GRASS-dev] Re: winGRASS

Moritz Lennert mlennert at club.worldonline.be
Wed Dec 13 08:17:24 EST 2006


Paul,

On Tue, December 12, 2006 21:58, Paul Kelly wrote:
> Hello Moritz
> I've got a bit further with documenting what I was doing. See attached for
> some of my notes. Mostly on compiling the accompanying libraries GRASS
> absolutely needs:
> XDR
> Zlib
> libpng
> PROJ.4
> GDAL
>
> I put these into a gzipped tar file in case anybody would like to get
> started quickly - in this case you would just need Msys,Mingw with bison
> and flex. Everything else included in here:
> http://www.stjohnspoint.co.uk/grass/wingrass-extralibs.tar.gz
> and then the prefix where you untar that file you will need to supply to
> the GRASS configure as:
> --with-includes=prefix --with-libs=prefix
> FWIW my configure line was:
> ./configure --prefix=c:/grass --bindir=c:/grass/bin \
> --with-includes=/c/grass/forgrass/include \
> --with-libs=/c/grass/forgrass/lib --with-cxx --without-jpeg --without-tiff
> \
> --without-postgres --with-opengl=windows --without-fftw --without-x \
> --enable-x11=no --enable-shared=yes --with-tcltk-includes=/c/tcl/include \
> --with-tcltk-libs=/c/tcl/bin
>
> After compiling you should copy libxdr.dll, libproj.dll, libpng.dll,
> libgdal-1.dll and libz.dll.1.2.3 into the GRASS lib directory and all the
> GDAL and PROJ .exe files in the bin directory into the GRASS bin
> directory, and then you have a more or less self-contained GRASS
> distribution.

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 ?
- I imagine you just forgot to mention the install of msys ?


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 ?

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.

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

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 ?

Moritz





More information about the grass-dev mailing list