How to compile ETHminer on Ubuntu 14.04

ethminer2

sudo -s
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
add-apt-repository "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main"
add-apt-repository ppa:george-edison55/cmake-3.x
add-apt-repository -y ppa:ethereum/ethereum-qt
add-apt-repository -y ppa:ethereum/ethereum
add-apt-repository -y ppa:ethereum/ethereum-dev
apt-get -y update
apt-get -y upgrade
apt-get -y install cpp-ethereum screen build-essential git cmake llvm-3.8-dev opencl-headers libboost-all-dev libgmp-dev libleveldb-dev libminiupnpc-dev libreadline-dev libncurses5-dev libcurl4-openssl-dev libcryptopp-dev libjson-rpc-cpp-dev libmicrohttpd-dev libjsoncpp-dev libargtable2-dev libedit-dev mesa-common-dev ocl-icd-libopencl1 opencl-headers libgoogle-perftools-dev qtbase5-dev qt5-default qtdeclarative5-dev libqt5webkit5-dev libqt5webengine5-dev ocl-icd-dev libv8-dev libz-dev

//If you meet an error with libcryptopp-dev run :
dpkg -i --force-overwrite /var/cache/apt/archives/libcryptopp-dev_5.6.2-0~trusty6_amd64.deb

//ETHminer
git clone https://github.com/Genoil/cpp-ethereum
cd cpp-ethereum
nano cmake/EthCompilerSettings.cmake
# remove "-Werror" around line 5 then save the file
cmake -DBUNDLE=cudaminer
make -j<quantity of CPU thread you want to use while compiling>
reboot
sudo -s
cd cpp-ethereum/ethminer/
screen

Your launch line will look like this :
./ethminer -U -F <pool> –cuda-devices <devices>

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *