Re: [PyOpenGL-Users] bus error on gluNewQuadric()
Brought to you by:
mcfletch
From: altern <en...@al...> - 2004-10-22 18:20:12
|
hi well ... now its working. the only thing i changed is that i was actually creating the q = gluNewQuadric() as a to reuse it so that i dont do it everytime i create a circle. Now i put it into the drawing function and there is no problem. I guess osx didnt like to reuse the object and needs to create one new every time. so before i was doing something like this quad = gluNewQuadric() def drawCircle(inner, radius): global quad gluDisk(quad, inner, radius, 80, 1) and now i am doing something like this def drawCircle(inner, radius): quad = gluNewQuadric() gluDisk(quad, inner, radius, 80, 1) thanks! 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. > > Good luck. > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > -- enrike |