[GRASS5] Re: [winGRASS] cygwin and winGRASS status update

Now to the technical details again,

External libraries:
The only strictly required library to compile GRASS on cygwin is
currently the sunrpc-4.0cygwin1 (rpc-4.0) library of Corinna Vinschen.
But i can not recompile the source on cygwin 1.3.2/Windows 2000. But the
related modules and gislib work without problems, so i think thats no
problem.

Other Libraries:
gdal lib: required for r.in.gdal.
does not compile (version 1.1.4), undefined reference to libtiff.

gd lib: required for PNGDriver.
Version 2.0.0 does not compile, some strange error.
Version 1.8.4 compiles without jpeg support, install does not work
(*.exe files).
Library builds, PNGdriver compiles.
But does not work for the same reason the X Driver does not work.

ODBC lib: required for ODBC modules/driver
needs sys/ipc.h i.e. SysV IPC to compile.

PostgreSQL: required for PostgreSQL modules, distributed with cygwin.
compilation dies with "ARG_MAX" undeclared in main.c of d.site.pg.

openGL: required for NVIZ 2.2, distributed with cygwin/XFree86
NVIZ 2.2 seems to compile, but at the linking stage it dies with masses
of undefined references to "gl..." functions in togl.c.
Hmm, configure seems only to create the paths in the header file, not
the references to the libraries (-lGL etc.).
I am now able to compile, but nviz does not start due to problem with
the tclsh (and the cygitclsh30, too).

Ok, so far for the libraries.

I can confirm that winGRASS (GRASS5.0pre1, cygwin 1.3.2, cygwin/XFree86
4.1.0) works with the XFree Server except for the Monitor Drivers (X
Driver, PNGDriver etc.). Tcltkgrass works with the recompiled xtcltk
package that i provided, as far as i could test without a graphical
monitor.

Downgrading from recent StarNet XWin to version 4.1 does not help, i
think the problem is within the sockets setup of cygwin.

So the main thing is IMHO to fix the sockets problem with the graphical
drivers. I have no clue with sockets programming, so perhaps someone can
help here.

cu,

Andreas

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

Andreas Lange wrote:

PostgreSQL: required for PostgreSQL modules, distributed with cygwin.
compilation dies with "ARG_MAX" undeclared in main.c of d.site.pg.

Looks like a Cygwin bug (ARG_MAX is supposed to be defined by
inclusion of <limits.h>); it should be reported to the Cygwin
maintainers.

I can confirm that winGRASS (GRASS5.0pre1, cygwin 1.3.2, cygwin/XFree86
4.1.0) works with the XFree Server except for the Monitor Drivers (X
Driver, PNGDriver etc.). Tcltkgrass works with the recompiled xtcltk
package that i provided, as far as i could test without a graphical
monitor.

Downgrading from recent StarNet XWin to version 4.1 does not help, i
think the problem is within the sockets setup of cygwin.

So the main thing is IMHO to fix the sockets problem with the graphical
drivers. I have no clue with sockets programming, so perhaps someone can
help here.

I've been responsible for most of the recent changes to XDRIVER.
However, I don't have a Windows box, so I can't perform tests with
Cygwin. However, if you can provide me with information as to what's
happening within the programs, I might be able to suggest changes.

For reference, the files which are most likely to be relevant are:

  src/display/devices/lib/main.c
  src/display/devices/lib/connect_sock.c
  src/libes/raster/io.c

--
Glynn Clements <glynn.clements@virgin.net>