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

Linux: update GLEW to 2.2.0, and enable EGL support in GLEW to match wxWidgets #1053

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

jwise
Copy link
Contributor

@jwise jwise commented Jan 11, 2023

On Linux, wxGTK by default attempts to use EGL if it is available on the system, rather than GLX. Unfortunately, the ancient version of GLEW that we packaged in did not support EGL, and even if it did, the configuration was not set up to enable EGL. To solve this, we:

  • upgrade GLEW to version 2.2.0, from upstream GitHub

  • modify the Bambu build process to enforce that we use GLEW from the built dependency

  • remove the "extra" even older GLEW that was packaged

  • modify GLEW's CMake configuration to enable EGL support when it is available on the system (using the same test as wxWidgets uses to decide whether to enable EGL support); if EGL isn't available at compile time, both GLEW and wxWidgets will fall back on GLX

Note that you probably will have to blow away your CMakeCache for this to work correctly -- otherwise, you may end up with the system GLEW, if you have one installed (which is probably not what you want -- on Ubuntu, the system GLEW is GLX, not EGL).

This supersedes #923.

…wxWidgets

On Linux, wxGTK by default attempts to use EGL if it is available on the
system, rather than GLX.  Unfortunately, the ancient version of GLEW that we
packaged in did not support EGL, and even if it did, the configuration was
not set up to enable EGL.  To solve this, we:

  * upgrade GLEW to version 2.2.0, from upstream GitHub

  * modify the Bambu build process to enforce that we use GLEW from the
    built dependency

  * remove the "extra" even older GLEW that was packaged

  * modify GLEW's CMake configuration to enable EGL support when it is
    available on the system (using the same test as wxWidgets uses to decide
    whether to enable EGL support); if EGL isn't available at compile time,
    both GLEW and wxWidgets will fall back on GLX

Note that you probably will have to blow away your CMakeCache for this to
work correctly -- otherwise, you may end up with the system GLEW, if you
have one installed (which is probably not what you want -- on Ubuntu, the
system GLEW is GLX, not EGL).
@jwise
Copy link
Contributor Author

jwise commented Jan 11, 2023

cc: @lanewei120

@lanewei120 lanewei120 merged commit fe13ca0 into bambulab:master Jan 12, 2023
@lanewei120
Copy link
Collaborator

thanks for doing this

c2h5oh pushed a commit to c2h5oh/BambuStudio that referenced this pull request May 31, 2023
…mbulab#1053)

* Add & revise FLSun Profile

FLSun Q5
FLSun QQ-S Pro

* Patch Artillery Sidewinder X2 profile

revision speed parameters
revision start & end code

* change Anycubic 4Max Pro image

* Adjustments to the profile of the Anycubic 4Max Pro

Preparation for adding more Anycubic printers

* add more Anycubic profiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants