From c93095506dbbdb25035182d599c0d775b3772ac2 Mon Sep 17 00:00:00 2001 From: Aric Fedida <169619+skaag@users.noreply.github.com> Date: Tue, 25 Oct 2022 15:51:53 -0700 Subject: [PATCH] Update build-osx.md Comprehensive fixes that helped me successfully build the client --- doc/build-osx.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/doc/build-osx.md b/doc/build-osx.md index 84eb9e2310..871d80d522 100644 --- a/doc/build-osx.md +++ b/doc/build-osx.md @@ -19,12 +19,17 @@ Then install [Homebrew](https://brew.sh). Dependencies ---------------------- - brew install automake berkeley-db4 libtool boost miniupnpc openssl@1.1 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 openssl@1.1 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 ``` @@ -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. @@ -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 openssl@1.1 --force + ``` 3. It is recommended to build and run the unit tests: ```shell