-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Error: lacking either libGL or libEGL so could not fallback to other #380
Comments
Does the examples at https://github.com/rust-windowing/glutin run? |
No, I get the exact same error message. EDIT: I also tried to install |
I haven't tried this myself, but it seems you will need to install a WSLg driver for your GPU: https://devblogs.microsoft.com/commandline/wslg-architecture/#hardware-accelerated-opengl |
Unfortunately WSLg isn't available in the stable channel for now. Besides, I think this should work correctly without it as many heavy GUI-based applications work fine with as long as there is an X server running. |
Are you sure it's supposed to work on WSL2 stable? The GUI tutorial says this can only work on Windows 10 Insider Preview build 21362+ as of 2021-04-27. |
As I said, it isn't available as stable for now. But it's been possible to run GUI applications for a very long time already, by using a third-party X server like Xming. WSLg is the next step in that direction, allowing to run applications natively on WSL with first-class support without using a third-party server, but it's not available in stable yet. |
There might be some confusion. An X server on Windows (like Xming or VcXsrv) is a remote X server. This works for the X11 protocol, but not for OpenGL. You will need either a hardware or software rasterizer for OpenGL support in WSL. If you cannot use WSLg (especially its hardware rasterizer), then you might be able to use a software rasterizer like |
I see, so in that case it will probably require to wait for WSLg in order for |
It depends on the backend you want to use. If you are required to use the The trouble is, to my knowledge, none of these backends currently exist. |
Ok I understand, so it's more like we'll need WSLg to use the OpenGL backend provided in the examples. |
The |
Describe the bug
Getting the following error message when cloning the starter template (https://github.com/emilk/egui_template/) and compiling it with
cargo run
:I'm running it on WSL 2 on Windows 10.
I followed the installation instructions and run
apt install
for all the required packages.To Reproduce
Steps to reproduce the behavior:
https://github.com/emilk/egui_template/
repositorycargo run
(same result withcargo run --release
)Expected behavior
The example should work fine.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: