emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
21.87k stars 1.58k forks source link

NoGlutinConfigs #3174

Open IronOxidizer opened 1 year ago

IronOxidizer commented 1 year ago

Version

Describe the bug

eframe should only depend on libgtk-3-0, but for some reason, it depends on the dev library, libgtk-3-dev. I get the following error when launching my minimal egui + eframe application without libgtk-3-dev:

Error: NoGlutinConfigs(ConfigTemplate { color_buffer_type: Rgb { r_size: 8, g_size: 8, b_size: 8 }, alpha_size: 8, depth_size: 0, stencil_size: 0, num_samples: None, min_swap_interval: None, max_swap_interval: None, config_surface_types: WINDOW, api: None, transparency: false, single_buffering: false, stereoscopy: None, float_pixels: false, max_pbuffer_width: None, hardware_accelerated: None, max_pbuffer_height: None, native_window: Some(Xlib(XlibWindowHandle { window: 77594627, visual_id: 0 })) })

To Reproduce Steps to reproduce the behavior:

  1. Install libgtk-3-0
  2. Launch the application
  3. Error is thrown

Expected behavior

  1. Install libgtk-3-0
  2. Launch the application
  3. Window is displayed

Current workaround

  1. Install libgtk-3-dev
  2. Launch the application
  3. Window is displayed
emilk commented 1 year ago

Is this only when using the glow backend? Perhaps this should be raised in the glutin repository instead?

the-drunk-coder commented 3 weeks ago

I'm trying to build an AppImage on a Debian docker image. It builds fine, but when I copy it over to my (arch linux) host, I'm getting a similar problem:

NoGlutinConfigs(ConfigTemplate { color_buffer_type: Rgb { r_size: 8, g_size: 8, b_size: 8 }, alpha_size: 8, depth_size: 0, stencil_size: 0, num_samples: None, min_swap_interval: None, max_swap_interval: None, config_surface_types: ConfigSurfaceTypes(WINDOW), api: None, transparency: false, single_buffering: false, stereoscopy: None, float_pixels: false, max_pbuffer_width: None, hardware_accelerated: None, max_pbuffer_height: None, native_window: None }, Error { raw_code: None, raw_os_message: None, kind: BadConfig })

I can build an run the application on Arch just fine. Did I miss to install some library?