Repository navigation
Compiling KVIrc on macOS
Up to date steps can be found in the CI build recipe at https://github.com/kvirc/KVIrc/blob/master/.github/workflows/build_macos.yml
-
Install Homebrew if you havenât already. This will also install the Xcode Command Line Tools (llvm/clang, make, etc). Thereâs no need to install Xcode from the App Store.
-
Install The prerequisites from Homebrew.
brew install cmake enchant qt@6 openssl@3 -
Download the KVIrc sourcetree with Git and create a
buildfolder as usual. Git was already installed alongside Homebrew. -
Run CMake, telling it where Qt is installed:
cmake -DCMAKE_PREFIX_PATH=/usr/local/opt/qt6/ ..
This folder might change in the future, Homebrew tells you where Qt 6 is going to be installed, so just read its output.
-
Compile and install:
make installcreates an .app bundle in thebuildfolder.macdeployqt "build/KVIrc.app" -appstore-compliantis needed to add all the necessary dependencies.
To launch it, double click it. To âinstallâ it, drag it to the Applications folder, but this is not necessary. You can redistribute this bundle to other users and theyâll be able to install it right away. Remember, though, that an .app bundle is actually a folder, so youâll need to compress it first. Right-clicking it and selecting âCompressâ will be enough.
- Optional codesign:
On recent macOS you'll need to codesign the application (and its libraries) in order to be able to run it. The following script should take care of that:
find . -iname '*framework' -type d | while read dir; do codesign --force --deep -s - $dir; done find . -iname '*dylib' | while read dir; do codesign --force --deep -s - $dir; done codesign --force --deep -s - KVIrc.app
Please consult https://github.com/kvirc/KVIrc/issues/2529 for more information on the codesign step.