[PR #1207] [MERGED] Fix osx_environment.sh for Homebrew #1768

Closed
opened 2026-05-05 08:01:23 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/debauchee/barrier/pull/1207
Author: @tom-tan
Created: 6/22/2021
Status: Merged
Merged: 6/23/2021
Merged by: @p12tic

Base: masterHead: fix-qt5-path


📝 Commits (2)

  • e80184c Fix osx_environment.sh for Homebrew
  • ac5de11 Update build_dist.sh.in

📊 Changes

2 files changed (+3 additions, -3 deletions)

View changed files

📝 dist/macos/bundle/build_dist.sh.in (+2 -2)
📝 osx_environment.sh (+1 -1)

📄 Description

This request fixes the following error during ./clean_build.sh on macOSX:

$ ./clean_build.sh
...
CMake Error at src/gui/CMakeLists.txt:3 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.
...

The cause of this error is that brew --prefix qt returns the latest Qt directory that may be Qt 6 rather than Qt 5.
This request fixes it by specifying Qt 5 directory explicitly.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/debauchee/barrier/pull/1207 **Author:** [@tom-tan](https://github.com/tom-tan) **Created:** 6/22/2021 **Status:** ✅ Merged **Merged:** 6/23/2021 **Merged by:** [@p12tic](https://github.com/p12tic) **Base:** `master` ← **Head:** `fix-qt5-path` --- ### 📝 Commits (2) - [`e80184c`](https://github.com/debauchee/barrier/commit/e80184ce7ac6e889e9ed51a4342688f8f42cc6c4) Fix osx_environment.sh for Homebrew - [`ac5de11`](https://github.com/debauchee/barrier/commit/ac5de110c0941e3a2da1f2cd0b7ade4fa26c9bdf) Update build_dist.sh.in ### 📊 Changes **2 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `dist/macos/bundle/build_dist.sh.in` (+2 -2) 📝 `osx_environment.sh` (+1 -1) </details> ### 📄 Description This request fixes the following error during `./clean_build.sh` on macOSX: ```console $ ./clean_build.sh ... CMake Error at src/gui/CMakeLists.txt:3 (find_package): By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5", but CMake did not find one. Could not find a package configuration file provided by "Qt5" with any of the following names: Qt5Config.cmake qt5-config.cmake Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR" to a directory containing one of the above files. If "Qt5" provides a separate development package or SDK, be sure it has been installed. ... ``` The cause of this error is that `brew --prefix qt` returns the latest Qt directory that may be Qt 6 rather than Qt 5. This request fixes it by specifying Qt 5 directory explicitly. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 08:01:23 -06:00
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#1768
No description provided.