> Am 25.09.2015 um 15:06 schrieb Blair Azzopardi <[email protected]>:
> 
> Hi
> 
> 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'
> etc..
> 

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 https://anaconda.org/carlkl/mingwpy 
<https://anaconda.org/carlkl/mingwpy> to install it.
Then
> python configure.py
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
Gregor

> 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 updating.
> 
> Thanks in advance,
> Blair
> 
> _______________________________________________
> PyOpenCL mailing list
> [email protected]
> http://lists.tiker.net/listinfo/pyopencl

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to