On Fri, 2 Nov 2001, Tarn Weisner Burton wrote:
>| Won't that fubar my current Python installation?
>
>Nope.
Ok, thanks. Building now recognizes the new distitils and starts
compiling. Actually it compiles a fair deal of files (ok, I had to add a
symlink /usr/X11 -> /usr/X11R6 to proceed), but stumbles on this error
later on:
% python setup.py build
...<lots of output>...
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -fPIC -DGLX_PLATFORM -DNUMERIC
-I/usr/include -I/usr/local/include -I/usr/X11/include
-I/usr/include/python2.0/Numeric -Isrc/gle/src -I/usr/include/python2.0 -c
src/interface/GLU.__init___.c -o build/temp.linux-i686-2.0/GLU.__init___.o
In file included from src/interface/GLU.__init___.c:9:
src/interface/GLU.__init___.0102.inc: In function `SWIG_ConvertPtr':
src/interface/GLU.__init___.0102.inc:361: warning: suggest explicit braces
to avoid ambiguous `else'
src/interface/GLU.__init___.0102.inc:364: warning: suggest explicit braces
to avoid ambiguous `else'
src/interface/GLU.__init___.0102.inc:380: warning: suggest explicit braces
to avoid ambiguous `else'
src/interface/GLU.__init___.0102.inc: At top level:
src/interface/GLU.__init___.0102.inc:676: warning: function declaration
isn't a prototype
src/interface/GLU.__init___.0102.inc:722: warning: function declaration
isn't a prototype
src/interface/GLU.__init___.0102.inc:770: warning: function declaration
isn't a prototype
src/interface/GLU.__init___.0102.inc:1007: parse error before `GLUquadric'
On that position in the file there's this definition:
1004 typedef struct
1005 {
1006 PyObject_HEAD
1007 GLUquadric *obj;
1008 PyObject *begin, *beginData, *edgeFlag, *edgeFlagData,*vertex, *vertexData;
1009 PyObject *end, *endData, *combine, *combineData;
1010 } PyGLUquadric;
So apparently GLUquadric can't be found. The file was apparently generated
by swig. I have this verison of swig:
% swig -version
SWIG Version 1.1 (Build 883)
Copyright (c) 1995-98
University of Utah and the Regents of the University of California
Compiled with c++
Here my detective skills come to an end. Seems like PyObject_HEAD isn't
defined or is wrong. The symbol is defined in my
/usr/include/python2.0/object.h, and looks ok to me.
Well, I don't think it's worth my time at this point to try to get
PyOpenGL to work. Apparently this Debian box just isn't "right in the
head" wrt to Python development. :)
Thanks for all the help, I look forward to the day when I can just do a
"apt-get install pyopengl".
--
He says gods like to see an atheist around. Gives them something to aim at.
-- Terry Pratchett, Small Gods
|