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

[email protected] looks in a wrong place for gl.h on newer systems #201472

Open
arekm opened this issue Dec 17, 2024 · 1 comment
Open

[email protected] looks in a wrong place for gl.h on newer systems #201472

arekm opened this issue Dec 17, 2024 · 1 comment
Labels
bug Reproducible Homebrew/homebrew-core bug

Comments

@arekm
Copy link

arekm commented Dec 17, 2024

brew gist-logs <formula> link OR brew config AND brew doctor output

macos 15.2 no longer provides gl.h (not sure which macos version exactly dropped this header)

`
bash-3.2# find /System/Library/Frameworks/ -name gl.h
bash-3.2#

but /opt/homebrew/Cellar/qt@5/5.15.16/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake searches only in these old locations:

set(_GL_INCDIRS "/System/Library/Frameworks/OpenGL.framework/Headers" "/System/Library/Frameworks/AGL.framework/Headers")

On my system some package installed /opt/X11/include/GL/gl.h, so as workaround I used

set(_GL_INCDIRS "/System/Library/Frameworks/OpenGL.framework/Headers" "/System/Library/Frameworks/AGL.framework/Headers" "/opt/X11/include/GL")

to solve this problem. What's the correct way to fix this with homebrew philosophy - no idea.

My brew doctor doesn't say "Your system is ready to brew" but warnings it shows are unrelated.

% brew gist-logs qt@5
Error: No logs.
% brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  ansible@8

Warning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /opt/homebrew/sbin.
Consider setting your PATH for example like so:
  echo 'export PATH="/opt/homebrew/sbin:$PATH"' >> ~/.zshrc
% brew config
HOMEBREW_VERSION: 4.4.12
ORIGIN: https://github.com/Homebrew/brew
HEAD: 3001afe88112c13b5aafdd92e097680897060881
Last commit: 2 days ago
Branch: stable
Core tap JSON: 17 Dec 07:27 UTC
Core cask tap JSON: 17 Dec 07:27 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 14
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: 14-core 64-bit arm_palma
Clang: 16.0.0 build 1600
Git: 2.47.1 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.2-arm64
CLT: 16.2.0.0.1.1733547573
Xcode: 16.2
Rosetta 2: false


### Verification

- [X] My `brew doctor` output says `Your system is ready to brew.` and am still able to reproduce my issue.
- [X] I ran `brew update` and am still able to reproduce my issue.
- [X] I have resolved all warnings from `brew doctor` and that did not fix my problem.
- [X] I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

### What were you trying to do (and why)?

build app that uses qt5

### What happened (include all command output)?

CMake Error at /opt/homebrew/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
  Failed to find "gl.h" in

(and here were paths "/System/Library/Frameworks/OpenGL.framework/Headers" "/System/Library/Frameworks/AGL.framework/Headers"; sorry, don't have full copy of this error)


### What did you expect to happen?

gl.h to be located in places where it exists on macos 15.2 (with additional homebrew packages)

### Step-by-step reproduction instructions (by running `brew` commands)

```shell
No applicable
@arekm arekm added the bug Reproducible Homebrew/homebrew-core bug label Dec 17, 2024
@SMillerDev
Copy link
Member

Does the upstream QT5 binary have the same issue? Because that seems more like an upstream bug then something Brew introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug
Projects
None yet
Development

No branches or pull requests

2 participants