[winGRASS] libG11

Malcolm Blue mblue at nb.sympatico.ca
Tue Oct 2 20:54:20 EDT 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 :) ).

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 at grass.itc.it [mailto:wingrass-admin at 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 at 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 at 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 at 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




More information about the grass-windows mailing list