Has anyone managed to compile KlausT's ccminer on Ubuntu?
If so which version of Ubuntu, any tips etc?
I get the following when running make on Ubuntu 14.04. I believe I have my path set correctly.
Same error for me on Ubuntu 16.04 - Cuda-8.0 - gcc-4.7 If so which version of Ubuntu, any tips etc?
I get the following when running make on Ubuntu 14.04. I believe I have my path set correctly.
Code:
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -msse2 -fopenmp -pthread -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -MT ccminer-cpu-miner.o -MD -MP -MF .deps/ccminer-cpu-miner.Tpo -c -o ccminer-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
cpu-miner.c:39:26: fatal error: cuda_runtime.h: No such file or directory
#include <cuda_runtime.h>
![Huh](https://bitcointalk.org/Smileys/default/huh.gif)
SOLVED
I managed by modifying 2 files :
"cpu-miner.c" line 39, change #include <cuda_runtime.h> by
#include </usr/local/cuda/include/cuda_runtime.h>
"cryptonight.h" line 2, change #include <cuda_runtime.h> by
#include </usr/local/cuda/include/cuda_runtime.h>
then,
make