To Build python 0.9.7b for IBM/rs6000 AIX with GL library support:
In "Makefile", Uncomment the GL option, except replace line:
> #GL_LIBS= -lgl_s
> GL_LIBS= -lgl # for AIX
GL for AIX does not include a number of "obsolete" GL functions.
Some of these have stubs in "/usr/lpp/GL/examples/glport.h"
( See the comments in that file and the info entry for GL compatibility
for further notes. )
In "cstubs", insert the following lines among the other #include lines:
> #define _GL_PORT_C_ 1 /* (sdm7g) for AIX */
> #include "/usr/lpp/GL/examples/glport.h" /* (sdm7g) for AIX */
This will not remove ALL of the unresolved names. You must also comment out
the following function definitions in cstubs:
> ### void endpupmode # not in aix GL (sdm7g)
> ### void pupmode # not in aix GL (sdm7g)
> ### void dglclose long s # not in aix GL (sdm7g)
> ### long dglopen char *s long s # not in aix GL (sdm7g)
> ### long qgetfd # but not in aix GL (sdm7g)
The last one is apparenlty, not an old obsolete GL function, but a new one
which is not included in IBM's AIX GL.
Most of the python/demo/sgi/gl programs appear to work except for nurbs,
which gives this error message:
> $ python nurbs.py
> Stack backtrace (innermost last):
> File "nurbs.py", line 171
> File "nurbs.py", line 77
> File "nurbs.py", line 152
There may be a few other hidden traps, since some of the code might assume that
if you have GL, you are running a SGI, and therefore may have other sgi libraries
! Next project - maybe I can figure out how to write an AIX audio module.
! but that may have to wait till after adding sockets to Mac/Dos python,
! which is something I actually NEED!
Steven D. Majewski University of Virginia
sdm7g@Virginia.EDU Box 449 Health Sciences Center
Voice: (804)-982-0831 1300 Jefferson Park Avenue
FAX: (804)-982-1616 Charlottesville, VA 22908
Former UVA Department of Physiology, now Department of Molecular Physiology
and Biological Physics! [ Still the same spacious offices in Jordan Hall
- only the letterhead has changed! ]