IRIX 5 GRASS
Bill Brown
brown at diego.cecer.army.mil
Thu Aug 11 14:51:12 EDT 1994
Kurt,
I compiled GRASS for IRIX 5.2 a few weeks ago. Here's my compilation
notes:
--------------------------------------------------------------------------
A few compile problems:
To fix the i.points, i.ortho.photo, i.vpoints problem:
make the function "screen" in the files "mark.c" a non-static function.
(Just delete the keyword "static" where the function is defined)
These files need to get this fix:
src/imagery/i.points/mark.c
src.alpha/imagery/i.ortho.photo/photo.2image/mark.c
src.alpha/imagery/i.ortho.photo/photo.2target/mark.c
src.alpha/imagery/i.vpoints/mark.c
To compile xgrass, I needed to use these XCFLAGS:
XCFLAGS = -D_NO_PROTO -DXM_1_1_BC -Umips
To compile v.digit, I needed to remove this dependancy from the Gmakefile:
menus.o: menus.i
Everything else compiled OK.
xdigit did not work correctly when run. To fix I added this test in the
function init_graphics() in the file src/xgrass/xdigit/draw.c : (~line 76)
if(XtIsRealized(canvas)){
/* ...body of function... */
}
--------------------------------------------------------------------------
This is the head file I used:
CC = cc
ARCH = sgi5
GISBASE = /GRASS.bin/4.1/sgi5
UNIX_BIN = /usr/local/bin
DEFAULT_DATABASE = /data/foghorn/4.0
DEFAULT_LOCATION = spearfish
COMPILE_FLAGS = -O -cckr
LDFLAGS = -s
XCFLAGS = -D_NO_PROTO -DXM_1_1_BC -Umips
XLDFLAGS = -lPW
XINCPATH =
XMINCPATH =
XLIBPATH =
XTLIBPATH = -L/usr/lib
XMLIBPATH = -L/usr/lib
XLIB = -lX11
XTLIB = -lXt
XMLIB = -lXm
XEXTRALIBS = -lPW
TERMLIB = -ltermlib
CURSES = -lcurses $(TERMLIB)
MATHLIB = -lm
# LIBRULE = ar ruv $@ $?
# LIBRULE = ar ruv $@ $?; ranlib $@
# LIBRULE = ar ruv $@ $?; ar ts $@
# LIBRULE = ar rc $@ `lorder $(OBJ) | tsort`
LIBRULE = ar ruv $@ $?
USE_TERMIO = -DUSE_TERMIO
USE_MTIO = -DUSE_MTIO
USE_FTIME =
DIGITFLAGS = -DUSE_SETREUID -DUSE_SETEUID -DUSE_SETPRIORITY
VECTLIBFLAGS =
GETHOSTNAME = -DGETHOSTNAME_OK
XDRLIB = -lsun
--------------------------------------------------------------------------
> Also, is there a way to let grass georeference stuff on mars
> or will I have to stick to keeping the data in xy?
I guess it depends somewhat on what it looks like now, but I had
some Mars data in a lat-long location & it seemed to work OK.
(see http://www.cecer.army.mil/grass/viz/global.html)
> I ftp'ed the sgi binaries and got them running in one day, which was
> awesome. I was expecting to have to try compile the code (yuck!) Has
> anyone compile grass for IRIX 5.? and gotten it working? Most of the time
> I have been working on Iris Indigo XS/24's which work wonderfully. I've
> done a couple demo's on a skiwriter (4 processors). Running SG3d on that
> machine made my jaw drop!
> ...
> I'm really having a great time working with grass and hopefully
> I'll get to do some programming with grass library in the near
> future.
Thanks for the encouragement - comments like these are what keeps the
GRASS growing! :-)
***************************************************************************
Bill Brown e-mail: brown at zorro.cecer.army.mil
USACERL - ECS phone: (217) 352-6511 ext 7676
PO Box 9005
Champaign, IL 61826-9005
See our visualization demo at URL:
http://www.cecer.army.mil/grass/viz/VIZ.html
***************************************************************************
More information about the grass-user
mailing list