-
-
Notifications
You must be signed in to change notification settings - Fork 186
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 for Wayland #1577
Fix for Wayland #1577
Conversation
…est 2.2.0 release. Signed-off-by: Matthew J. Milner <matterhorn103@proton.me>
See this issue at the GLEW repo. Fixes #567. As discussed on the forum, the current proposal is that this be a temporary fix for 1.99 and that for 2.0 Avogadro moves away to another bindings library. Note that my commit message is wrong, GLEW needs to be from 2022 or newer in order to have The URL in It seems GLEW is a while away from any 2.2.1 release still, so I guess that means not only compiling the AppImage and flatpak with the snapshot, but also packaging our own GLEW for 1.99, unless distros have backported the fixes since the 2.2.0 release. |
I mentioned on the forum, but is there something in the snapshot header that indicates that |
Okay, here's what I think we need to do - create a For example: |
Well it builds correctly without complaining, whereas when I use the 2.2.0 release it tells me that
And there are other entries in the code, for example the above is also in
|
I'm not sure I quite follow. Is your suggestion that Is it a bad idea to just use the snapshot and |
Consider a package maintainer. GLEW is at 2.2.0 release, which does not have this function. They want to compile Unfortunately, GLEW doesn't provide its own If we have a #ifdef GLEW_HAS_CONTEXT_INIT
glewContextInit(…)
#else
glewInit(…)
#endif |
What GLEW did is really annoying:
So for now, we'll need to do a workaround until we can remove GLEW for good. |
Ok I had another look at projects that had linked to the GLEW issue to see how they had handled maintenance, and I discovered that actually it does work on Wayland (at least in many cases), it's just that an error gets raised on initiation, but if this is error is caught and ignored then it's not an issue. This means there's actually a different, simpler fix possible: if the fact that on Wayland the result of Happily this works even with the released 2.2.0, which means no need for the snapshot, no need for |
Signed-off-by: Matthew J. Milner <matterhorn103@proton.me>
Here are the build results |
Here are the build results |
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.