Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (26 loc) · 1.09 KB

compile_macOS.md

File metadata and controls

37 lines (26 loc) · 1.09 KB

Compile bittube-miner for macOS

Dependencies

Assuming you already have Homebrew installed, the installation of dependencies is pretty straightforward and will generate the bittube-miner binary in the bin/ directory.

For NVIDIA GPUs

brew tap caskroom/drivers
brew cask install nvidia-cuda
brew install hwloc libmicrohttpd gcc openssl cmake
cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOpenCL_ENABLE=OFF
make install

All available CMake options

For AMD GPUs

OpenCL is bundled with Xcode, so no other depedency then the basic ones needed. Just enable OpenCL via the -DOpenCL_ENABLE=ON CMake option.

brew install hwloc libmicrohttpd gcc openssl cmake
cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=ON
make install

For CPU-only mining

brew install hwloc libmicrohttpd gcc openssl cmake
cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF
make install

All available CMake options