Skip to content

Commit

Permalink
Merge pull request #9 from ShorelineCrypto/macwallet
Browse files Browse the repository at this point in the history
Macwallet
  • Loading branch information
ShorelineCrypto committed Jan 16, 2021
2 parents ce784e0 + 6faf9e7 commit 146c0b7
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 20 deletions.
9 changes: 7 additions & 2 deletions doc/MacOS_install/enable_neng.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#! /bin/bash

brew switch openssl 1.0.2t
brew switch miniupnpc 1.9
cd /usr/local/opt
rm openssl
ln -s ../Cellar/openssl@1.0/1.0.2t openssl

cd /usr/local/opt
rm miniupnpc
ln -s ../Cellar/miniupnpc/1.9 miniupnpc

openssl version
27 changes: 20 additions & 7 deletions doc/MacOS_install/prepare_darwin.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,38 @@
#! /bin/bash

brew install gcc@5
brew install boost@1.55 miniupnpc openssl berkeley-db4
brew install miniupnpc openssl berkeley-db4

wget http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.20150206.tar.gz
tar xvfz "download.php?file=miniupnpc-1.9.20150206.tar.gz"
rm -rf /usr/local/Cellar/miniupnpc/1.9
mv miniupnpc-1.9.20150206 /usr/local/Cellar/miniupnpc/1.9
cd /usr/local/Cellar/miniupnpc/1.9
cd /usr/local/Cellar/miniupnpc/1.9
make upnpc-static

brew install openssl@1.0
cd /usr/local/opt
rm miniupnpc
ln -s ../Cellar/miniupnpc/1.9 miniupnpc

wget https://github.com/ShorelineCrypto/nengcoin/releases/download/v1.5.0.0/boost_1.55.0_osx10.11.tgz
tar xvfz boost_1.55.0_osx10.11.tgz
mkdir -p /usr/local/Cellar/boost@1.55/1.55.0_1
rm -rf /usr/local/Cellar/boost@1.55/1.55.0_1
mv 1.55.0_1 /usr/local/Cellar/boost@1.55/
cd /usr/local/opt
rm boost@1.55
ln -s ../Cellar/boost@1.55/1.55.0_1 boost@1.55

brew tap cartr/qt4
brew install qt@4

## Step 4: Switch openssl version 1.1 to 1.0
## https://stackoverflow.com/questions/59006602/dyld-library-not-loaded-usr-local-opt-openssl-lib-libssl-1-0-0-dylib

cd /usr/local/Cellar/openssl@1.1
ln -s ../openssl@1.0/1.0.2t

brew install openssl@1.0
cd /usr/local/opt
rm openssl
ln -s ../Cellar/openssl@1.0/1.0.2t openssl

## Download GUI/CLI wallet
cd ~/Downloads
wget https://github.com/ShorelineCrypto/nengcoin/releases/download/v1.5.0.0/nengcoin_v1.5.0.0_macOS_GUI.dmg
Expand Down
7 changes: 5 additions & 2 deletions doc/MacOS_install/restore_system.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#! /bin/bash

brew switch openssl 1.1.1i
brew switch miniupnpc 2.1
brew link openssl@1.1

cd /usr/local/opt
rm miniupnpc
ln -s ../Cellar/miniupnpc/2.1 miniupnpc

openssl version
42 changes: 33 additions & 9 deletions doc/build-osx.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,19 @@ Perform below command line steps within terminal
Follow brew:
https://brew.sh/

Homebrew version 2.7.0 was major change in that several features of NENG core wallet installation on macOS no longer works.
(1) boost@1.55 was deleted from repository
(2) brew switch is changed to brew link, which itself has limited feature by disabling many cases.
Below is workaround to fix Homebrew post v2.7.0 version installation for NENG macOS wallet.

----------------------

#### Install dependencies using Homebrew

```
brew install wget
brew install gcc@5
brew install boost@1.55 miniupnpc openssl@1.0 berkeley-db4
brew install miniupnpc openssl berkeley-db4
```

Expand All @@ -85,12 +90,15 @@ openssl default installation is now version 1.1, incompatible with NENG.

A workaround solution from
https://stackoverflow.com/questions/59006602/dyld-library-not-loaded-usr-local-opt-openssl-lib-libssl-1-0-0-dylib

post homebrew v2.7.0 equivalent

```
brew install openssl@1.0
cd /usr/local/Cellar/openssl@1.1
ln -s ../openssl@1.0/1.0.2t
brew switch openssl 1.0.2t
cd /usr/local/opt
rm openssl
ln -s ../Cellar/openssl@1.0/1.0.2t openssl
```


Expand Down Expand Up @@ -132,12 +140,28 @@ export CPPFLAGS="-I/usr/local/opt/openssl/include"
miniupnpc 2.1 is default, which is incompatible with NENG.

```
cd /usr/local/Cellar/miniupnpc
tar xvfz ~/Downloads/miniupnpc-1.9.20150206.tar.gz
mv miniupnpc-1.9.20150206 1.9
cd 1.9
wget http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.20150206.tar.gz
tar xvfz "download.php?file=miniupnpc-1.9.20150206.tar.gz"
rm -rf /usr/local/Cellar/miniupnpc/1.9
mv miniupnpc-1.9.20150206 /usr/local/Cellar/miniupnpc/1.9
cd /usr/local/Cellar/miniupnpc/1.9
make upnpc-static
brew switch miniupnpc 1.9
cd /usr/local/opt
rm miniupnpc
ln -s ../Cellar/miniupnpc/1.9 miniupnpc
```

#### Install boost@1.55

```
wget https://github.com/ShorelineCrypto/nengcoin/releases/download/v1.5.0.0/boost_1.55.0_osx10.11.tgz
tar xvfz boost_1.55.0_osx10.11.tgz
mkdir -p /usr/local/Cellar/boost@1.55/1.55.0_1
rm -rf /usr/local/Cellar/boost@1.55/1.55.0_1
mv 1.55.0_1 /usr/local/Cellar/boost@1.55/
cd /usr/local/opt
rm boost@1.55
ln -s ../Cellar/boost@1.55/1.55.0_1 boost@1.55
```

## for both MacOS Mojave or El Capitan
Expand Down

0 comments on commit 146c0b7

Please sign in to comment.