Skip to content

Commit

Permalink
DOC: improve Qt5 linking on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHeho authored and mgeier committed Feb 14, 2024
1 parent 097d7c6 commit 7da39af
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions doc/manual/building-from-source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down

0 comments on commit 7da39af

Please sign in to comment.