Hello! I am currently using the OSX builds of ccminer 1.2 from John Chapman and its working great. However I want to use this fork for the better hashrate. I am hoping someone here can help me compile the latest sp for of ccminer on OSX 10.10. I am getting 2 errors when I do "sudo make".
First let me explain what process I did:
1.) Install Xcode 6.4, command line tools, homebrew
2.) update homebrew and install dependencies: coreutils autoconf automake jansson libgcrypt libgpg-error libtool libusb pkg-config yasm curl
3.) git clone
https://github.com/sp-hash/ccminer.git4.) ./autogen.sh
5.) ./configure
6.) sudo make
This results in this:
ccminer.cpp:464:26: error: use of undeclared identifier 'GetCurrentProcess'
SetProcessAffinityMask(GetCurrentProcess(), mask);
^
ccminer.cpp:466:25: error: use of undeclared identifier 'GetCurrentThread'
SetThreadAffinityMask(GetCurrentThread(), mask);
^
I cannot for the life of me get this fixed. I tried commenting out those lines of code in the source because it looked like it pertained only to windows, but that just results in more "undeclared identifier" errors for other lines of code.
I AM WILLING TO COMPENSATE SOMEONE SOME BTC IF THEY CAN HELP ME GET THIS BUILT AND WORKING!Any help is greatly appreciated.
Here is the entire output of the "sudo make" command
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in compat
make[3]: Nothing to be done for `all-am'.
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -Wall -MT ccminer-crc32.o -MD -MP -MF .deps/ccminer-crc32.Tpo -c -o ccminer-crc32.o `test -f 'crc32.c' || echo './'`crc32.c
mv -f .deps/ccminer-crc32.Tpo .deps/ccminer-crc32.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -Wall -MT ccminer-hefty1.o -MD -MP -MF .deps/ccminer-hefty1.Tpo -c -o ccminer-hefty1.o `test -f 'hefty1.c' || echo './'`hefty1.c
mv -f .deps/ccminer-hefty1.Tpo .deps/ccminer-hefty1.Po
g++ -DHAVE_CONFIG_H -I. -I/usr/local/include -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -MT ccminer-ccminer.o -MD -MP -MF .deps/ccminer-ccminer.Tpo -c -o ccminer-ccminer.o `test -f 'ccminer.cpp' || echo './'`ccminer.cpp
ccminer.cpp:464:26: error: use of undeclared identifier 'GetCurrentProcess'
SetProcessAffinityMask(GetCurrentProcess(), mask);
^
ccminer.cpp:466:25: error: use of undeclared identifier 'GetCurrentThread'
SetThreadAffinityMask(GetCurrentThread(), mask);
^
ccminer.cpp:1105:4: warning: 'SHA256' is deprecated: first deprecated in OS X
10.7 [-Wdeprecated-declarations]
SHA256((uchar*)sctx->job.coinbase, sctx->job.coi...
^
/usr/include/openssl/sha.h:150:16: note: 'SHA256' has been explicitly marked
deprecated here
unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md...
^
ccminer.cpp:1121:74: warning: for loop has empty body [-Wempty-body]
...(i = 0; i < (int)sctx->xnonce2_size && !++sctx->job.xnonce2; i++);
^
ccminer.cpp:1121:74: note: put the semicolon on a separate line to silence this
warning
ccminer.cpp:1360:21: warning: '&&' within '||' [-Wlogical-op-parentheses]
if ((have_stratum && work.data[0] == 0 || network_fail_f...
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ~~
ccminer.cpp:1360:21: note: place parentheses around the '&&' expression to
silence this warning
if ((have_stratum && work.data[0] == 0 || network_fail_f...
^
( )
ccminer.cpp:1377:12: warning: 18 enumeration values not handled in switch:
'ALGO_ANIME', 'ALGO_BITC', 'ALGO_DEEP'... [-Wswitch]
switch (opt_algo) {
^
ccminer.cpp:1634:12: warning: 36 enumeration values not handled in switch:
'ALGO_ANIME', 'ALGO_BITC', 'ALGO_BITCOIN'... [-Wswitch]
switch (opt_algo) {
^
ccminer.cpp:2011:12: warning: 36 enumeration values not handled in switch:
'ALGO_ANIME', 'ALGO_BITC', 'ALGO_BITCOIN'... [-Wswitch]
switch (opt_algo)
^
6 warnings and 2 errors generated.
make[2]: *** [ccminer-ccminer.o] Error 1