KlausT / ccminer-cryptonight

Software for mining various cryptocoins, like Monero (pool mining only)
GNU General Public License v3.0
133 stars 30 forks source link

JSON-RPC call failed: #24

Open reppolice opened 7 years ago

reppolice commented 7 years ago

On my 940MX I usually get CUDA problems, but the latest windows build surprised me with this :)

Starting Stratum on stratum+tcp://monerohash.com:3333 [2017-05-02 01:29:12] NVAPI GPU monitoring enabled. [2017-05-02 01:29:12] 1 miner thread started, using 'credit' algorithm. [2017-05-02 01:29:12] JSON-RPC call failed: { "message": "invalid method", "code": -1 }

KlausT commented 7 years ago

I think you have used the wrong ccminer. There are two versions: This version for Monero, and the other version for everything else.

reppolice commented 7 years ago

I be damned, I was wondering why it is 40MB :) But, I do have the return of the JSON, this time an error in my Ubuntu compilation. I did not see any particular instructions but I did autogen.sh, configure, make, and then

/home/t/ccminer-cryptonight/compat/jansson/dump.c:210: undefined reference to jsonp_dtostr' compat/jansson/libjansson.a(load.o): In functionlex_scan_number': /home/t/ccminer-cryptonight/compat/jansson/load.c:555: undefined reference to jsonp_strtod' compat/jansson/libjansson.a(load.o): In functionparse_value': /home/t/ccminer-cryptonight/compat/jansson/load.c:797: undefined reference to `jsonp_strtod' collect2: error: ld returned 1 exit status Makefile:526: recipe for target 'ccminer' failed make[2]: [ccminer] Error 1 make[2]: Leaving directory '/home/t/ccminer-cryptonight' Makefile:726: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/t/ccminer-cryptonight' Makefile:396: recipe for target 'all' failed make: *** [all] Error 2

TeeCker commented 6 years ago

You need to install libjansson-dev. It's shame, that ./configure does not check for it. Without it, will be created 'compat/jansson/libjansson.a' archive file which does not have the corresponding refferences (i.e. 'jsonp_strtod' ).