[GRASS-windows] Compiling grass7 on msys/mingw?

Colin Nielsen colin.nielsen at gmail.com
Wed Dec 17 13:17:43 EST 2008


I compiled my own grass 6.3 long ago using the steps provided by Marco
Pasetti using the following:
./configure  --prefix=/usr/local --with-includes=/usr/local/include
--with-libs=/usr/local/lib --disable-x11 --without-jpeg --without-x
--with-cxx --enable-shared --enable-largefile --with-opengl=windows
--with-fftw --with-freetype --with-proj-share=/usr/local/share/proj
--with-gdal=/usr/local/bin/gdal-config --with-tcltk
--with-tcltk-includes=/usr/local/tcl-tk/include
--with-tcltk-libs=/usr/local/tcl-tk/bin --with-sqlite
--with-sqlite-includes=/usr/local/sqlite/include
--with-sqlite-libs=/usr/local/sqlite/lib --with-postgres
--with-postgres-includes=/usr/local/pgsql/include
--with-postgres-libs=/usr/local/pgsql/lib

This worked well although as I remember I made a modification or two
from the original instructions. So now with the same instructions I'm
trying to compile grass7. It stops when it hits an error on XDR:
checking for xdrmem_create... no
checking for xdrmem_create in -lsun... no
checking for xdrmem_create in -lnsl... no
checking for xdrmem_create in -lrpclib... no
checking for xdrmem_create in -lxdr... no
configure: error: *** Unable to locate XDR functions.

I originally installed the "xdr-4.0-mingw2" package and also just
tried "sunrpc-4.0-bin" as I saw on a list somewhere but neither seem
to fix it. In /usr/local/include/rpc there is xdr.h but for some
reason configure isn't finding it. Any advice? Are there other reasons
I should give up on a grass7 build that I'm not aware of? Thanks.

-Colin


More information about the grass-windows mailing list