[GH-ISSUE #1537] Building on macOS fails with both Homebrew and MacPorts installed #1160

Open
opened 2026-05-05 07:32:51 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @thebitstick on GitHub (Jan 23, 2022).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1537

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)

433126e7a1

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

Originally created by @thebitstick on GitHub (Jan 23, 2022). Original GitHub issue: https://github.com/debauchee/barrier/issues/1537 ### 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) 433126e7a15d8cb46ac3b96cd3cc965ca7e34905 ### 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_
Author
Owner

@thejasonfisher commented on GitHub (Feb 11, 2022):

https://github.com/debauchee/barrier/pull/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

<!-- gh-comment-id:1036107949 --> @thejasonfisher commented on GitHub (Feb 11, 2022): https://github.com/debauchee/barrier/pull/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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#1160
No description provided.