nicehash/nheqminer

/usr/bin/ld: cannot find -lcuda

Closed this issue · 1 comments

ffdx commented

I get "/usr/bin/ld: cannot find -lcuda" when I run make

[ 81%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/utilstrencodings.cpp.o
[ 86%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/libstratum/StratumClient.cpp.o
[ 90%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/MinerFactory.cpp.o
[ 95%] Building CXX object CMakeFiles/nheqminer.dir/blake2/blake2bx.cpp.o
[100%] Linking CXX executable nheqminer
/usr/bin/ld: cannot find -lcuda
collect2: error: ld returned 1 exit status
CMakeFiles/nheqminer.dir/build.make:498: recipe for target 'nheqminer' failed
make[2]: *** [nheqminer] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/nheqminer.dir/all' failed
make[1]: *** [CMakeFiles/nheqminer.dir/all] Error 2

ffdx commented

I fixed it with "apt-get install nvidia-cuda-dev libcuda1"