From 7da39aff3ff76895fbc8244845bc86dbde7f695c Mon Sep 17 00:00:00 2001 From: HaHeho Date: Wed, 20 Dec 2023 18:19:28 +0100 Subject: [PATCH] DOC: improve Qt5 linking on macOS --- doc/manual/building-from-source.rst | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/doc/manual/building-from-source.rst b/doc/manual/building-from-source.rst index fe12b428..fd683e48 100644 --- a/doc/manual/building-from-source.rst +++ b/doc/manual/building-from-source.rst @@ -179,20 +179,14 @@ We recommend installing all dependencies from Homebrew_:: You might be able to skip installing llvm if you have Xcode installed. -And then:: - - brew link qt5 --force - -However, if you already have a newer version of Qt installed (for example if -you installed the very useful package ``qjackctl``), you have to run this -first:: - - brew unlink qt - -Once SSR has compiled successfully, you can switch back to the newer Qt -version (otherwise ``qjackctl`` will not work anymore):: - - brew link qt +And then temporarily link the keg-only Qt5 according to homebrew info +(this is neccesary if you already have a newer version of Qt installed, +for example if you installed the very useful package ``qjackctl``):: + + export PATH="/usr/local/opt/qt@5/bin:$PATH" + export LDFLAGS="-L/usr/local/opt/qt@5/lib" + export CPPFLAGS="-I/usr/local/opt/qt@5/include" + export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig" If you want to use ``help2man`` on macOS, you have to install a Perl package::