Re: [PyOpenGL-Users] bus error on gluNewQuadric()
Brought to you by:
mcfletch
From: altern <en...@al...> - 2004-10-21 13:47:12
|
Tom Dossis wrote: >>>> 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. So you mean that i have to compile myself pyopengl with the changes you mention? There is no other workaround this? -- enrike |