Skip to content
Thorben von Rekowski edited this page Jul 1, 2021 · 8 revisions

Step 1: Dependencies

Debian/Ubuntu

  • sudo add-apt-repository ppa:ubuntu-toolchain-r/test
  • sudo apt-get update
  • sudo apt-get install libopenal-dev libjpeg-dev libudev-dev libxrandr-dev libfreetype6-dev libvorbis-dev libflac-dev libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libxi-dev g++-8 cmake git

ArchLinux

  • sudo pacman -Syu --needed openal libjpeg-turbo libxrandr freetype2 libvorbis flac mesa libxi gcc cmake git

Other distributions

  • Please open an issue if you use any other distrib to tell us what to write here.
  • The most important requirement in any distrib is a recent compiler. Supported ones are:
    • GCC >= 7.0
    • Clang >= 5.0
  • You also need a recent version of CMake, at least 3.12.4

Step 2: Compilation

Recent CMake version

git clone https://github.com/Unarelith/OpenMiner && \
cd OpenMiner && \
cmake -B build . && \
cmake --build build -j$(nproc)

Old CMake version

git clone https://github.com/Unarelith/OpenMiner && \
cd OpenMiner && \
mkdir build && \
cd build && \
cmake .. && \
make -j$(nproc) && \
cd ..

Step 3: Running OpenMiner

  • Run ./build/openminer
  • If you want a server run ./build/openminer_server