[GRASS5] Re: [winGRASS] libG11

Markus Neteler neteler at itc.it
Tue Oct 2 08:11:31 EDT 2001

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

$Id: INSTALL-WIN,v 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:

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:

> 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...


Thanks again.... Congrats!

 Markus Neteler

More information about the grass-dev mailing list