[GRASS-user] MS-Windows native GRASS & shell scripts

Glynn Clements glynn at gclements.plus.com
Tue Sep 26 11:48:59 EDT 2006


Moritz Lennert wrote:

> > By the way, I think PostgreSQL is absolute overkill 
> > for Windows.
> 
> I agree, but Huidae said:
> 
>  > PostgreSQL is required since some of modules are linked against their
>  > libraries.

The only GRASS components which require PostgreSQL are the PostgreSQL
DBMI driver and (optionally) NVIZ.

The standard procedure for GRASS binary packages (on all platforms)
has always been to build NVIZ without PostgreSQL support. If the
WinGRASS binary package has an NVIZ binary which requires pq.dll,
that's a mistake on Huidae's part.

The ideal solution is to first build using --without-postgresql, then
build the PostgreSQL DBMI driver separately. If that's too much
effort, then omitting the PostgreSQL DBMI driver is preferable to
requiring PostgreSQL in order for NVIZ to work.

> Huidae, would it be possible to limit this to some runtime libraries, 
> and not the entire postgresql server ?

It's possible to eliminate the PostgreSQL dependency altogether. Even
if NVIZ requires pq.dll, it doesn't require the server.

> I also find that MSYS is a pretty heavy dependency (several hundreds of 
> MB...). Could that be trimmed down in any way ?

MSys itself is around 6 MiB uncompressed.

Right now, the biggest factor in the size of a WinGRASS binary package
is the use of static libraries. If we can get DLLs to work, that will
cut it down a lot.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list