[PyOpenCL] OpenGL interop on Mac OS X patch
Ian Johnson
enjalot at gmail.com
Thu Feb 24 20:17:38 PST 2011
Thank you for your hardwork!
So we are close, but just barely off, now it wont compile because Apple
doesn't define these:
735 else if (prop == CL_GL_CONTEXT_KHR
736 || prop == CL_EGL_DISPLAY_KHR
737 || prop == CL_GLX_DISPLAY_KHR
738 || prop == CL_CGL_SHAREGROUP_KHR
or these
3003 case CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR:
3012 case CL_DEVICES_FOR_GL_CONTEXT_KHR:
so probably need to make the __APPLE__ an elseif defined...
On Thu, Feb 24, 2011 at 11:01 PM, Andreas Kloeckner <lists at informa.tiker.net
> wrote:
> On Fri, 25 Feb 2011 00:35:14 +0000 (UTC), Keith Brafford <
> keith.brafford at gmail.com> wrote:
> > Andreas Kloeckner <lists at ...> writes:
> >
> >
> > > Ok, I didn't understand that bit. Turns out that cl_ext.h was never
> > > included on Apple. I've made another attempt to fix this--can you
> please
> > > try again?
> >
> > Not quite there yet:
> >
> > /Developer/SDKs/MacOSX10.6.sdk/usr/include/AvailabilityMacros.h:108:14:
> warning:
> > #warning Building for Intel with Mac OS X Deployment Target < 10.4 is
> invalid.
> > /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenCL.framework
> > /Headers/cl_gl_ext.h:53:
> > error: ‘cl_gl_platform_info’ has not been declared
> > /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenCL.framework
> > /Headers/cl_gl_ext.h:53:
> > error: ‘cl_gl_platform_info’ has not been declared
> > src/wrapper/wrap_cl.hpp: In function ‘cl_context_properties
> > pyopencl::get_apple_cgl_share_group()’:
> > src/wrapper/wrap_cl.hpp:2803: error: ‘CGLShareGroupObj’ was not declared
> in this
> > scope
> > src/wrapper/wrap_cl.hpp:2803: error: expected `;' before ‘kCGLShareGroup’
> > src/wrapper/wrap_cl.hpp:2805: error: ‘kCGLShareGroup’ was not declared in
> this
> > scope
> > src/wrapper/wrap_cl.hpp: In function ‘cl_context_properties
> > pyopencl::get_apple_cgl_share_group()’:
> > src/wrapper/wrap_cl.hpp:2803: error: ‘CGLShareGroupObj’ was not declared
> in this
> > scope
> > src/wrapper/wrap_cl.hpp:2803: error: expected `;' before ‘kCGLShareGroup’
> > src/wrapper/wrap_cl.hpp:2805: error: ‘kCGLShareGroup’ was not declared in
> this
> > scope
> > lipo: can't figure out the architecture type of:
> > /var/folders/94/94UbZElmF2ORu76IVjMg8U+++TI/-Tmp-//ccihIgwQ.out
> > error: command 'gcc-4.0' failed with exit status 1
> > make: *** [all] Error 1
>
> I made another attempt--thanks for your patience!
>
> Andreas
>
>
> _______________________________________________
> PyOpenCL mailing list
> PyOpenCL at tiker.net
> http://lists.tiker.net/listinfo/pyopencl
>
>
--
Ian Johnson
http://enja.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tiker.net/pipermail/pyopencl/attachments/20110224/f89ffac1/attachment-0001.html>
More information about the PyOpenCL
mailing list