-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix GLEW deprecation errors #20294
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
Fix GLEW deprecation errors #20294
Conversation
- Move `TGLWSIncludes.h` from the `inc` to the `src` directory - Don't install the GLEW headers
silverweed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Test Results 20 files 20 suites 3d 14h 7m 30s ⏱️ Results for commit e16b358. |
|
Hi @bellenot , while testing latest root mater changes , we get build errors in CMSSW [a]. The root change set which we are testing in cmssw is 4ee5e77...59b8b01 . I think this error might be a side effect of change here. Any idea why this header is now needed ? [a] |
|
|
|
ah previously |
|
Yes, I guess you don't build ROOT with |
|
we do build ROOT with |
|
|
|
@smuzaffar Weird, it looks like |
|
Wait, isn't it just because this PR removed installing of the glew headers in So no matter what the include path is, the headers won't be found because ROOT doesn't ship them anymore. |
|
This PR did two things in one commit that seem unrelated to me:
The Installing the builtin glew headers was not deprecated yet, so this change comes at a surprise. But I agree it's a good change, because we want to replace
As a consequence, we also need to deprecate the On the CMSSW side, glew is not used anyway, so I'll remove some includes there to make it compile. I'll open a PR to CMSSW. |
The Frame Buffer Object (FBO) feature is part of OpenGL since version 3.0 from 2008. Nowadays, we can therefore assume that this feature is always available. That means we don't have to use GLEW to check whether this feature is present. Like that, we can avoid using GLEW entirely, which is an implementation detail of OpenGL loading in ROOT that will soon go away. To make sure GLEW is not included anymore, this commit replaces includes of `TGLIncludes.h` with the OpenGL headers only, because `TGLIncludes.h` was including OpenGL plus GLEW. See also: * root-project/root#18471 * root-project/root#20294 (comment)
|
@smuzaffar, I think this PR should fix the situation for CMSSW: That gives us more time to think calmly what to do on the ROOT side. |
TGLWSIncludes.hfrom theincto thesrcdirectory