Build instructions are here:
It should basically just be
./autogen.sh
./configure --enable-opencl
make
sudo make install
For me, it doesn't build out of the box. Some of the things I had to change:
AM_CONDITIONAL(OPENMP, false)
(This appears unrelated to OpenCL, but instead a recent unrelated change)
- autogen check for OpenCL lib fails even though it's present (not an AC expert, so I just disabled it as a workaround in
configure.ac)
have_opencl_lib=true
#AC_CHECK_LIB(OpenCL, clGetPlatformIDs, have_opencl_lib=true, have_opencl_lib=false)
- Leptonica headers not being found (for Macports):
- LIBLEPT_HEADERSDIR="/usr/local/include /usr/include"
+ LIBLEPT_HEADERSDIR="/usr/local/include /usr/include /opt/local/include/leptonica"
That gets it as far as compiling, but now there are compilation errors. They don't look to serious, but I don't have time right now to look into them.
Tom