xmrig-nvidia icon indicating copy to clipboard operation
xmrig-nvidia copied to clipboard

Build instructions for Ubuntu 20.04

Open funwhilelost opened this issue 4 years ago • 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

funwhilelost avatar Nov 02 '20 21:11 funwhilelost

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"

evilmarci avatar Oct 05 '22 07:10 evilmarci