-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathREADME.md.orig
More file actions
executable file
·217 lines (164 loc) · 8.18 KB
/
README.md.orig
File metadata and controls
executable file
·217 lines (164 loc) · 8.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217

Launched:
#### v0.0.1.0 November 25, 2018
<!--
#### v0.0.1.1 November 27, 2018
#### v0.2.0.0 December 8, 2018
-->
www.cryptocatalyst.net
Discord (most active here)
https://discord.gg/rd3ss4G
<!--
#### Master Build Status
[](https://travis-ci.org/turtlecoin/turtlecoin) [](https://ci.appveyor.com/project/RocksteadyTC/turtlecoin)
-->
#### Development Build Status
[](https://travis-ci.org/dirtybits/catalyst) [](https://ci.appveyor.com/project/dirtybits/catalyst)
Development build currently failing, please use branch 0.3.2.2 or download source directly from Releases tab
### Installing
<!--
Pre-compiled Windows executables are available here: https://github.com/dirtybits/catalyst-executables/blob/master/Release_fixed.zip
We offer binary images of the latest releases here: https://latest.turtlecoin.lol
-->
If you would like to compile yourself, read on.
### How To Compile
#### Build Optimization
The CMake build system will, by default, create optimized *native* builds for your particular system type when you build the software. Using this method, the binaries created provide a better experience and all together faster performance.
However, if you wish to create *portable* binaries that can be shared between systems, specify `-DARCH=default` in your CMake arguments during the build process. Note that *portable* binaries will have a noticable difference in performance than *native* binaries. For this reason, it is always best to build for your particular system if possible.
#### Linux
##### Prerequisites
You will need the following packages: [Boost](https://www.boost.org/), [OpenSSL](https://www.openssl.org/), cmake (3.8 or higher), make, and git.
You will also need either GCC/G++, or Clang.
If you are using GCC, you will need GCC-7.0 or higher.
If you are using Clang, you will need Clang 6.0 or higher. You will also need libstdc++\-6.0 or higher.
##### Ubuntu, using GCC
- `sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y`
- `sudo apt-get update`
- `sudo apt-get install aptitude -y`
- `sudo aptitude install -y build-essential g++-8 gcc-8 git libboost-all-dev python-pip libssl-dev`
- `sudo pip install cmake`
- `export CC=gcc-8`
- `export CXX=g++-8`
- `git clone https://github.com/catalystdevelopment/catalyst`
<!--
- `git clone -b master --single-branch https://github.com/catalystdevelopment/cryptocatalyst`
-->
- `cd catalyst`
- `mkdir build`
- `cd build`
- `cmake ..`
- `make`
- You can also run `make` with multiple threads to speed up the build process like so:
- `make -j<number of threads>`
The binaries will be in the `src` folder when you are complete.
- `cd src`
- `./Catalystd --version`
##### Ubuntu, using Clang
- `sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y`
- `wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -`
You need to modify the below command for your version of ubuntu - see https://apt.llvm.org/
* Ubuntu 14.04 (Trusty)
- `sudo add-apt-repository "deb https://apt.llvm.org/trusty/ llvm-toolchain-trusty 6.0 main"`
* Ubuntu 16.04 (Xenial)
- `sudo add-apt-repository "deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial 6.0 main"`
* Ubuntu 18.04 (Bionic)
- `sudo add-apt-repository "deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic 6.0 main"`
- `sudo apt-get update`
- `sudo apt-get install aptitude -y`
- `sudo aptitude install -y -o Aptitude::ProblemResolver::SolutionCost='100*canceled-actions,200*removals' build-essential clang-6.0 libstdc++-7-dev git libboost-all-dev python-pip libssl-dev`
- `sudo pip install cmake`
- `export CC=clang-6.0`
- `export CXX=clang++-6.0`
- `git clone https://github.com/catalystdevelopment/catalyst`
- `cd catalyst`
- `mkdir build`
- `cd build`
- `cmake ..`
- `make`
The binaries will be in the `src` folder when you are complete.
- `cd src`
- `./Catalystd --version`
##### Generic Linux
Ensure you have the dependencies listed above.
If you want to use clang, ensure you set the environment variables `CC` and `CXX`.
See the ubuntu instructions for an example.
- `git clone https://github.com/catalystdevelopment/catalyst`
- `cd catalyst`
- `mkdir build`
- `cd build`
- `cmake ..`
- `make`
The binaries will be in the `src` folder when you are complete.
- `cd src`
- `./Catalystd --version`
#### OSX/Apple, using Clang
##### Prerequisites
- Install XCode and Developer Tools.
##### Building
- `which brew || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`
<<<<<<< HEAD
- `brew install --force cmake boost llvm openssl`
- `export CC=/usr/local/opt/llvm/bin/clang`
- `export CXX=/usr/local/opt/llvm/bin/clang++`
- `git clone https://github.com/catalystdevelopment/catalyst`
- `cd catalyst`
=======
- `brew install --force cmake boost llvm@8 openssl`
- `brew link --force llvm@8`
- `ln -s /usr/local/opt/llvm@8 /usr/local/opt/llvm`
- `export CC=/usr/local/opt/llvm@8/bin/clang`
- `export CXX=/usr/local/opt/llvm@8/bin/clang++`
- `git clone -b master --single-branch https://github.com/turtlecoin/turtlecoin`
- `cd turtlecoin`
>>>>>>> e4ce34313c8774459c93e159ef55faf5c45f942e
- `mkdir build`
- `cd build`
- `cmake ..`
- `make`
The binaries will be in the `src` folder when you are complete.
- `cd src`
- `./Catalystd --version`
#### Windows
##### Prerequisites
You can build for 32-bit or 64-bit Windows. **If you're not sure, pick 64-bit.**
- Download the [Build Tools for Visual Studio 2019](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16) Installer
- When it opens up select **C++ build tools**, it automatically selects the needed parts
- Install Boost (1.69 works the latest is 1.70 and doesn't work). Select the appropriate version for your system:
- [Boost 64-bit](https://bintray.com/boostorg/release/download_file?file_path=1.69.0%2Fbinaries%2Fboost_1_69_0-msvc-14.1-64.exe)
- [Boost 32-bit](https://bintray.com/boostorg/release/download_file?file_path=1.69.0%2Fbinaries%2Fboost_1_69_0-msvc-14.1-32.exe)
- Install the latest full LTS version of OpenSSL (currently OpenSSL 1.1.0L). Select the appropriate version for your system:
- [OpenSSL 64-bit](https://slproweb.com/download/Win64OpenSSL-1_1_0L.exe)
- [OpenSSL 32-bit](https://slproweb.com/download/Win32OpenSSL-1_1_0L.exe)
##### Building
For 64-bit:
- From the start menu, open 'x64 Native Tools Command Prompt for VS 2019'.
- `cd <your_catalyst_directory>`
- `mkdir build`
- `cd build`
- `cmake -G "Visual Studio 16 2019" -A x64 .. -DBOOST_ROOT=C:/local/boost_1_69_0`
- `MSBuild Catalyst.sln /p:Configuration=Release /m` or `MSBuild src\cli.vcxproj /p:Configuration=Release /m`
For 32-bit:
- From the start menu, open 'x86 Native Tools Command Prompt for VS 2019'.
- `cd <your_catalyst_directory>`
- `mkdir build`
- `cd build`
- `cmake -G "Visual Studio 16 2019" -A Win32 .. -DBOOST_ROOT=C:/local/boost_1_69_0`
- `MSBuild Catalyst.sln /p:Configuration=Release /p:Platform=Win32 /m`
The binaries will be in the `src/Release` folder when you are complete.
- `cd src`
- `cd Release`
- `Catalystd.exe --version`
#### Thanks
Cryptonote Developers, Bytecoin Developers, Monero Developers, Forknote Project, TurtleCoin Community
### Copypasta for license when editing files
<!--
Hi Catalyst contributor, thanks for forking and sending back Pull Requests. Extensive docs about contributing are in the works or elsewhere. For now this is the bit we need to get into all the files we touch. Please add it to the top of the files, see [src/CryptoNoteConfig.h](https://github.com/turtlecoin/turtlecoin/commit/28cfef2575f2d767f6e512f2a4017adbf44e610e) for an example.
-->
```
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2014-2018, The Monero Project
// Copyright (c) 2018-2019, The TurtleCoin Developers
// Copyright (c) 2018-2019, The Catalyst Developers
//
// Please see the included LICENSE file for more information.
```