Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: crypto_curious on May 17, 2020, 06:28:37 PM



Title: Cross-compiling cgminer on Raspberry Pi
Post by: crypto_curious on May 17, 2020, 06:28:37 PM
Hello,

I'd like to compile a Linux AMD64 binary on my Raspberry Pi, so I can move compiled binary to my desktop and use it there.
I am not sure what options should I chose with ./configure command. Can someone help?

I cloned most recent code from git, and I am following steps from README:

Code:
./autogen.sh
CFLAGS="-O2 -Wall -march=native" ./configure <options>
make

My guess is that I should change -march to something else and/or add -host option, however, I am not sure here and I can't find any official info on this. Do I need to install extra libraries or packages to make AMD64 code on Pi?
Can someone help? Thanks in advance. :)