-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Set up Build Environment on macOS
Janek Bevendorff edited this page Nov 21, 2023
·
26 revisions
Note: This is only a one-time setup guide. For actually building KeePassXC, please refer to our build guide.
Install Homebrew (it is the easiest way to install the required packages on macOS):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Next, install the needed build tools:
brew install cmake asciidoctor
To install the actual build dependencies, there are two options:
- Via Homebrew (faster, but suitable only for local builds).
- Via vcpkg (much slower, but suitable for distribution builds).
Open a terminal and run:
brew installqt@5 argon2 botan qrencode asciidoctor readline minizip
Install vcpkg and pkg-config via Homebrew:
brew install vcpkg pkg-config
Next, update the vcpkg port files:
cd /opt/vcpkg && git pull
Finally, compile and install the actual build dependencies:
vcpkg install argon2 botan minizip qt5 qt5-svg qt5-tools qt5-imageformats \
qt5-translations readline zlib libqrencode
Homebrew:
brew update && brew upgrade
vcpkg:
cd /opt/vcpkg && git pull
vcpkg update
Copyright (C) 2016-2023 KeePassXC Team