Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Qt5 linking on macOS #381

Merged
merged 2 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ jobs:
websocketpp
)
brew install ${PACKAGES[@]}
brew link qt@5 --force
# Link keg-only Qt5 according to homebrew info
echo "/usr/local/opt/qt@5/bin" >> $GITHUB_PATH
echo LDFLAGS="-L/usr/local/opt/qt@5/lib" >> $GITHUB_ENV
echo CPPFLAGS="-I/usr/local/opt/qt@5/include" >> $GITHUB_ENV
echo PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig" >> $GITHUB_ENV
# Perl module needed for help2man
#cpan Locale::gettext
- name: Install compiler
Expand Down Expand Up @@ -130,7 +134,7 @@ jobs:
- name: Clone ASDF repo
uses: actions/checkout@v3
with:
repository: AudioSceneDescriptionFormat/asdf-rust
repository: AudioSceneDescriptionFormat/asdf-rust
submodules: true
path: asdf-rust
- name: Build and install ASDF library
Expand Down
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
Loading