-
-
Notifications
You must be signed in to change notification settings - Fork 354
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 #44 from aizensou/master
Merging for version 0.1.8
- Loading branch information
Showing
39 changed files
with
285 additions
and
477 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,35 +1,15 @@ | ||
Mac OS X zcoind build instructions | ||
Mac OS X Daemon Build Instructions and Notes | ||
==================================== | ||
|
||
Authors | ||
------- | ||
|
||
* Laszlo Hanyecz <[email protected]> | ||
* Douglas Huff <[email protected]> | ||
* Colin Dean <[email protected]> | ||
* Gavin Andresen <[email protected]> | ||
|
||
License | ||
------- | ||
|
||
Copyright (c) 2009-2012 Bitcoin Developers | ||
|
||
Distributed under the MIT/X11 software license, see the accompanying | ||
file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
This product includes software developed by the OpenSSL Project for use in | ||
the OpenSSL Toolkit (http://www.openssl.org/). | ||
|
||
This product includes cryptographic software written by | ||
Eric Young ([email protected]) and UPnP software written by Thomas Bernard. | ||
* Modified by Aizen Sou ([email protected]) @ 2017 | ||
|
||
Notes | ||
----- | ||
|
||
See `doc/readme-qt.rst` for instructions on building zcoin, the | ||
See `doc/readme-qt.rst` for instructions on building zcoin-qt, the | ||
graphical user interface. | ||
|
||
Tested on OS X 10.5 through 10.8 on Intel processors only. PPC is not | ||
Tested on OS X 10.7 through 10.12 on Intel processors only. PPC is not | ||
supported because it is big-endian. | ||
|
||
All of the commands should be executed in a Terminal application. The | ||
|
@@ -38,96 +18,41 @@ built-in one is located in `/Applications/Utilities`. | |
Preparation | ||
----------- | ||
|
||
You need to install XCode with all the options checked so that the compiler | ||
and everything is available in /usr not just /Developer. XCode should be | ||
available on your OS X installation media, but if not, you can get the | ||
current version from https://developer.apple.com/xcode/. If you install | ||
Xcode 4.3 or later, you'll need to install its command line tools. This can | ||
be done in `Xcode > Preferences > Downloads > Components` and generally must | ||
be re-done or updated every time Xcode is updated. | ||
|
||
There's an assumption that you already have `git` installed, as well. If | ||
not, it's the path of least resistance to install [Github for Mac](https://mac.github.com/) | ||
(OS X 10.7+) or | ||
[Git for OS X](https://code.google.com/p/git-osx-installer/). It is also | ||
available via Homebrew or MacPorts. | ||
|
||
You will also need to install [Homebrew](http://mxcl.github.io/homebrew/) | ||
or [MacPorts](https://www.macports.org/) in order to install library | ||
dependencies. It's largely a religious decision which to choose, but, as of | ||
December 2012, MacPorts is a little easier because you can just install the | ||
dependencies immediately - no other work required. If you're unsure, read | ||
the instructions through first in order to assess what you want to do. | ||
Homebrew is a little more popular among those newer to OS X. | ||
|
||
The installation of the actual dependencies is covered in the Instructions | ||
sections below. | ||
|
||
Instructions: MacPorts | ||
---------------------- | ||
|
||
### Install dependencies | ||
Install the OS X command line tools: | ||
|
||
Installing the dependencies using MacPorts is very straightforward. | ||
xcode-select --install | ||
|
||
sudo port install boost db48@+no_java openssl miniupnpc | ||
When the popup appears, click Install. | ||
|
||
### Building `zcoind` | ||
|
||
1. Clone the github tree to get the source code and go into the directory. | ||
|
||
git clone [email protected]:zcoin/zcoin.git zcoin | ||
cd zcoin | ||
|
||
2. Build zcoind: | ||
|
||
cd src | ||
make -f makefile.osx | ||
|
||
3. It is a good idea to build and run the unit tests, too: | ||
|
||
make -f makefile.osx test | ||
You will also need to install [Homebrew](http://mxcl.github.io/homebrew/) | ||
|
||
Instructions: HomeBrew | ||
Dependencies | ||
---------------------- | ||
|
||
#### Install dependencies using Homebrew | ||
brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config --c++11 qt5 | ||
|
||
brew install boost miniupnpc openssl berkeley-db4 | ||
|
||
Note: After you have installed the dependencies, you should check that the Brew installed version of OpenSSL is the one available for compilation. You can check this by typing | ||
|
||
openssl version | ||
|
||
into Terminal. You should see OpenSSL 1.0.1e 11 Feb 2013. | ||
|
||
If not, you can ensure that the Brew OpenSSL is correctly linked by running | ||
If you have trouble with linking openssl you can ensure that the Brew OpenSSL is correctly linked by running | ||
|
||
brew link openssl --force | ||
|
||
Rerunning "openssl version" should now return the correct version. | ||
Or manually by | ||
|
||
cd /usr/local/include | ||
ln -s ../opt/openssl/include/openssl . | ||
### Building `zcoind` | ||
|
||
1. Clone the github tree to get the source code and go into the directory. | ||
|
||
git clone git@github.com:zcoin/zcoin.git zcoin | ||
git clone https://github.com/zcoinofficial/zcoin | ||
cd zcoin | ||
|
||
2. Modify source in order to pick up the `openssl` library. | ||
|
||
Edit `makefile.osx` to account for library location differences. There's a | ||
diff in `contrib/homebrew/makefile.osx.patch` that shows what you need to | ||
change, or you can just patch by doing | ||
|
||
patch -p1 < contrib/homebrew/makefile.osx.patch | ||
|
||
3. Build zcoind: | ||
2. Build zcoind: | ||
|
||
cd src | ||
make -f makefile.osx | ||
|
||
4. It is a good idea to build and run the unit tests, too: | ||
3. It is a good idea to build and run the unit tests, too: | ||
|
||
make -f makefile.osx test | ||
|
||
|
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,6 +1,8 @@ | ||
zcoin: Qt4 GUI for zcoin | ||
zcoin: Qt GUI for zcoin | ||
=============================== | ||
|
||
Modified by Aizen Sou ([email protected]) @ 2017 | ||
|
||
Build instructions | ||
=================== | ||
|
||
|
@@ -47,37 +49,78 @@ An executable named `zcoin-qt` will be built. | |
|
||
.. _`Qt Creator`: http://qt-project.org/downloads/ | ||
|
||
Mac OS X | ||
-------- | ||
|
||
- Download and install the `Qt Mac OS X SDK`_. It is recommended to also install Apple's Xcode with UNIX tools. | ||
Ubuntu => 14.04 | ||
------- | ||
|
||
First you have to install the dependencies | ||
Qt4 dependencies : | ||
|
||
:: | ||
|
||
sudo apt-get install -y build-essential libssl-dev libboost-all-dev libqt4-dev libprotobuf-dev protobuf-compiler libqrencode-dev software-properties-common | ||
|
||
|
||
- Download and install either `MacPorts`_ or `HomeBrew`_. | ||
Qt5 dependencies: | ||
|
||
- Execute the following commands in a terminal to get the dependencies using MacPorts: | ||
:: | ||
|
||
sudo apt-get install -y libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools | ||
|
||
|
||
then execute the following: | ||
|
||
:: | ||
|
||
sudo port selfupdate | ||
sudo port install boost db48 miniupnpc | ||
qmake "RELEASE=1" | ||
make | ||
|
||
|
||
If you have trouble with the taskbar doesn't show up in Ubuntu (It's an Unity's specific bug), you could try to fix it with giving this below command in the terminal to restart Unity | ||
------- | ||
:: | ||
|
||
initctl restart unity-panel-service | ||
|
||
|
||
Mac OS X | ||
-------- | ||
|
||
- Download and install the `Qt Mac OS X SDK`_. It is recommended to also install Apple's Xcode with UNIX tools. | ||
|
||
- Download and install `HomeBrew`_. | ||
|
||
- Execute the following commands in a terminal to get the dependencies using HomeBrew: | ||
|
||
:: | ||
|
||
brew update | ||
brew install boost miniupnpc openssl berkeley-db4 | ||
brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config --c++11 qt5 | ||
|
||
- If using HomeBrew, edit `zcoin-qt.pro` to account for library location differences. There's a diff in `contrib/homebrew/bitcoin-qt-pro.patch` that shows what you need to change, or you can just patch by doing | ||
- Make sure to enfore linking qmake in the Terminal.app | ||
|
||
:: | ||
|
||
patch -p1 < contrib/homebrew/bitcoin.qt.pro.patch | ||
brew link qt5 --force | ||
|
||
- Open the zcoin-qt.pro file in Qt Creator and build as normal (cmd-B) | ||
|
||
.. _`Qt Mac OS X SDK`: http://qt-project.org/downloads/ | ||
.. _`MacPorts`: http://www.macports.org/install.php | ||
.. _`HomeBrew`: http://mxcl.github.io/homebrew/ | ||
|
||
- Or using Terminal with: | ||
|
||
:: | ||
|
||
qmake "RELEASE=1" zcoin.pro | ||
make | ||
|
||
- After that you could deploy the app with | ||
|
||
:: | ||
|
||
contrib/macdeploy/macdeployqtplus zcoin-qt.app -dmg -fancy contrib/macdeploy/fancy.plist -verbose 2 | ||
|
||
|
||
Build configuration options | ||
============================ | ||
|
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
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 |
---|---|---|
|
@@ -304,6 +304,8 @@ class CDB | |
} | ||
|
||
bool static Rewrite(const std::string& strFile, const char* pszSkip = NULL); | ||
|
||
|
||
}; | ||
|
||
|
||
|
Oops, something went wrong.