Prev Up (Under construction)

Utah Raster toolkit

The Utah Raster toolkit is a collection of programs and C routines for dealing with raster images

Prerequisites (V3.1b)

  1. Unpack the sources into directory urt-3.1b, for example.
  2. A patch is available for V3.1b. In the parent directory run:
    patch -p0 -N <urt-3.1b-3.1b1.patch
    # patching file urt-3.1b/cnv/rletorla.c
    # patching file urt-3.1b/config/hp700-hpux10
    # patching file urt-3.1b/config/sol2-5
    
  3. The file permissions appear to be broken. Run:
     
    cd urt-3.1b
    chmod -R a+r ./
    chmod -R u+w ./
    chmod a+x Configure
    
  4. The build procedures don't support the automatic creation of installation destination directories. For convenience one might modify include/makefile.src, lib/makefile.src, man/makefile.src, makefile.tlr to _include this functionality, like e.g.:
    mkdir -p $(DEST1); cp \$$i $(DEST1)/\$$dpgm ; \
    

Compilation (V3.1b)

Follow the instructions in README and modify config/urt. A lot of ancient formats may be handled, but you'd need the corresponding extra libraries.

Then:

Configure config/urt # for the first time
make config          # for subsequent builds, if configuration files changed.
make clean
make
make install 

AIX 5.x(6.x) specifics

In tools/clock/rleClock.c: rename the stack_t data type to rlestack_t to avoid the name clash with a like-named data type in /usr/include/sys/context.h.
In get/getx11/XGetHClrs.c exclude the copyright.h (doesn't exist).
Modified entries in config/urt, including display system (if not X11):
#define X11            

#define IBMR6000CC

ExtraCFLAGS = -O2 -D_LARGE_FILES 

#define ALL_MAN	Print/install all man pages.
#define CONST_DECL	If your compiler understands 'const' (ANSI)
#define SYS_V_SETPGRP	Your system has the SysV setpgrp() call.
#define USE_L_FLAG	Use -Llibdir -lrle instead of libdir/liblre.a.
#define USE_PROTOTYPES	Declare library functions with ANSI-C prototypes.
#define USE_RANDOM    Your libc has the BSD random() function.

#define USE_STDLIB_H  You have "stdlib.h".
#define USE_UNISTD_H  You have "unistd.h".
#define USE_STRING_H  You have "string.h", not "strings.h"
#define VOID_STAR     Your C compiler understands the 'void *' declaration.
#define USE_XLIBINT_H You have the  file .
#define X_SHARED_MEMORY       You have the XShm extension.

#defpath MAN_DEST   /tmp/urt-3.1b/man/
#defpath LIB_DEST   /tmp/urt-3.1b/lib
#defpath GET_DEST   /tmp/urt-3.1b/bin
#defpath CNV_DEST   /tmp/urt-3.1b/bin
#defpath TOOLS_DEST /tmp/urt-3.1b/bin
#defpath INC_DEST   /tmp/urt-3.1b/include/

OTHERJUNK = core *~

HP-UX 10.20 specifics

In get/getx11/XGetHClrs.c exclude the copyright.h (doesn't exist).
Modified entries in config/urt:
#define X11            
#define HPUX800CC
ExtraCFLAGS =  -O -Ae -D_REENTRANT -D_FILE_OFFSET_BITS=64 +z 
#define ALL_MAN	Print/install all man pages.
#define CONST_DECL	If your compiler understands 'const' (ANSI)
#define NEED_SETLINEBUF	Your stdio does not have setlinebuf (Sys V)
#define SYS_V_SETPGRP	Your system has the SysV setpgrp() call.
#define USE_L_FLAG	Use -Llibdir -lrle instead of libdir/liblre.a.
#define USE_PROTOTYPES	Declare library functions with ANSI-C prototypes.
#define USE_RANDOM    Your libc has the BSD random() function.

#define USE_STDLIB_H  You have "stdlib.h".
#define USE_UNISTD_H  You have "unistd.h".
#define USE_STRING_H  You have "string.h", not "strings.h"
#define VOID_STAR     Your C compiler understands the 'void *' declaration.
#define USE_XLIBINT_H You have the  file .
#define X_SHARED_MEMORY       You have the XShm extension.

#defpath MAN_DEST   /tmp/urt-3.1b/man/
#defpath LIB_DEST   /tmp/urt-3.1b/lib
#defpath GET_DEST   /tmp/urt-3.1b/bin
#defpath CNV_DEST   /tmp/urt-3.1b/bin
#defpath TOOLS_DEST /tmp/urt-3.1b/bin
#defpath INC_DEST   /tmp/urt-3.1b/include

OTHERJUNK = core *~

INCX11 = -I/usr/include/X11R6

Installation/Configuration


Last updated: Mon, Jun 3, 2013 09:34:37 AM , M.Kraemer

Impressum Data privacy protection