Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build instructions for Ubuntu 20.04 #321

Open
funwhilelost opened this issue Nov 2, 2020 · 1 comment
Open

Build instructions for Ubuntu 20.04 #321

funwhilelost opened this issue Nov 2, 2020 · 1 comment

Comments

@funwhilelost
Copy link

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
@evilmarci
Copy link

evilmarci commented Oct 5, 2022

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants