[GRASSLIST:179] can't start mon under WinGeneric but can under X11

I've just downloaded and compiled GRASS5.0.2 (time to get to work again..)
(WinXP) with the following options:

./configure --without-gd --without-odbc --without-fftw

GRASS is now configured for i686-pc-cygwin

  Source directory: /cygdrive/c/grass/grass5.0.2
  Build directory: /cygdrive/c/grass/grass5.0.2
  Installation directory: /usr/local/grass5
  C compiler: gcc -g -O2
  FORTRAN compiler: g77

  NVIZ: yes

  X11 support: yes
  DBM support: no
  JPEG support: yes
  TIFF support: yes
  PNG support: yes
  GD support: no
  Tcl/Tk support: yes
  PostgreSQL support: yes
  OpenGL(R) support: yes
  ODBC support: no
  FFTW support: no
  BLAS support: no
  LAPACK support: no
  Motif support: no
  FreeType support: no
  GLw support: no
  NLS support: no
  Readline support: no

and then,
make
make install

and everything went according to plan. I successfully started GRASS, and
attempted to start a display monitor and got the following message:

GRASS:/cygdrive/c/grass/grass5.0.2 > d.mon start=x0
ERROR: Graph_Set: can't open Display
No socket to connect to for monitor <x0>.
Problem selecting x0. Will try once more
No socket to connect to for monitor <x0>.
GRASS:/cygdrive/c/grass/grass5.0.2 > d.mon start=x0

and got the same message. When I started X11 (under cygwin) and ran the same
commands I got a display window and could display a map. I *do* only want to
run the generic version though (less junk on the WinXP machine to deal
with).

When I installed cygwin (new WinXP laptop) I installed everything, even the
XFree86 files from the cygwin installer, not separately like I recall doing
earlier (a year or two ago). I read from the posting threads there was some
problems getting the monitors working but could figure out if they were
applicable.

In addition, the only command I ran other that the ./configure, make and
make install, was "ln -s /bin/less /bin/more" and have ignored all the other
commands in step 5 so far. I'm sure it's not perfect, but I like to test the
"idiot-proofing" when I do these types of installations.

PS. I did install the dll Mike Thomas sent me on my old Win2K machine
running the generic grass build and it works great. Thanks!

Any ideas?
Jeff.

Jeff D. Hamann wrote:

I've just downloaded and compiled GRASS5.0.2 (time to get to work again..)
(WinXP) with the following options:

./configure --without-gd --without-odbc --without-fftw

[snip]

I *do* only want to
run the generic version though (less junk on the WinXP machine to deal
with).

You need --enable-w11 to get the "generic" XDRIVER.

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

tried that and still get the same results....

GRASS:~ > d.mon start=x0
ERROR: Graph_Set: can't open Display
No socket to connect to for monitor <x0>.
Problem selecting x0. Will try once more
No socket to connect to for monitor <x0>.
GRASS:~ >

./configure --without-gd --without-odbc --without-fftw -enable-w11

wouldn't configure without the opengl so I configured with:

./configure --without-gd --without-odbc --without-fftw -enable-w11 --without
-opengl

it configured and installed but I still get the same problem...

Thanks,
Jeff.

----- Original Message -----
From: "Glynn Clements" <glynn.clements@virgin.net>
To: "Jeff D. Hamann" <jeff_hamann@hamanndonald.com>
Cc: <grasslist@baylor.edu>
Sent: Sunday, May 25, 2003 3:56 PM
Subject: Re: [GRASSLIST:179] can't start mon under WinGeneric but can under
X11

Jeff D. Hamann wrote:

> I've just downloaded and compiled GRASS5.0.2 (time to get to work

again..)

> (WinXP) with the following options:
>
> ./configure --without-gd --without-odbc --without-fftw

[snip]

> I *do* only want to
> run the generic version though (less junk on the WinXP machine to deal
> with).

You need --enable-w11 to get the "generic" XDRIVER.

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

Jeff D. Hamann wrote:

tried that and still get the same results....

GRASS:~ > d.mon start=x0
ERROR: Graph_Set: can't open Display
No socket to connect to for monitor <x0>.
Problem selecting x0. Will try once more
No socket to connect to for monitor <x0>.
GRASS:~ >

./configure --without-gd --without-odbc --without-fftw -enable-w11

wouldn't configure without the opengl so I configured with:

./configure --without-gd --without-odbc --without-fftw -enable-w11 --without
-opengl

it configured and installed but I still get the same problem...

You need to rebuild the affected programs. The simple (but slow)
solution is to do "make distclean" then re-do the whole process.

  make distclean
  ./configure ...
  make
  make install

The faster approach (but easier to get wrong) is to manually delete
the affected files, then rebuild only those programs, e.g.

  ./configure ...
  cp -f src/CMD/head/head src/CMD/head/head.i686-pc-cygwin
  rm -f src/display/d.mon/pgms/OBJ.i686-pc-cygwin/*.o
  rm -f src/display/devices/XDRIVER/XDRIVER24/OBJ.i686-pc-cygwin/*.o
  gmake5 -i src/display/d.mon
  gmake5 -i src/display/devices/XDRIVER

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