Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build-osx.md #1213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions doc/build-osx.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@ Then install [Homebrew](https://brew.sh).
Dependencies
----------------------

brew install automake berkeley-db4 libtool boost miniupnpc [email protected] pkg-config protobuf python qt libevent qrencode
Running this command will install all the dependencies needed to build this project:

```shell
brew install automake berkeley-db4 libtool boost miniupnpc [email protected] pkg-config protobuf python qt@5 libevent qrencode
```

If you run into issues, check [Homebrew's troubleshooting page](https://docs.brew.sh/Troubleshooting).
See [dependencies.md](dependencies.md) for a complete overview.

If you want to build the disk image with `make deploy` (.dmg / optional), you need RSVG:

```shell
brew install librsvg
```
Expand All @@ -35,7 +40,7 @@ you can use [this](/contrib/install_db4.sh) script to install it
like so:

```shell
./contrib/install_db4.sh .
CFLAGS="-Wno-error=implicit-function-declaration" ./contrib/install_db4.sh .
```

from the root of the repository.
Expand All @@ -60,6 +65,18 @@ from the root of the repository.
./configure
make
```

If you opted to build Berkeley DB 4.8 above, then this is how you'll build it instead:
```shell
export BDB_PREFIX=`pwd`'/db4'
./autogen.sh
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" --with-boost=/opt/homebrew/Cellar/boost/1.80.0
```

If the build process complains about not being able to find openssl, run this then try again:
```shell
brew link [email protected] --force
```

3. It is recommended to build and run the unit tests:
```shell
Expand Down