nervosnetwork / ckb-miner

ckb miner for avx2 cpu, avx512 cpu and GPU
MIT License
31 stars 13 forks source link

Building on macOS Catalina fails #16

Open robster7674 opened 3 years ago

robster7674 commented 3 years ago

Hi All,

Building on Catalina fails with "cargo:warning=src/worker/include/eaglesong.h:24:10: fatal error: 'openssl/rand.h' file not found". Searching the web shows various other projects also hitting this.

It would be great if we could get macOS binaries as well.

Repro: clone, run "cargo build --release".

robster7674 commented 3 years ago

I did the same experiment on Ubuntu, and got the same error. I could fix that by installing libssl-dev on Ubuntu, but such package does not appear to exist on macOS. So, what's the way forward on Mac? I guess including the path to brew openssl files. I'll try that.