go to www.geomview.org home page
 
Home

Overview
FAQ
Documentation

Download

Mailing List

Geomview For Windows?

Support
Users
Development

Bug Reporting
Contributing
Contact Us

Sponsors

 

Site Search

 

Advanced
Search

 
About the software@geom archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ REQ 5131]: Porting OOGL to RS6K


  • To: software@geom
  • Subject: [ REQ 5131]: Porting OOGL to RS6K
  • From: "Mark Phillips" <mbp>
  • Date: Sun, 6 Nov 94 10:56:47 -0600

The message below came to register at geom some time ago; I'm forwarding
this to software@geom for the record, since we're not likely to look
for such things in the register at geom log.

No response is necessary at this time.

--Mark



Date: Mon, 10 Oct 1994 15:39:47 -0500
From: linas at innerdoor.austin.ibm.com (Linas Vepstas)
To: burchard at geom, register at geom
Subject: Porting OOGL to RS6K


2 August 1994

Hi --
Here is a partial list of changes I had to make to port oogl 
over to the IBM RS/6000 platform. More later.

--linas


The following steps for porting to the IBM RS/6000 platform, running
AIX and using old-fashioned GL (not OpenGL).

===========================================================================
First, run the script below:

#! /bin/csh
/bin/cp -r ./Geomview/src/bin/4dview/O.sgi ./Geomview/src/bin/4dview/O.rs6000
/bin/cp -r ./Geomview/src/bin/animate/O.sgi ./Geomview/src/bin/animate/O.rs6000
/bin/cp -r ./Geomview/src/bin/clipboard/O.sgi ./Geomview/src/bin/clipboard/O.rs6000
/bin/cp -r ./Geomview/src/bin/crayola/sgi/O.sgi ./Geomview/src/bin/crayola/sgi/O.rs6000
/bin/cp -r ./Geomview/src/bin/example/O.sgi ./Geomview/src/bin/example/O.rs6000
/bin/cp -r ./Geomview/src/bin/flythrough/O.sgi ./Geomview/src/bin/flythrough/O.rs6000
/bin/cp -r ./Geomview/src/bin/geomutil/bdy/O.sgi ./Geomview/src/bin/geomutil/bdy/O.rs6000
/bin/cp -r ./Geomview/src/bin/geomutil/math2oogl/O.sgi ./Geomview/src/bin/geomutil/math2oogl/O.rs6000
/bin/cp -r ./Geomview/src/bin/geomutil/oogl2rib/O.sgi ./Geomview/src/bin/geomutil/oogl2rib/O.rs6000
/bin/cp -r ./Geomview/src/bin/geomutil/plutil/O.sgi ./Geomview/src/bin/geomutil/plutil/O.rs6000
/bin/cp -r ./Geomview/src/bin/geomutil/ucd/O.sgi ./Geomview/src/bin/geomutil/ucd/O.rs6000
/bin/cp -r ./Geomview/src/bin/geomview/gl/O.sgi ./Geomview/src/bin/geomview/gl/O.rs6000
/bin/cp -r ./Geomview/src/bin/geomview/x11/O.sgi ./Geomview/src/bin/geomview/x11/O.rs6000
/bin/cp -r ./Geomview/src/bin/ginsu/O.sgi ./Geomview/src/bin/ginsu/O.rs6000
/bin/cp -r ./Geomview/src/bin/graffiti/O.sgi ./Geomview/src/bin/graffiti/O.rs6000
/bin/cp -r ./Geomview/src/bin/hinge/O.sgi ./Geomview/src/bin/hinge/O.rs6000
/bin/cp -r ./Geomview/src/bin/mgexample/O.sgi ./Geomview/src/bin/mgexample/O.rs6000
/bin/cp -r ./Geomview/src/bin/nose/O.sgi ./Geomview/src/bin/nose/O.rs6000
/bin/cp -r ./Geomview/src/bin/pssnap/sgi/O.sgi ./Geomview/src/bin/pssnap/sgi/O.rs6000
/bin/cp -r ./Geomview/src/bin/pssnap/x11/O.sgi ./Geomview/src/bin/pssnap/x11/O.rs6000
/bin/cp -r ./Geomview/src/bin/stereo/O.sgi ./Geomview/src/bin/stereo/O.rs6000
/bin/cp -r ./Geomview/src/bin/sweep/O.sgi ./Geomview/src/bin/sweep/O.rs6000
/bin/cp -r ./Geomview/src/bin/tackdown/O.sgi ./Geomview/src/bin/tackdown/O.rs6000
/bin/cp -r ./Geomview/src/bin/transformer/O.sgi ./Geomview/src/bin/transformer/O.rs6000
/bin/cp -r ./Geomview/src/bin/trigrp/O.sgi ./Geomview/src/bin/trigrp/O.rs6000
/bin/cp -r ./Geomview/src/bin/util/O.sgi ./Geomview/src/bin/util/O.rs6000
/bin/cp -r ./Geomview/src/bin/warp/sgi/O.sgi ./Geomview/src/bin/warp/sgi/O.rs6000
/bin/cp -r ./Geomview/src/lib/camera/O.sgi ./Geomview/src/lib/camera/O.rs6000
/bin/cp -r ./Geomview/src/lib/color/O.sgi ./Geomview/src/lib/color/O.rs6000
/bin/cp -r ./Geomview/src/lib/forms/O.sgi ./Geomview/src/lib/forms/O.rs6000
/bin/cp -r ./Geomview/src/lib/geometry/cmodel/O.sgi ./Geomview/src/lib/geometry/cmodel/O.rs6000
/bin/cp -r ./Geomview/src/lib/geometry/hpoint3/O.sgi ./Geomview/src/lib/geometry/hpoint3/O.rs6000
/bin/cp -r ./Geomview/src/lib/geometry/hpointn/O.sgi ./Geomview/src/lib/geometry/hpointn/O.rs6000
/bin/cp -r ./Geomview/src/lib/geometry/point3/O.sgi ./Geomview/src/lib/geometry/point3/O.rs6000
/bin/cp -r ./Geomview/src/lib/geometry/transform3/O.sgi ./Geomview/src/lib/geometry/transform3/O.rs6000
/bin/cp -r ./Geomview/src/lib/geometry/transformn/O.sgi ./Geomview/src/lib/geometry/transformn/O.rs6000
/bin/cp -r ./Geomview/src/lib/geometry/transobj/O.sgi ./Geomview/src/lib/geometry/transobj/O.rs6000
/bin/cp -r ./Geomview/src/lib/geomutil/bdy/O.sgi ./Geomview/src/lib/geomutil/bdy/O.rs6000
/bin/cp -r ./Geomview/src/lib/geomutil/plutil/O.sgi ./Geomview/src/lib/geomutil/plutil/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/bbox/O.sgi ./Geomview/src/lib/gprim/bbox/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/bezier/O.sgi ./Geomview/src/lib/gprim/bezier/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/comment/O.sgi ./Geomview/src/lib/gprim/comment/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/discgrp/O.sgi ./Geomview/src/lib/gprim/discgrp/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/geom/O.sgi ./Geomview/src/lib/gprim/geom/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/inst/O.sgi ./Geomview/src/lib/gprim/inst/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/lincoln/O.sgi ./Geomview/src/lib/gprim/lincoln/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/list/O.sgi ./Geomview/src/lib/gprim/list/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/mesh/O.sgi ./Geomview/src/lib/gprim/mesh/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/ndmesh/O.sgi ./Geomview/src/lib/gprim/ndmesh/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/polylist/O.sgi ./Geomview/src/lib/gprim/polylist/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/quad/O.sgi ./Geomview/src/lib/gprim/quad/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/skel/O.sgi ./Geomview/src/lib/gprim/skel/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/sphere/O.sgi ./Geomview/src/lib/gprim/sphere/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/stub/O.sgi ./Geomview/src/lib/gprim/stub/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/tlist/O.sgi ./Geomview/src/lib/gprim/tlist/O.rs6000
/bin/cp -r ./Geomview/src/lib/gprim/vect/O.sgi ./Geomview/src/lib/gprim/vect/O.rs6000
/bin/cp -r ./Geomview/src/lib/mg/common/O.sgi ./Geomview/src/lib/mg/common/O.rs6000
/bin/cp -r ./Geomview/src/lib/mg/gl/O.sgi ./Geomview/src/lib/mg/gl/O.rs6000
/bin/cp -r ./Geomview/src/lib/mg/rib/O.sgi ./Geomview/src/lib/mg/rib/O.rs6000
/bin/cp -r ./Geomview/src/lib/mg/x11/O.sgi ./Geomview/src/lib/mg/x11/O.rs6000
/bin/cp -r ./Geomview/src/lib/mib/O.sgi ./Geomview/src/lib/mib/O.rs6000
/bin/cp -r ./Geomview/src/lib/oogl/lisp/O.sgi ./Geomview/src/lib/oogl/lisp/O.rs6000
/bin/cp -r ./Geomview/src/lib/oogl/refcomm/O.sgi ./Geomview/src/lib/oogl/refcomm/O.rs6000
/bin/cp -r ./Geomview/src/lib/oogl/util/O.sgi ./Geomview/src/lib/oogl/util/O.rs6000
/bin/cp -r ./Geomview/src/lib/oogl/wa/O.sgi ./Geomview/src/lib/oogl/wa/O.rs6000
/bin/cp -r ./Geomview/src/lib/pointlist/O.sgi ./Geomview/src/lib/pointlist/O.rs6000
/bin/cp -r ./Geomview/src/lib/shade/O.sgi ./Geomview/src/lib/shade/O.rs6000
/bin/cp -r ./Geomview/src/lib/window/O.sgi ./Geomview/src/lib/window/O.rs6000

===========================================================================
Next,
replace 
./Geomview/makefiles/mk.rs6000 by the following

#
# Makefile that sets machine-specific variables and rules
# for the IBM RS/6000 running AIX, with old-style GL (not OpenGL)
# using the xlC compiler (not the CSet compiler)
#
# A machine-specific makefile is included by all other makefiles.
#

CPU = rs6000
MACHTYPE = rs6000
RANLIB = :
CC = cc
# INSTALL = ${GEOM}/tools/install.bsd
AR = ar
MKDEPFLAGS = -MM
SYSCOPTS = -DAIX -Dalloca=__alloca -ma
SYSLIBS =
SYSXLIBS = -lXm -lXt -lX11
CPLUSPLUS = xlC

===========================================================================
Next, 
setenv CPU rs6000
make 

The make seems to be pretty clean this time, quite unlike the 1.4.1
experience.  However some problems remain:

===========================================================================

Edit  ./Geomview/src/lib/gprim/stub/O.rs6000/Makefile,  and remove the
line containing "INSTALL"

===========================================================================
Edit ./Geomview/src/lib/oogl/util/mallocp.c, and insert at line 26 the
following:

#elif defined AIX
void *(*OOG_NewP) P((int))      = (void *(*) P((int))) malloc;
void  (*OOGLFree) P((void *))   = (void  (*) P((void *))) free;
void *(*OOG_RenewP) P((void *,int))     = (void *(*) P((void *, int))) realloc;

===========================================================================
Edit  ./Geomview/src/bin/4dview/O.rs6000 and replace the line LIBS= with
the following:

LIBS= ${ALLOOGLLIBS} -L${GEOM}/lib/${MACHTYPE} -lgeomutil -lgl -lm 

===========================================================================
add the following to src/lib/oogl/util/porting.c

#ifdef AIX
  /*
   * AIX lacks GL's foreground() call, programs are always in
   * foreground, automatically.
   * AIX lacks gflush(). Probably finish() was intended.
   */

void foreground (void) {}
void gflush (void) { finish (); }

#endif /* AIX */

===========================================================================
Edit ./Geomview/src/bin/clipboard/clipgl.c

replace line 9
#include <X11/Xirisw/GlxMDraw.h>

with the following:

#ifndef AIX
#include <X11/Xirisw/GlxMDraw.h>
#else
#include </usr/lpp/GL/widgets/GlxMDraw.h>
#endif

and, at line 119:
#ifdef AIX
  GLXwinset(XtDisplay(w), XtWindow(w));
#else
  GLXwinset(XtDisplay(w), data->window);
#endif

and the same again at line 128

===========================================================================
Edit ./Geomview/src/bin/clipboard/O.rs6000/Makefile, replacing line 7
with

LIBS = /usr/lpp/GL/widgets/GlxMDraw.o ${ALLOOGLLIBS} -lm -lmib -lXm -lXt -lgl -lX11 -lPW

===========================================================================
Edit ./Geomview/src/bin/crayola/sgi/O.rs6000/Makefile
and replace the lines containing "LIBS" with

LIBS = ${ALLOOGLLIBS} -lforms -lgl -lm 

===========================================================================
Edit ./Geomview/src/bin/graffit/O.rs6000/Makefile
and replace the lines containing "LIBS" with

LIBS = ${ALLOOGLLIBS} -lforms -lgl -lm 

===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================


 
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
 
site hosted by
SourceForge Logo