nicehash / nheqminer

Equihash miner for NiceHash
https://www.nicehash.com
MIT License
769 stars 583 forks source link

/usr/bin/ld: cannot find -lcuda #376

Closed ffdx closed 6 years ago

ffdx commented 6 years ago

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 6 years ago

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