xmrig/xmrig-nvidia

Build instructions for Ubuntu 20.04

funwhilelost opened this issue · 1 comments

These got a working build on Ubuntu 20.04 for me, but I can't make a PR for the wiki:

CUDA 10.1 requires gcc <= 8 so you can do that with build flags

sudo apt-get install git build-essential cmake libuv1-dev nvidia-cuda-dev nvidia-cuda-toolkit libmicrohttpd-devsudo gcc-8 g++-8
git clone https://github.com/xmrig/xmrig-nvidia.git
cd xmrig-nvidia
mkdir build
cd build
cmake .. -DCMAKE_C_COMPILER=$(which gcc-8) -DCMAKE_CXX_COMPILER=$(which g++-8)
make

Thanks for the hints ! Two things from me to get it working:
1.) in the first line you have libmicrohttpd-devsudo but it have to be libmicrohttpd-dev sudo
2.) on a fresh ubuntu 20.04 i have to also install libssl-dev otherwise i get error:
"CMake Error at cmake/OpenSSL.cmake:17 (message):
OpenSSL NOT found: use -DWITH_TLS=OFF to build without TLS support"