Skip to content

Commit

Permalink
Fix build macOS 10.14 Mojave
Browse files Browse the repository at this point in the history
Signed-off-by: k155 <[email protected]>
  • Loading branch information
216k155 committed Oct 27, 2018
1 parent 7b86662 commit dbbfc32
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,21 @@ Install the OS X command line tools:

When the popup appears, click `Install`.

If you're running macOS Mojave 10.14/Xcode 10.0 or later, and want to use the depends system, you'll also need to use the following script to install the macOS system headers into /usr/include.

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

Then install [Homebrew](https://brew.sh)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

#### Dependencies

brew install cmake automake berkeley-db4 leveldb libtool boost@1.66 --c++11 --without-single --without-static miniupnpc openssl pkg-config protobuf qt5 libevent imagemagick --with-librsvg
brew install cmake automake berkeley-db4 leveldb libtool boost@1.60 --c++11 --without-single --without-static miniupnpc openssl pkg-config protobuf qt5 libevent imagemagick --with-librsvg

Link boost 1.66
Link boost 1.60

brew link boost@1.66 --force
brew link boost@1.60 --force

#### Build Luxcore

Expand Down
2 changes: 1 addition & 1 deletion src/qt/blockexplorer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ std::string AddressToString(const CTxDestination& Address)
continue;
} else if (!nTxSummed && nEntry > 1) {
// avoid partial deltas + TxToRow sum
for (AddressIndexVector::const_iterator rit(&aIndex.at(nEntry-1)); rit!=aIndex.begin(); rit--) {
for (AddressIndexVector::const_iterator rit = (aIndex.begin() + (nEntry-1)); rit!=aIndex.begin(); rit--) {
if (rit->first.txhash != it->first.txhash) break;
Sum -= rit->second;
}
Expand Down
1 change: 1 addition & 0 deletions src/qt/hexaddressconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <iostream>
#include <QClipboard>
#include <QRegularExpressionValidator>

#define paternAddress "^[a-fA-F0-9]{40,40}$"

Expand Down

0 comments on commit dbbfc32

Please sign in to comment.