Am 25.09.2015 um 15:06 schrieb Blair Azzopardi
Are there any more up to date instructions on building pyopencl on windows? I have been
using a precompiled binary until now but would like to recompile myself.
I note that when I follow instructions from README_SETUP.txt and then compile I receive
errors along the lines of:
d:\software\windows\sources\pyopencl\src\c_wrapper\wrap_cl_core.h(53): error C2061:
syntax error: identifier 'uint32_t'
d:\software\windows\sources\pyopencl\src\c_wrapper\wrap_cl_core.h(59): error C2065:
'add': undeclared identifier
d:\software\windows\sources\pyopencl\src\c_wrapper\wrap_cl_core.h(59): error C2059:
syntax error: 'const'
d:\software\windows\sources\pyopencl\src\c_wrapper\wrap_cl_core.h(96): error C2061:
syntax error: identifier 'ssize_t'
It seems you are using Microsoft VS2008, this compiler does not support the more recent
C++ features used by pyopencl. For building pyopencl (recent master) on Windows probably
the only way to go is using the static mingw toolchain. Follow e.g. the instructions at
edit siteconf.py, set the path to the
OpenCL headers and libs
python setup.py build_ext --compiler=mingw32
python setup.py install
Current master of pyopencl does not use Boost anymore, so forget about it.
Hope that helped
From the wiki it suggests using boost which I've tried but
whenever I enable BOOST* options in my siteconf.py I get errors along the lines of:
KeyError: 'invalid config key in .\\siteconf.py: BOOST_INC_DIR'
Which seems to suggest those options have since been removed and the wiki page needs
Thanks in advance,
PyOpenCL mailing list