|
1 | | -Copyright (c) 2009-2012 Bitcoin Developers |
2 | | -Distributed under the MIT/X11 software license, see the accompanying file |
3 | | -license.txt or http://www.opensource.org/licenses/mit-license.php. This |
4 | | -product includes software developed by the OpenSSL Project for use in the |
5 | | -OpenSSL Toolkit (http://www.openssl.org/). This product includes cryptographic |
6 | | -software written by Eric Young (eay@cryptsoft.com) and UPnP software written by |
7 | | -Thomas Bernard. |
| 1 | +Mac OS X DigitalNoted build instructions vgulkevic. Find me on Discord if you have any issues - https://discordapp.com/invite/4dUquty |
8 | 2 |
|
9 | | - |
10 | | -Mac OS X DigitalNoted build instructions |
11 | | -Laszlo Hanyecz <solar@heliacal.net> |
12 | | -Douglas Huff <dhuff@jrbobdobbs.org> |
13 | | - |
14 | | - |
15 | | -See readme-qt.rst for instructions on building DigitalNote QT, the |
16 | | -graphical user interface. |
17 | | - |
18 | | -Tested on 10.5 and 10.6 intel. PPC is not supported because it's big-endian. |
19 | | - |
20 | | -All of the commands should be executed in Terminal.app.. it's in |
21 | | -/Applications/Utilities |
| 3 | +- Tested on 10.15.7. |
22 | 4 |
|
23 | 5 | You need to install XCode with all the options checked so that the compiler and |
24 | | -everything is available in /usr not just /Developer I think it comes on the DVD |
25 | | -but you can get the current version from http://developer.apple.com |
26 | | - |
27 | | - |
28 | | -1. Clone the github tree to get the source code: |
29 | | - |
30 | | -git clone http://github.com/DigitalNotedev/DigitalNote DigitalNote |
31 | | - |
32 | | -2. Download and install MacPorts from http://www.macports.org/ |
33 | | - |
34 | | -2a. (for 10.7 Lion) |
35 | | - Edit /opt/local/etc/macports/macports.conf and uncomment "build_arch i386" |
36 | | - |
37 | | -3. Install dependencies from MacPorts |
38 | | - |
39 | | -sudo port install boost db48 openssl miniupnpc |
40 | | - |
41 | | -Optionally install qrencode (and set USE_QRCODE=1): |
42 | | -sudo port install qrencode |
43 | | - |
44 | | -4. Now you should be able to build DigitalNoted: |
45 | | - |
46 | | -cd DigitalNote/src |
47 | | -make -f makefile.osx |
| 6 | +everything is available in /usr not just /Developer |
| 7 | +You can get the current version from http://developer.apple.com |
| 8 | + |
| 9 | +1. Clone the github tree to get the source code |
| 10 | + |
| 11 | + ```git clone https://github.com/CryptoCoderz/DigitalNote DigitalNote``` |
| 12 | + |
| 13 | +2. Install dependencies using Homebrew |
| 14 | + 1. Install dependencies: |
| 15 | + ``` |
| 16 | + brew install boost |
| 17 | + brew install miniupnpc |
| 18 | + brew install openssl |
| 19 | + brew install automake |
| 20 | + brew install autoconf |
| 21 | + brew install libtool |
| 22 | + brew install qrencode |
| 23 | + ``` |
| 24 | + 2. Install Berkeley-DB@6 |
| 25 | + Download: |
| 26 | + |
| 27 | + ``` |
| 28 | + curl -OL http://download.oracle.com/berkeley-db/db-6.2.32.tar.gz |
| 29 | + ``` |
| 30 | + |
| 31 | + Unzip: |
| 32 | + ``` |
| 33 | + tar -xf db-6.2.32.tar.gz |
| 34 | + ``` |
| 35 | + Build: |
| 36 | + ``` |
| 37 | + cd db-6.2.32/build_unix && |
| 38 | + ../dist/configure --prefix=/usr/local/Cellar/berkeley-db@6.2.32 \ |
| 39 | + --enable-cxx && |
| 40 | + make |
| 41 | + ``` |
| 42 | + |
| 43 | + If you get compile errors in `atomic.c` you need to apply a small patch and run the 'build' command above again: |
| 44 | + ``` |
| 45 | + cd ../.. |
| 46 | + curl -OL https://raw.githubusercontent.com/macports/macports-ports/cb92cb90bdc7fb90212e928db32172546eca0f5b/databases/db60/files/patch-src_dbinc_atomic.h |
| 47 | + mv patch-src_dbinc_atomic.h db-6.2.32 |
| 48 | + cd db-6.2.32 |
| 49 | + patch -s -p0 < patch-src_dbinc_atomic.h |
| 50 | + cd .. |
| 51 | + ``` |
| 52 | + |
| 53 | + Install: |
| 54 | + ``` |
| 55 | + inside db-6.2.32/build_unix folder run: |
| 56 | + |
| 57 | + sudo make install |
| 58 | + ``` |
| 59 | + 3. You might need to create a symlink if `openssl/sha.h` or any other header from openssl/ folder cannot be found when building DigitalNoted: |
| 60 | + ``` |
| 61 | + cd /usr/local/include |
| 62 | + ln -s ../opt/openssl/include/openssl . |
| 63 | + ``` |
| 64 | + Your compiler will search in this directory (one of many standard directories) and find the header file sha.h via the shortcut link. |
| 65 | + 4. Now create a symlink to miniupnpc files since it is installed in a folder without a version appended and source files are expecting a version: |
| 66 | + ``` |
| 67 | + cd /usr/local/include |
| 68 | + ln -s ../opt/miniupnpc/include/miniupnpc ./miniupnpc-2.1 |
| 69 | + ``` |
| 70 | + 5. Check the versions of dependencies in src/makefile.osx and amend to match yours if required |
| 71 | + |
| 72 | +3. Now you should be able to build DigitalNoted. Either use makefile to build daemon only or see the Step 3 of the section below (DigitalNote-qt: Qt5 GUI Release for DigitalNote) that uses .pro file: |
| 73 | +
|
| 74 | + ``` |
| 75 | + cd DigitalNote/src |
| 76 | + make -f makefile.osx |
| 77 | + ``` |
48 | 78 |
|
49 | 79 | Run: |
50 | | - ./DigitalNoted --help # for a list of command-line options. |
| 80 | + `./DigitalNoted --help` |
| 81 | +for a list of command-line options. |
| 82 | + |
51 | 83 | Run |
52 | | - ./DigitalNoted -daemon # to start the DigitalNote daemon. |
| 84 | + `./DigitalNoted -daemon` |
| 85 | +to start the DigitalNote daemon. |
| 86 | + |
53 | 87 | Run |
54 | | - ./DigitalNoted help # When the daemon is running, to get a list of RPC commands |
| 88 | + `./DigitalNoted help` |
| 89 | +When the daemon is running, to get a list of RPC commands |
| 90 | +
|
| 91 | +
|
| 92 | +DigitalNote-qt: Qt5 GUI Release for DigitalNote |
| 93 | +----------------------------------------- |
| 94 | +
|
| 95 | +1. Install dependencies: |
| 96 | + ``` |
| 97 | + brew install qrencode |
| 98 | + brew install qt5 |
| 99 | + brew install protobuf |
| 100 | + brew install python2.7 |
| 101 | + sudo easy_install appscript |
| 102 | + ``` |
| 103 | +2. Link qt5: |
| 104 | + ``` |
| 105 | + brew link qt5 --force |
| 106 | + ``` |
| 107 | +3. Run in the ./DigitalNote-2 |
| 108 | + ``` |
| 109 | + qmake RELEASE=1 USE_UPNP=1 USE_QRCODE=1 DigitalNote.pro |
| 110 | + make |
| 111 | + python2.7 contrib/macdeploy/macdeployqtplus DigitalNote-Qt.app -add-qt-tr da,de,es,hu,ru,uk,zh_CN,zh_TW -dmg -fancy contrib/macdeploy/fancy.plist |
| 112 | + ``` |
| 113 | + |
0 commit comments