-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from fireice-uk/topic-compile-cleanup
Compile cleanup
- Loading branch information
Showing
7 changed files
with
63 additions
and
2,916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
bin/ | ||
obj/ | ||
build/ | ||
xmr-stak-cpu.layout | ||
xmr-stak-cpu.depend | ||
config-debug.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Compile **xmr-stak** for Linux | ||
|
||
### GNU Compiler | ||
``` | ||
# Ubuntu / Debian | ||
sudo apt-get install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev | ||
cmake . | ||
make install | ||
# Arch | ||
sudo pacman -S base-devel hwloc openssl cmake libmicrohttpd | ||
cmake . | ||
make install | ||
# Fedora | ||
sudo dnf install gcc gcc-c++ hwloc-devel libmicrohttpd-devel openssl-devel cmake | ||
cmake . | ||
make install | ||
# CentOS | ||
sudo yum install centos-release-scl cmake3 hwloc-devel libmicrohttpd-devel openssl-devel | ||
sudo yum install devtoolset-4-gcc* | ||
sudo scl enable devtoolset-4 bash | ||
cmake3 . | ||
make install | ||
``` | ||
|
||
- g++ version 5.1 or higher is required for full C++11 support. CMake release compile scripts, as well as CodeBlocks build environment for debug builds is included. | ||
|
||
### To do a static build for a system without gcc 5.1+ | ||
``` | ||
cmake -DCMAKE_LINK_STATIC=ON . | ||
make install | ||
``` | ||
Note - cmake caches variables, so if you want to do a dynamic build later you need to specify '-DCMAKE_LINK_STATIC=OFF' | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.