dogecoin/doc/build-macos.md
Patrick Lodder 1b62f12c9c
docs: update macos build guide
- Removes zipping of XCode instruction
- Removes the boost source compile, no longer needed since 41406bf
- Removes the bdb source compile, no longer needed since e23f14c
- Adds instructions for using protobuf@21
- Adds libevent as a dependency
- Use berkeley-db@5
- Formats to be closer to the other build guides
- Remove $-signs in front of commands, to make it easier to c&p
- Updates the brew installation script
- Replaces the old build-osx guide because that is unmaintained
  and this one is better
- Now tested on Sonoma and Ventura, x86_64 and arm64
2024-02-14 09:58:32 -05:00

1.2 KiB

Building dogecoin-qt 1.14 on MacOS

Tested on MacOs Ventura and Sonoma on Intel (x86_64) and Apple Silicon (arm64) macs.

Clone dogecoin locally, or check it out, etc.

git clone https://github.com/dogecoin/dogecoin.git

Set up OSX basic build dependencies.

Install xcode-select commandline utils.

xcode-select --install

Make sure frameworks dir is properly owned...

sudo mkdir -p /usr/local/Frameworks
sudo chown $(whoami):admin /usr/local/Frameworks

Install Brew. (If you already have Brew installed, perform a brew update.)

git clone https://github.com/Homebrew/brew homebrew
eval "$(homebrew/bin/brew shellenv)"
brew update --force --quiet
chmod -R go-w "$(brew --prefix)/share/zsh"

Install dependencies via Brew.

brew install autoconf automake libtool miniupnpc openssl pkg-config protobuf@21 \
             qt5 zeromq qrencode librsvg boost berkeley-db@5 libevent
brew link protobuf@21

Go back to your Dogecoin repo

cd ~/dogecoin

./autogen.sh
./configure --with-gui=qt5 --with-boost=`brew --prefix boost`
make

Go have a beverage.

make install

Go have another beverage.

Run it.

/usr/local/bin/dogecoin-qt