forked from MultiChain/multichain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
41 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,72 +1,71 @@ | ||
Building MultiChain | ||
===================== | ||
|
||
Linux Build Notes | ||
===================== | ||
|
||
System requirements | ||
-------------------- | ||
|
||
C++ compilers are memory-hungry. It is recommended to have at least 1 GB of | ||
memory available when compiling MultiChain. With 512MB of memory or less | ||
compilation will take much longer due to swap thrashing. | ||
These instructions have been tested on Ubuntu 14.04 x64 only. | ||
|
||
C++ compilers are memory-hungry. It is recommended to have at least 1 GB of memory available when compiling MultiChain. With 512MB of memory or less compilation will take much longer due to swap thrashing. | ||
|
||
Dependency Build Instructions: Ubuntu | ||
---------------------------------------------- | ||
|
||
sudo apt-get update | ||
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils | ||
sudo apt-get install libboost-all-dev | ||
sudo apt-get install git | ||
sudo apt-get install software-properties-common | ||
sudo add-apt-repository ppa:bitcoin/bitcoin | ||
sudo apt-get update | ||
sudo apt-get install libdb4.8-dev libdb4.8++-dev | ||
Linux Build Notes (currently Ubuntu only) | ||
===================== | ||
|
||
Install dependencies | ||
---------------------------------------------- | ||
|
||
sudo apt-get update | ||
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils | ||
sudo apt-get install libboost-all-dev | ||
sudo apt-get install git | ||
sudo apt-get install software-properties-common | ||
sudo add-apt-repository ppa:bitcoin/bitcoin | ||
sudo apt-get update | ||
sudo apt-get install libdb4.8-dev libdb4.8++-dev | ||
|
||
To Build | ||
Compile MultiChain for Ubuntu (64-bit) | ||
--------------------- | ||
|
||
./autogen.sh | ||
./configure | ||
make | ||
./autogen.sh | ||
./configure | ||
make | ||
|
||
Notes | ||
----- | ||
|
||
This will build multichaind, multichain-cli and multitchain-util in ./src | ||
This will build `multichaind`, `multichain-cli` and `multitchain-util` in the `src` directory. | ||
|
||
The release is built with GCC and then "strip multichaind" to strip the debug | ||
symbols, which reduces the executable size by about 90%. | ||
The release is built with GCC and then `strip multichaind` to strip the debug symbols, which reduces the executable size by about 90%. | ||
|
||
|
||
Windows Build Notes | ||
Windows Build Notes (cross compilation on Ubuntu) | ||
===================== | ||
|
||
Dependency Build Instructions: Ubuntu | ||
Install dependencies | ||
---------------------------------------------- | ||
|
||
sudo apt-get update | ||
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils | ||
sudo apt-get install g++-mingw-w64-i686 mingw-w64-i686-dev g++-mingw-w64-x86-64 mingw-w64-x86-64-dev curl | ||
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev | ||
sudo apt-get install git | ||
sudo add-apt-repository ppa:bitcoin/bitcoin | ||
sudo apt-get update | ||
sudo apt-get install libdb4.8-dev libdb4.8++-dev | ||
sudo apt-get update | ||
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils | ||
sudo apt-get install g++-mingw-w64-i686 mingw-w64-i686-dev g++-mingw-w64-x86-64 mingw-w64-x86-64-dev curl | ||
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev | ||
sudo apt-get install git | ||
sudo add-apt-repository ppa:bitcoin/bitcoin | ||
sudo apt-get update | ||
sudo apt-get install libdb4.8-dev libdb4.8++-dev | ||
|
||
To Build | ||
Compile MultiChain for Windows (64-bit) | ||
--------------------- | ||
|
||
./autogen.sh | ||
cd depends | ||
make HOST=x86_64-w64-mingw32 -j4 | ||
cd .. | ||
./configure --prefix=`pwd`/depends/x86_64-w64-mingw32 --enable-cxx --disable-shared --enable-static --with-pic | ||
make | ||
./autogen.sh | ||
cd depends | ||
make HOST=x86_64-w64-mingw32 -j4 | ||
cd .. | ||
./configure --prefix=`pwd`/depends/x86_64-w64-mingw32 --enable-cxx --disable-shared --enable-static --with-pic | ||
make | ||
|
||
Notes | ||
----- | ||
|
||
This will build multichaind.exe, multichain-cli.exe and multitchain-util.exe in ./src | ||
This will build `multichaind.exe`, `multichain-cli.exe` and `multitchain-util.exe` in the `src` directory. | ||
|