[PyOpenCL] OpenGl Support in pyopencl in Mac OS X 10.6
holger.rapp at kit.edu
Mon Jul 19 23:53:02 PDT 2010
>> I tried running the gl_interop_demo.py and hit a wall right away again:
>> Traceback (most recent call last):
>> File "gl_interop_demo.py", line 74, in <module>
>> File "gl_interop_demo.py", line 34, in initialize
>> props = [(ctx_props.PLATFORM, plats), (ctx_props.GL_CONTEXT_KHR,
>> AttributeError: type object 'context_properties' has no attribute 'GL_CONTEXT_KHR'
>> Which is true, there is no such variable defined in the class. There is only platform, to_string and mro defined.
> Try uncommenting the cl_ext.h header include in
> src/wrapper/wrap_cl.hpp. I'm reluctant to do this by default yet because
> Nvidia doesn't seem to ship that header.
I added the include at the Mac Include section around line 14 and made sure that it really was included (by first adding a wrong file name and see the compile fail). The compile works, but the situation is the very same as described before. None of the GL_* variables are defined inside context_properties.
Anything more I could try?
More information about the PyOpenCL