@@ -15,40 +15,119 @@ Douglas Huff <dhuff@jrbobdobbs.org>
1515See readme-qt.rst for instructions on building DigitalNote QT, the
1616graphical user interface.
1717
18- Tested on 10.5 and 10.6 intel. PPC is not supported because it's big-endian.
18+ - Tested on 10.5 and 10.6 intel and 10.15.2.
19+ - PPC is not supported because it's big-endian.
1920
2021All of the commands should be executed in Terminal.app.. it's in
2122/Applications/Utilities
2223
2324You 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
25+ everything is available in /usr not just /Developer
26+ You can get the current version from http://developer.apple.com
27+
28+
29+ 1 . Clone the github tree to get the source code
30+
31+ ``` git clone http://github.com/DigitalNotedev/DigitalNote DigitalNote ```
32+
33+ 2 . Install dependencies using Homebrew
34+ 1 . Install dependencies:
35+ ```
36+ brew install boost@1.59
37+ brew install miniupnpc
38+ brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
39+ brew install automake
40+ brew install autoconf
41+ brew install libtool
42+ brew install qrencode
43+ ```
44+ 2. Install Berkeley-DB@6
45+ Download:
46+
47+ ```
48+ curl -OL http://download.oracle.com/berkeley-db/db-6.2.32.tar.gz
49+ ```
50+
51+ Unzip:
52+ ```
53+ tar -xf db-6.2.32.tar.gz
54+ ```
55+ Build:
56+ ```
57+ cd db-6.2.32/build_unix &&
58+ ../dist/configure --prefix=/usr/local/Cellar/berkeley-db@6.2.32 \
59+ --enable-cxx &&
60+ make
61+ ```
62+
63+ If you get compile errors in `atomic.c` you need to apply a small patch and run the 'build' command above again:
64+ ```
65+ cd ../..
66+ curl -OL https://raw.githubusercontent.com/macports/macports-ports/cb92cb90bdc7fb90212e928db32172546eca0f5b/databases/db60/files/patch-src_dbinc_atomic.h
67+ mv patch-src_dbinc_atomic.h db-6.2.32
68+ cd db-6.2.32
69+ patch -s -p0 < patch-src_dbinc_atomic.h
70+ cd ..
71+ ```
72+
73+ Install:
74+ ```
75+ inside db-6.2.32/build_unix folder run:
76+
77+ sudo make install
78+ ```
79+ 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:
80+ ```
81+ cd /usr/local/include
82+ ln -s ../opt/openssl/include/openssl .
83+ ```
84+ Your compiler will search in this directory (one of many standard directories) and find the header file sha.h via the shortcut link.
85+ 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:
86+ ```
87+ cd /usr/local/include
88+ ln -s ../opt/miniupnpc/include/miniupnpc ./miniupnpc-2.1
89+ ```
90+ 5. Check the versions of dependencies in src/makefile.osx and amend to match yours if required
91+
92+ 3. Now you should be able to build DigitalNoted:
93+
94+ ```
95+ cd DigitalNote-2/src
96+ make -f makefile.osx
97+ ```
4898
4999Run:
50- ./DigitalNoted --help # for a list of command-line options.
100+ `./DigitalNoted --help`
101+ for a list of command-line options.
102+
51103Run
52- ./DigitalNoted -daemon # to start the DigitalNote daemon.
104+ `./DigitalNoted -daemon`
105+ to start the DigitalNote daemon.
106+
53107Run
54- ./DigitalNoted help # When the daemon is running, to get a list of RPC commands
108+ `./DigitalNoted help`
109+ When the daemon is running, to get a list of RPC commands
110+
111+
112+ DigitalNote-qt: Qt5 GUI Release for DigitalNote
113+ -----------------------------------------
114+
115+ 1. Install dependencies:
116+ ```
117+ brew install qrencode
118+ brew install qt5
119+ brew install protobuf
120+ brew install python2.7
121+ sudo easy_install appscript
122+ ```
123+ 2. Link qt5:
124+ ```
125+ brew link qt5 --force
126+ ```
127+ 3. Run in the ./DigitalNote-2
128+ ```
129+ qmake RELEASE=1 USE_UPNP=1 USE_QRCODE=1 DigitalNote.pro
130+ make
131+ 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
132+ ```
133+
0 commit comments