Re: [PyOpenGL-Users] bus error on gluNewQuadric()
Brought to you by:
mcfletch
From: Tom D. <td...@yo...> - 2004-10-21 10:08:16
|
>>> i am working on the OS X port of a program and I get a "bus error" >>> caused by this opengl code (it didnt happen on Windows) >>> q = gluNewQuadric() >>> >> I have run into this same problem without PyOpenGL involved at all. A >> Google search turned up this post: >> >> http://lists.apple.com/archives/darwin-development/2003/May/msg00158.html >> >> By swapping the order of -lGL and -lGLU when linking, I was able to >> fix the problem I had. > > do you mean that on the imports i should swap the order of these > instructions? > > from OpenGL.GL import * > from OpenGL.GLU import * > > I tried this and i get the same error. maybe i dont understand what you > mean? Changing the python code won't make any difference. The link instruction above relates to building the pyopengl package. It may be worthwhile to try the pyopengl Demo/NeHe/lesson18.py referenced at the end of the page: http://pyopengl.sourceforge.net/documentation/manual/gluNewQuadric.3G.xml At least this will remove wxpython from the equation. Good luck. |