[GRASS-user] MS-Windows native GRASS & shell scripts
Moritz Lennert
mlennert at club.worldonline.be
Thu Sep 28 05:15:11 EDT 2006
Glynn Clements wrote:
> 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, I obviously didn't make the difference between Msys and the rest
of the installed packages. Looking into this more deeply shows that of
the 194MB in my MSYS directory,
170MB are in local
of which
50MB are in grass
and
80MB in lib
of which
54MB just for libgeos.a
There is also a libgeos-2.dll in local/bin which is another 10MB.
Do we need libgeos for GRASS, or is this for PostgreSQL/PostGIS ?
> 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.
I imagine this concerns the executables in the local/grass/bin directory
which are on average 10x the size of the equivalent Linux modules.
Moritz
More information about the grass-user
mailing list