At the end of our last episode we were working on getting cgminer running on our garbagey windows box. For this we are using cygwin, which in my humble estimation is an absolutely awesome and essential piece of software.
I won’t go into the details of cygwin, beyond that when you install it, you should select libtool, autoconf, and OpenCL as additional components in the installer. From there it is pretty much like the other platforms; autoreconf -i
, ./configure --enable-opencl
, make
, make install
. The one difference is that before the make
, I had to export CFLAGS="-fcommon"
otherwise there are a bunch or errors about redeclared symbols or some such.
This gets cgminer to the point where it can run, but we immediately get the following error:
[2021-04-07 18:42:27] Started cgminer 3.7.2
[2021-04-07 18:42:27] clDevicesNum returned error, no GPUs usable
[2021-04-07 18:42:27] All devices disabled, cannot mine!
What?!? clinfo tells me I have a usable device! I have an AMD Radeon R7 200 Series, which I am told should work for this – and I had it working with some ML libraries I was playing around with a few blog posts ago, so I know it can do mathy stuff.
I see in the cgminer readme it is recommended to use ‘mxe’ for windows – we will try that next time.