Re: [PyOpenGL-Users] Parse error in GLU.__init__.0102.inc
Brought to you by:
mcfletch
From: <il...@ya...> - 2002-07-20 12:47:02
|
Hi John. When you made mesa did it make the sgi one or the mesa one. The sgi one requires a c++ compiler, but is the recommended one, as the mesa one is old, and not being maintained. When you configure mesa it says: checking which GLU to build (SGI requires a C++ compiler)... Mesa or checking which GLU to build (SGI requires a C++ compiler)... SGI I think the header file is the same in either case though. If after using the SGI version it still doesn't work try this: in src/config.h maybe line 112, try removing some of the defines: #define GLUquadric GLUquadricObj #define GLUnurbs GLUnurbsObj #define GLUtesselator GLUtriangulatorObj If none of that works maybe have a look at this: Could be a problem with PyObject_HEAD and your python installation. PyObject_HEAD is a macro included from Python.h. Which gets it from object.h from your /usr/local/include/python2.2/ directory. This is from my object.h Is yours similar? #ifdef Py_TRACE_REFS #define PyObject_HEAD \ struct _object *_ob_next, *_ob_prev; \ int ob_refcnt; \ struct _typeobject *ob_type; #define PyObject_HEAD_INIT(type) 0, 0, 1, type, #else /* !Py_TRACE_REFS */ #define PyObject_HEAD \ int ob_refcnt; \ struct _typeobject *ob_type; #define PyObject_HEAD_INIT(type) 1, type, #endif /* !Py_TRACE_REFS */ That's about all I can think of for now. If you find out what was wrong could you please tell us what the problem was? Good luck :) __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com |