ps.map

Keith Mitchell keith at piked2.agn.uiuc.edu
Tue Mar 30 12:45:19 EST 1993


We are running Grass 4.0 on a Sparc IPX.
We need to get legends in our output
using the ppm driver or the new ps.map

Specifically we need to generate maps in 
color PostScript format.

PPM output can be piped through the ppm tools 
but produces no legend.  What I've seen
leads me to believe ps.map will do it

BUT, it won't run : segmentation fault
AND ps.icon won't compile:

root # gmake4.0
  SRC     = /data/grass/src
  CMD     = /data/grass/src/CMD
  HEADER  = head
  ARCH    = 
  GISBASE = /data/grass
  VERSION = 4.0 Summer 1991
#################################################################
/data/grass/keithdoc/grass/ftp/ps.map
  mkdir OBJ
  make -f OBJ/make.rules 


/usr/local/bin/gmake4.0 -all
  SRC     = /data/grass/src
  CMD     = /data/grass/src/CMD
  HEADER  = head
  ARCH    = 
  GISBASE = /data/grass
  VERSION = 4.0 Summer 1991
#################################################################
/data/grass/keithdoc/grass/ftp/ps.map/ps.icon
  mkdir OBJ
  make -f OBJ/make.rules 

rm -f OBJ/main.o
cc -O  -I/data/grass/src/include  -c main.c
mv main.o OBJ/main.o
rm -f OBJ/icon_file.o
cc -O  -I/data/grass/src/include  -c icon_file.c
mv icon_file.o OBJ/icon_file.o
rm -f OBJ/draw_grid.o
cc -O  -I/data/grass/src/include  -c draw_grid.c
mv draw_grid.o OBJ/draw_grid.o
rm -f OBJ/make_icon.o
cc -O  -I/data/grass/src/include  -c make_icon.c
mv make_icon.o OBJ/make_icon.o
rm -f OBJ/save_icon.o
cc -O  -I/data/grass/src/include  -c save_icon.c
mv save_icon.o OBJ/save_icon.o
rm -f OBJ/show_icon.o
cc -O  -I/data/grass/src/include  -c show_icon.c
mv show_icon.o OBJ/show_icon.o
rm -f a.out
cc -s OBJ/main.o  OBJ/icon_file.o  OBJ/draw_grid.o  OBJ/make_icon.o  OBJ/save_icon.o  OBJ/show_icon.o /data/grass/src/libes/LIB/libdisplay.a /data/grass/src/libes/LIB/libraster.a /data/grass/src/libes/LIB/libgis.a -lm
ld: Undefined symbol 
   _tgetent 
   _tputs 
   _tgetstr 
*** Error code 2
make: Fatal error: Command failed for target `/data/grass/etc/bin/alpha/cmd/ps.icon'
Current working directory /data/grass/keithdoc/grass/ftp/ps.map/ps.icon
*** Error code 1
make: Fatal error: Command failed for target `all'
*************************************************************************
root # gmake4.0
  SRC     = /data/grass/src
  CMD     = /data/grass/src/CMD
  HEADER  = head
  ARCH    = 
  GISBASE = /data/grass
  VERSION = 4.0 Summer 1991
#################################################################
/data/grass/keithdoc/grass/ftp/ps.map
  mkdir OBJ
  make -f OBJ/make.rules 

/usr/local/bin/gmake4.0 -all
  SRC     = /data/grass/src
  CMD     = /data/grass/src/CMD
  HEADER  = head
  ARCH    = 
  GISBASE = /data/grass
  VERSION = 4.0 Summer 1991
#################################################################
/data/grass/keithdoc/grass/ftp/ps.map/ps.icon
  mkdir OBJ
  make -f OBJ/make.rules 

rm -f OBJ/main.o
cc -O  -I/data/grass/src/include  -c main.c
mv main.o OBJ/main.o
rm -f OBJ/icon_file.o
cc -O  -I/data/grass/src/include  -c icon_file.c
mv icon_file.o OBJ/icon_file.o
rm -f OBJ/draw_grid.o
cc -O  -I/data/grass/src/include  -c draw_grid.c
mv draw_grid.o OBJ/draw_grid.o
rm -f OBJ/make_icon.o
cc -O  -I/data/grass/src/include  -c make_icon.c
mv make_icon.o OBJ/make_icon.o
rm -f OBJ/save_icon.o
cc -O  -I/data/grass/src/include  -c save_icon.c
mv save_icon.o OBJ/save_icon.o
rm -f OBJ/show_icon.o
cc -O  -I/data/grass/src/include  -c show_icon.c
mv show_icon.o OBJ/show_icon.o
rm -f a.out
cc -s OBJ/main.o  OBJ/icon_file.o  OBJ/draw_grid.o  OBJ/make_icon.o  OBJ/save_icon.o  OBJ/show_icon.o /data/grass/src/libes/LIB/libdisplay.a /data/grass/src/libes/LIB/libraster.a /data/grass/src/libes/LIB/libgis.a -lm
ld: Undefined symbol 
   _tgetent 
   _tputs 
   _tgetstr 
*** Error code 2
make: Fatal error: Command failed for target `/data/grass/etc/bin/alpha/cmd/ps.icon'
Current working directory /data/grass/keithdoc/grass/ftp/ps.map/ps.icon
*** Error code 1
make: Fatal error: Command failed for target `all'
*************************************************************************

Does running the program  "ps.map" require ps.icon to be compiled ?
If so what do we need to compile?
Is there a new library element we need?



Keith M. Mitchell
University of Illinois
Department of Agronomy
S-316 Turner Hall
1102 S. Goodwin Ave.
Urbana, Il. 61801
(217) 333-9648
keith at piked2.agn.uiuc.edu





More information about the grass-user mailing list