[PyOpenGL-Users] pyopengl on the OpenMoko FreeRunner
Brought to you by:
mcfletch
From: Gunnar A. G. <gun...@df...> - 2008-11-27 14:54:54
|
Hi all, I am trying to get pyopengl to work on the openmoko FreeRunner [1] Building the package and installing was fairly straight forward, but running my fairly simple example gives me: Traceback (most recent call last): File "largepic.py", line 58, in <module> screen = lamina.LaminaScreenSurface() File "/home/root/mokotoys/lamina.py", line 221, in __init__ self.setup() File "/home/root/mokotoys/lamina.py", line 226, in setup self.refreshPosition() File "/home/root/mokotoys/lamina.py", line 232, in refreshPosition bottomleft = oglu.gluUnProject(0, 0, depth) File "/usr/lib/python2.5/site-packages/OpenGL/lazywrapper.py", line 32, in __call__ return wrapper( baseFunction, *args, **named ) File "/usr/lib/python2.5/site-packages/OpenGL/GLU/projection.py", line 46, in gluUnProject model = GL.glGetDoublev( GL.GL_MODELVIEW_MATRIX ) File "/usr/lib/python2.5/site-packages/OpenGL/wrapper.py", line 1631, in __call__ return self.finalise()( *args, **named ) File "/usr/lib/python2.5/site-packages/OpenGL/wrapper.py", line 683, in wrapperCall converter( pyArgs, index, self ) File "/usr/lib/python2.5/site-packages/OpenGL/converters.py", line 195, in __call__ return self.arrayType.zeros( self.getSize(pyArgs) ) File "/usr/lib/python2.5/site-packages/OpenGL/arrays/arraydatatype.py", line 98, in zeros return cls.returnHandler().zeros( dims, typeCode or cls.typeConstant ) File "/usr/lib/python2.5/site-packages/OpenGL/arrays/nones.py", line 32, in zeros raise TypeError( """Can't create NULL pointer filled with values""" ) TypeError: ("Can't create NULL pointer filled with values", 'Failure in cConverter <OpenGL.converters.SizedOutput object at 0x40ffcfb0>', [GL_MODELVIEW_MATRIX], 1, <OpenGL.wrapper.glGetDoublev object at 0x4100a698>) Now, before I dive in and debug this - let me ask: Has anyone else had any success with pyopengl on the ARM architecture? Some of the tests from the pyopengl run successfully, but most GLUT ones fail with because of some missing font - and test_loadglut fails with : AttributeError: python: undefined symbol: glutSolidTeapot The FreeRunner has libGL, libGLU from MESA version 6.5, is this too old? Please reply also to me offlist as I am not subscribed. Thanks! - Gunnar [1] http://wiki.openmoko.org/wiki/Neo_FreeRunner -- Gunnar Aastrand Grimnes gunnar.grimnes [AT] dfki.de DFKI GmbH Knowledge Management Trippstadter Strasse 122 D-67663 Kaiserslautern Germany Office: +49 631 205 75-117 Mobile: +49 177 277 4397 |