[GRASS5] Re: [winGRASS] libG11

Hi all

GREAT NEWS.... the native windows GRASS display driver is working!!

Many, many thanks to all contributors for this major step. I am aware
that the new windriver is not finished, but d.rast and d.vect are working
so far (I'll test more now).

Here my latest build instruction (note: I have added a convenient
Gmakefile in src/disply/devices/windows/ and fixed some .h files
(dos2unix) and the Makefiles for libG11, find in CVS).

If other want to try, you may proceed as follows:
(file is src/display/devices/windows/INSTALL-WIN, please improve if
required)

-------------------------------------------------------------
$Id: INSTALL-WIN,v 1.1.2.3 2001/10/02 12:12:13 markus Exp $

From: "Mike Thomas" <miketh@brisbane.paradigmgeo.com>
Re: [winGRASS] Re: generic Windows GRASS driver
Slightly updated by Markus Neteler

1. setting up cygwin

See instructions:
http://grass.ttc.it/grass5/binary/windows_cygnus/cygwin_grass50compile.html

The X stuff and the TCL/TK stuff are not relevant if you are doing a Win32
native driver - so save yourself some time there.

My configure script:
--------------------------
#! /bin/bash -ef
CFLAGS=-g ./configure --enable-postgres=no --with-tcltk-libs=/usr/local/lib --with-tcltk-includes=/usr/local/include --with-gdal --with-postgres-includes=/usr/include/postgresql --with-postgres-libs=/lib >& configure.log
---------------------------

Then build GRASS:
make

3. compile libG11 (native windows display driver .dll)

$ `pwd`/bin.i686-pc-cygwin/gmake5 `pwd`/src/display/devices/windows

4. recompile Xdriver

These changes in "src/CMD/head/head.i686-pc-cygwin" required:

COMPILE_FLAGS = -O -D__W98__
LDFLAGS =
XCFLAGS = -I/grass5.0.0pre2/grass/src/display/devices/windows/libW11

XLIBPATH = -L/grass5.0.0pre2/grass/src/display/devices/windows/libW11/lib
XLIB = -lX11
XTLIB =
XMLIB =
XEXTRALIBS =
XTLIBPATH =
XMLIBPATH =

PART 3 - Rebuilding "display/devices", "d.mon" etc

3.a XDriver:
Delete all the "OBJ.i686-pc-cygwin/*" files

cd src/display/devices
find . -type d -name 'OBJ.*' -exec rm -rf {} \;
$ `pwd`/bin.i686-pc-cygwin/gmake5

3.b d.mon

Likewise d.mon, although probably unnecessary, although the __W98__ changes
affect it.

Delete all the "OBJ.i686-pc-cygwin/*" files

cd src/display/d.mon
find . -type d -name 'OBJ.*' -exec rm -rf {} \;
$ `pwd`/bin.i686-pc-cygwin/gmake5

Start Grass, and type "d.mon x0" - you should get a bunch of debugging
output and a display. Happy testing...

GREAT WORK!!!

Thanks again.... Congrats!

Markus Neteler

For everyone who is testing out the new native windows code:

I've just loaded to CVS a bug fix to the libG11 code that fixes the windows
memory leak in interactive calls. Please update your copy of
libW11/w32/xlib.c and remake the library to get more enjoyment of the code.

This is (WAS) a fatal bug as you may have noted from some of the winGRASS
list postings (from the original code - not any of Mike or my fixes :slight_smile: ).

Keep on testing.

Enjoy,

Malcolm

PS I have cleaned up the event handling as per Glynn's advice, but it still
needs some work.

-----Original Message-----
From: wingrass-admin@grass.itc.it [mailto:wingrass-admin@grass.itc.it]On
Behalf Of Markus Neteler
Sent: Tuesday, October 02, 2001 9:12 AM
To: Mike Thomas
Cc: Malcolm Blue; Roberto Flor; Glynn Clements; wingrass@grass.itc.it;
grass5 developers list
Subject: Re: [winGRASS] libG11

Hi all

GREAT NEWS.... the native windows GRASS display driver is working!!

Many, many thanks to all contributors for this major step. I am aware
that the new windriver is not finished, but d.rast and d.vect are working
so far (I'll test more now).

Here my latest build instruction (note: I have added a convenient
Gmakefile in src/disply/devices/windows/ and fixed some .h files
(dos2unix) and the Makefiles for libG11, find in CVS).

If other want to try, you may proceed as follows:
(file is src/display/devices/windows/INSTALL-WIN, please improve if
required)

-------------------------------------------------------------
$Id: INSTALL-WIN,v 1.1.2.3 2001/10/02 12:12:13 markus Exp $

From: "Mike Thomas" <miketh@brisbane.paradigmgeo.com>
Re: [winGRASS] Re: generic Windows GRASS driver
Slightly updated by Markus Neteler

1. setting up cygwin

See instructions:
http://grass.ttc.it/grass5/binary/windows_cygnus/cygwin_grass50com
pile.html

The X stuff and the TCL/TK stuff are not relevant if you are doing a Win32
native driver - so save yourself some time there.

My configure script:
--------------------------
#! /bin/bash -ef
CFLAGS=-g ./configure --enable-postgres=no
--with-tcltk-libs=/usr/local/lib
--with-tcltk-includes=/usr/local/include --with-gdal
--with-postgres-includes=/usr/include/postgresql
--with-postgres-libs=/lib >& configure.log
---------------------------

Then build GRASS:
make

> 3. compile libG11 (native windows display driver .dll)

$ `pwd`/bin.i686-pc-cygwin/gmake5 `pwd`/src/display/devices/windows

> 4. recompile Xdriver

These changes in "src/CMD/head/head.i686-pc-cygwin" required:

COMPILE_FLAGS = -O -D__W98__
LDFLAGS =
XCFLAGS =
-I/grass5.0.0pre2/grass/src/display/devices/windows/libW11

XLIBPATH =
-L/grass5.0.0pre2/grass/src/display/devices/windows/libW11/lib
XLIB = -lX11
XTLIB =
XMLIB =
XEXTRALIBS =
XTLIBPATH =
XMLIBPATH =

PART 3 - Rebuilding "display/devices", "d.mon" etc

3.a XDriver:
Delete all the "OBJ.i686-pc-cygwin/*" files

cd src/display/devices
find . -type d -name 'OBJ.*' -exec rm -rf {} \;
$ `pwd`/bin.i686-pc-cygwin/gmake5

3.b d.mon

Likewise d.mon, although probably unnecessary, although the
__W98__ changes
affect it.

Delete all the "OBJ.i686-pc-cygwin/*" files

cd src/display/d.mon
find . -type d -name 'OBJ.*' -exec rm -rf {} \;
$ `pwd`/bin.i686-pc-cygwin/gmake5

Start Grass, and type "d.mon x0" - you should get a bunch of debugging
output and a display. Happy testing...

GREAT WORK!!!

Thanks again.... Congrats!

Markus Neteler
_______________________________________________
winGRASS mailing list
winGRASS@grass.itc.it
http://grass.itc.it/mailman/listinfo/wingrass

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

For everyone who is testing out the new native windows code:

I've just loaded to CVS a bug fix to the libG11 code that fixes the windows
memory leak in interactive calls. Please update your copy of
libW11/w32/xlib.c and remake the library to get more enjoyment of the code.

This is (WAS) a fatal bug as you may have noted from some of the winGRASS
list postings (from the original code - not any of Mike or my fixes :slight_smile: ).

Keep on testing.

Enjoy,

Malcolm

PS I have cleaned up the event handling as per Glynn's advice, but it still
needs some work.

-----Original Message-----
From: wingrass-admin@grass.itc.it [mailto:wingrass-admin@grass.itc.it]On
Behalf Of Markus Neteler
Sent: Tuesday, October 02, 2001 9:12 AM
To: Mike Thomas
Cc: Malcolm Blue; Roberto Flor; Glynn Clements; wingrass@grass.itc.it;
grass5 developers list
Subject: Re: [winGRASS] libG11

Hi all

GREAT NEWS.... the native windows GRASS display driver is working!!

Many, many thanks to all contributors for this major step. I am aware
that the new windriver is not finished, but d.rast and d.vect are working
so far (I'll test more now).

Here my latest build instruction (note: I have added a convenient
Gmakefile in src/disply/devices/windows/ and fixed some .h files
(dos2unix) and the Makefiles for libG11, find in CVS).

If other want to try, you may proceed as follows:
(file is src/display/devices/windows/INSTALL-WIN, please improve if
required)

-------------------------------------------------------------
$Id: INSTALL-WIN,v 1.1.2.3 2001/10/02 12:12:13 markus Exp $

From: "Mike Thomas" <miketh@brisbane.paradigmgeo.com>
Re: [winGRASS] Re: generic Windows GRASS driver
Slightly updated by Markus Neteler

1. setting up cygwin

See instructions:
http://grass.ttc.it/grass5/binary/windows_cygnus/cygwin_grass50com
pile.html

The X stuff and the TCL/TK stuff are not relevant if you are doing a Win32
native driver - so save yourself some time there.

My configure script:
--------------------------
#! /bin/bash -ef
CFLAGS=-g ./configure --enable-postgres=no
--with-tcltk-libs=/usr/local/lib
--with-tcltk-includes=/usr/local/include --with-gdal
--with-postgres-includes=/usr/include/postgresql
--with-postgres-libs=/lib >& configure.log
---------------------------

Then build GRASS:
make

> 3. compile libG11 (native windows display driver .dll)

$ `pwd`/bin.i686-pc-cygwin/gmake5 `pwd`/src/display/devices/windows

> 4. recompile Xdriver

These changes in "src/CMD/head/head.i686-pc-cygwin" required:

COMPILE_FLAGS = -O -D__W98__
LDFLAGS =
XCFLAGS =
-I/grass5.0.0pre2/grass/src/display/devices/windows/libW11

XLIBPATH =
-L/grass5.0.0pre2/grass/src/display/devices/windows/libW11/lib
XLIB = -lX11
XTLIB =
XMLIB =
XEXTRALIBS =
XTLIBPATH =
XMLIBPATH =

PART 3 - Rebuilding "display/devices", "d.mon" etc

3.a XDriver:
Delete all the "OBJ.i686-pc-cygwin/*" files

cd src/display/devices
find . -type d -name 'OBJ.*' -exec rm -rf {} \;
$ `pwd`/bin.i686-pc-cygwin/gmake5

3.b d.mon

Likewise d.mon, although probably unnecessary, although the
__W98__ changes
affect it.

Delete all the "OBJ.i686-pc-cygwin/*" files

cd src/display/d.mon
find . -type d -name 'OBJ.*' -exec rm -rf {} \;
$ `pwd`/bin.i686-pc-cygwin/gmake5

Start Grass, and type "d.mon x0" - you should get a bunch of debugging
output and a display. Happy testing...

GREAT WORK!!!

Thanks again.... Congrats!

Markus Neteler
_______________________________________________
winGRASS mailing list
winGRASS@grass.itc.it
http://grass.itc.it/mailman/listinfo/wingrass

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

Hi all,

For those who are testing the native windows XDRIVER, there are some strange
behaviors which still need to be fixed. Some suggestions if you run into
trouble:

d.zoom seems to act strangely and zooms in too far sometimes (I think we
need to correct Pixmap to screen conversion, I just haven't had a chance to
look): To fix improper zooms, either use g.region or fix with an X Window
version. You can also usually zoom out several times to fix it. For now
don't zoom in to too a small region.

Sometimes the screen doesn't refresh when expected. Resizing the screen
'usually' refreshes the screen, but for me only stretching horizontally, not
vertically. So to do a redraw grab the side of the window and resize it a
bit. (I have partial fix for this, but will need to do more testing and fix
the other RESIZE/REPAINT events before submitting)

There are other strange behaviors, but right now I don't have my linux
version to compare to so I'm not sure what is the correct behavior. Please
report problems as you find them to this list.

Be sure that you are using the latest version, since there were some fatal
errors from the original version.

Malcolm

-----Original Message-----
From: grass5-admin@grass.itc.it [mailto:grass5-admin@grass.itc.it]On
Behalf Of Malcolm Blue
Sent: Tuesday, October 02, 2001 9:58 PM
To: Markus Neteler; Mike Thomas
Cc: Roberto Flor; Glynn Clements; wingrass@grass.itc.it; grass5
developers list
Subject: [GRASS5] RE: [winGRASS] libG11

For everyone who is testing out the new native windows code:

I've just loaded to CVS a bug fix to the libG11 code that fixes
the windows
memory leak in interactive calls. Please update your copy of
libW11/w32/xlib.c and remake the library to get more enjoyment of
the code.

This is (WAS) a fatal bug as you may have noted from some of the winGRASS
list postings (from the original code - not any of Mike or my fixes :slight_smile: ).

Keep on testing.

Enjoy,

Malcolm

PS I have cleaned up the event handling as per Glynn's advice,
but it still
needs some work.

> -----Original Message-----
> From: wingrass-admin@grass.itc.it [mailto:wingrass-admin@grass.itc.it]On
> Behalf Of Markus Neteler
> Sent: Tuesday, October 02, 2001 9:12 AM
> To: Mike Thomas
> Cc: Malcolm Blue; Roberto Flor; Glynn Clements; wingrass@grass.itc.it;
> grass5 developers list
> Subject: Re: [winGRASS] libG11
>
>
> Hi all
>
> GREAT NEWS.... the native windows GRASS display driver is working!!
>
> Many, many thanks to all contributors for this major step. I am aware
> that the new windriver is not finished, but d.rast and d.vect
are working
> so far (I'll test more now).
>
> Here my latest build instruction (note: I have added a convenient
> Gmakefile in src/disply/devices/windows/ and fixed some .h files
> (dos2unix) and the Makefiles for libG11, find in CVS).
>
> If other want to try, you may proceed as follows:
> (file is src/display/devices/windows/INSTALL-WIN, please improve if
> required)
>
> -------------------------------------------------------------
> $Id: INSTALL-WIN,v 1.1.2.3 2001/10/02 12:12:13 markus Exp $
>
> From: "Mike Thomas" <miketh@brisbane.paradigmgeo.com>
> Re: [winGRASS] Re: generic Windows GRASS driver
> Slightly updated by Markus Neteler
>
>
> 1. setting up cygwin
>
> See instructions:
> http://grass.ttc.it/grass5/binary/windows_cygnus/cygwin_grass50com
> pile.html
>
> The X stuff and the TCL/TK stuff are not relevant if you are
doing a Win32
> native driver - so save yourself some time there.
>
> My configure script:
> --------------------------
> #! /bin/bash -ef
> CFLAGS=-g ./configure --enable-postgres=no
> --with-tcltk-libs=/usr/local/lib
> --with-tcltk-includes=/usr/local/include --with-gdal
> --with-postgres-includes=/usr/include/postgresql
> --with-postgres-libs=/lib >& configure.log
> ---------------------------
>
> Then build GRASS:
> make
>
> > 3. compile libG11 (native windows display driver .dll)
>
> $ `pwd`/bin.i686-pc-cygwin/gmake5 `pwd`/src/display/devices/windows
>
> > 4. recompile Xdriver
>
> These changes in "src/CMD/head/head.i686-pc-cygwin" required:
>
>
> COMPILE_FLAGS = -O -D__W98__
> LDFLAGS =
> XCFLAGS =
> -I/grass5.0.0pre2/grass/src/display/devices/windows/libW11
>
> XLIBPATH =
> -L/grass5.0.0pre2/grass/src/display/devices/windows/libW11/lib
> XLIB = -lX11
> XTLIB =
> XMLIB =
> XEXTRALIBS =
> XTLIBPATH =
> XMLIBPATH =
>
>
> PART 3 - Rebuilding "display/devices", "d.mon" etc
>
> 3.a XDriver:
> Delete all the "OBJ.i686-pc-cygwin/*" files
>
> cd src/display/devices
> find . -type d -name 'OBJ.*' -exec rm -rf {} \;
> $ `pwd`/bin.i686-pc-cygwin/gmake5
>
> 3.b d.mon
>
> Likewise d.mon, although probably unnecessary, although the
> __W98__ changes
> affect it.
>
> Delete all the "OBJ.i686-pc-cygwin/*" files
>
> cd src/display/d.mon
> find . -type d -name 'OBJ.*' -exec rm -rf {} \;
> $ `pwd`/bin.i686-pc-cygwin/gmake5
>
>
> Start Grass, and type "d.mon x0" - you should get a bunch of debugging
> output and a display. Happy testing...
>
> GREAT WORK!!!
>
>
> Thanks again.... Congrats!
>
> Markus Neteler
> _______________________________________________
> winGRASS mailing list
> winGRASS@grass.itc.it
> http://grass.itc.it/mailman/listinfo/wingrass
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001