Closed Latrasis closed 7 years ago
At the moment, all of John Tromp's miners are linux/osx only, so the build is currently focused on linux. At some point in the not-too-distant future, I intend to create a cmake project that does a better job detecting the platform and building plugins accordingly, but no ETA there.
This shouldn't be breaking grin builds on windows, however, so I'll tweak the current build to not fail on windows. In the meantime, to work around this:
-git clone cuckoo-miner beside the grin directory -in grin/grin/Cargo.toml, include the package locally, i.e.
cuckoo_miner = { file="../../cuckoo-miner"}
#[cfg(target_os = "windows")]
static DLL_SUFFIX: &str=".dll";
#cuckoo_simple_12 = { path = "plugins/cuckoo_simple_12" }
#cuckoo_simple_16 = { path = "plugins/cuckoo_simple_16" }
#cuckoo_simple_20 = { path = "plugins/cuckoo_simple_20" }
#cuckoo_simple_25 = { path = "plugins/cuckoo_simple_25" }
#cuckoo_simple_28 = { path = "plugins/cuckoo_simple_28" }
#cuckoo_simple_30 = { path = "plugins/cuckoo_simple_30" }
This should allow cuckoo-miner to compile, and then in grin's grin.toml change the value 'use_cuckoo_miner' to false.
Note I haven't yet been able to test this, let me know if it works for you. I'll work on fixing the build for windows in the meantime.
Further edit: I've been able to test this now.. cuckoo_miner does compile, but there are other issues in grin causing the windows build to fail, particularly the daemonize-0.2.3 library.
Fixed in master and tag included by grin, once https://github.com/ignopeverell/grin/pull/84 is merged. Build won't fail but plugins won't work, grin will have to use internal mining mode.
Trying to build on
x86_64-pc-windows-msvc
result with: