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

Building on macOS fails with both Homebrew and MacPorts installed #1537

Open
thebitstick opened this issue Jan 23, 2022 · 1 comment
Open

Comments

@thebitstick
Copy link

What happened?

I use Homebrew for Casks and MacPorts for command line tools.
I have all my dependencies in /opt/local/ for MacPorts.
When I first tried to build, it seems like the build script prefers Homebrew, even if it detects MacPorts.
After removing Homebrew from my $PATH, I was able to build successfully.

[ 82%] Built target barriers
Checking for bundle contents
Copying binaries into bundle
MacPorts found, searching for macdeployqt
Disk image (dmg) only created for Release builds
Building debug bundle
Bundle created successfully
[ 82%] Built target Barrier_MacOS

I readded Homebrew to my $PATH and confirmed that it is the case that it doesn't build.

[ 82%] Built target barriers
Checking for bundle contents
Copying binaries into bundle
MacPorts found, searching for macdeployqt
Homebrew found, searching for macdeployqt
Error: No such keg: /opt/homebrew/Cellar/qt@5
Please install package qt
make[2]: *** [CMakeFiles/Barrier_MacOS] Error 1
make[1]: *** [CMakeFiles/Barrier_MacOS.dir/all] Error 2
make: *** [all] Error 2

Version

From Git HEAD or commit (specify below)

Git commit hash (if applicable)

433126e

If applicable, where did you install Barrier from?

No response

What OSes are you seeing the problem on? (Check all that apply)

macOS

What OS versions are you using?

macOS 12.1, Darwin 21.2.0, ARM64, on a Macbook Air M1

Relevant log output

No response

Any other information

No response

@thejasonfisher
Copy link

thejasonfisher commented Feb 11, 2022

#1562

The SDK/version check in this PR may help. This is a test release build on my M1 with 12.2.1: https://github.com/thejasonfisher/barrier/releases/download/macos-monterey-fixes/barrier-2.4.0-macOS-12.0-arm64-test.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants