> Am 23.08.2015 um 21:01 schrieb Andreas Kloeckner <[email protected]>: > > Gregor Thalhammer <[email protected]> writes: >> Hi Andreas, >> >> with current master I was now able to successfully build pyopencl with >> Anaconda Python 2.7 on Mac OS 10.10. To succeed, I had to edit siteconf.py, >> adding '-mmacosx-version-min=10.7‘ to CXXFLAGS and LDFLAGS, otherwise I >> obtain an error: >> >> clang: error: invalid deployment target for -stdlib=libc++ (requires OS X >> 10.7 or later) > > OK, I've added that to the default build options for OS X. > >> On OS X I tried also with OpenGL interoperability enabled, this gives an >> error: >> >> cl.get_apple_cgl_share_group())) >> AttributeError: 'module' object has no attribute >> ‚get_apple_cgl_share_group‘. I will try to investigate this further and >> report back. > > Great, thank you!
I have been digging further into this issue and found some bugs: * in pyopencl/__init__.py some imports for OpenGL interoperability are missing * implementation of GLBuffer in cffi_cl.py is flawed. I attached my attempt to fix these issues as a patch.
gl-interop-patch.diff
Description: Binary data
Gregor > >> On Windows 7 64bit with Anaconda Python 2.7 and the free Microsoft >> Compiler I failed building current master. To my understanding, the >> Microsoft compiler only supports old C++ dialects. So MinGW is >> required to build pyopencl on Windows? > > This page details their claimed level of support: > > https://msdn.microsoft.com/en-us/library/hh567368.aspx > > Could you report which specific feature the compiler doesn't like? > Perhaps that could be worked around. > > Andreas
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
