README 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. This is a multi-threaded CPU and GPU miner for bitcoin.
  2. License: GPLv2. See COPYING for details.
  3. Dependencies:
  4. libcurl http://curl.haxx.se/libcurl/
  5. jansson http://www.digip.org/jansson/
  6. (jansson is included in-tree and not necessary)
  7. libncurses5-dev (or libpdcurses on WIN32)
  8. Basic *nix build instructions:
  9. To build with GPU mining support:
  10. Install AMD APP sdk, latest version - there is no official place to
  11. install it so just keep track of where it is if you're not installing
  12. the include files and library files into the system directory.
  13. (Do NOT install the ati amd sdk if you are on nvidia)
  14. ./autogen.sh # only needed if building from git repo
  15. CFLAGS="-O3 -Wall -march=native" ./configure
  16. or if you haven't installed the ati files in system locations:
  17. CFLAGS="-O3 -Wall -march=native -I<path to AMD APP include>" LDFLAGS="-L<path to AMD APP lib/x86_64> ./configure
  18. make
  19. Note that you need to use /x86_64 for 64bit and /x86 for 32bit builds
  20. If it finds the opencl files it will inform you with
  21. "OpenCL: FOUND. GPU mining support enabled."
  22. Basic WIN32 build instructions (on Fedora 13; requires mingw32):
  23. ./autogen.sh # only needed if building from git repo
  24. rm -f mingw32-config.cache
  25. MINGW32_CFLAGS="-O3 -Wall -msse2" mingw32-configure
  26. make
  27. ./mknsis.sh
  28. Native WIN32 build instructions (on mingw32, on windows):
  29. Install AMD APP sdk, latest version
  30. (Do NOT install the ati amd sdk if you are on nvidia)
  31. Install mingw32
  32. Install libcurl, copy libcurl.m4 into /mingw/share/aclocal
  33. Run:
  34. autoreconf -fvi
  35. CFLAGS="-O3 -Wall -msse2 -I<path to AMD APP include>" LDFLAGS="-L<path to AMD APP lib/x86>" ./configure
  36. make
  37. Usage instructions: Run "cgminer --help" to see options.
  38. Also many issues and FAQs are covered in the forum thread
  39. dedicated to this program,
  40. http://forum.bitcoin.org/index.php?topic=21275.0
  41. The output line shows the following:
  42. [(5s):204.4 (avg):203.1 Mh/s] [Q:56 A:51 R:4 HW:0 E:91% U:2.47/m]
  43. Each column is as follows:
  44. A 5 second exponentially decaying average hash rate
  45. An all time average hash rate
  46. The number of requested work items
  47. The number of accepted shares
  48. The number of rejected shares
  49. The number of hardware erorrs
  50. The efficiency defined as the accepted shares / requested work
  51. The utility defines as the number of shares / minute