Bitcoin Forum

Bitcoin => Mining support => Topic started by: Mike9876 on February 20, 2015, 05:50:10 AM



Title: How to compile cgminer
Post by: Mike9876 on February 20, 2015, 05:50:10 AM
Hello, I have connected an Avalon 3 USB ASIC and installed cgminer. I need to know what commands to enter to compile it and set it up. The ASIC Readme says "Avalon2/3 devices need the --enable-avalon2 option when compiling cgminer." What are the exact commands needed to set it up? Please respond w/ help. Thanks



Title: Re: How to compile cgminer
Post by: Newar on February 20, 2015, 05:18:57 PM
Read the main Readme too.
Code:
./autogen.sh	# only needed if building from git repo
CFLAGS="-O2 -Wall -march=native" ./configure <options>
make


Replace <options> with --enable-avalon2 and any other options you may need.


Title: Re: How to compile cgminer
Post by: Mike9876 on February 20, 2015, 08:20:51 PM
Thanks for the reply. I'll try it and message back.