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

libwayland-egl.so could not found #222

Open
smoqadam opened this issue Feb 2, 2018 · 2 comments
Open

libwayland-egl.so could not found #222

smoqadam opened this issue Feb 2, 2018 · 2 comments

Comments

@smoqadam
Copy link

smoqadam commented Feb 2, 2018

Hi,
I tried to create a snake game by this tutorial. When I want to compile it, I get the following error:

thread 'main' panicked at 'Library libwayland-egl.so could not be loaded.', /checkout/src/libcore/option.rs:874:4

I'm using Ubuntu 17.10 gnome
and
piston_window "0.75.0"

this is my stack backtrace:

thread 'main' panicked at 'Library libwayland-egl.so could not be loaded.', /checkout/src/libcore/option.rs:874:4
stack backtrace:
   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
             at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at /checkout/src/libstd/sys_common/backtrace.rs:68
   2: std::panicking::default_hook::{{closure}}
             at /checkout/src/libstd/sys_common/backtrace.rs:57
             at /checkout/src/libstd/panicking.rs:381
   3: std::panicking::default_hook
             at /checkout/src/libstd/panicking.rs:397
   4: std::panicking::rust_panic_with_hook
             at /checkout/src/libstd/panicking.rs:577
   5: std::panicking::begin_panic
             at /checkout/src/libstd/panicking.rs:538
   6: std::panicking::begin_panic_fmt
             at /checkout/src/libstd/panicking.rs:522
   7: rust_begin_unwind
             at /checkout/src/libstd/panicking.rs:498
   8: core::panicking::panic_fmt
             at /checkout/src/libcore/panicking.rs:71
   9: core::option::expect_failed
             at /checkout/src/libcore/option.rs:874
  10: <core::option::Option<T>>::expect
             at /checkout/src/libcore/option.rs:302
  11: core::ops::function::FnOnce::call_once
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/wayland-sys-0.9.10/src/egl.rs:32
             at /checkout/src/libcore/ops/function.rs:223
  12: <lazy_static::lazy::Lazy<T>>::get::{{closure}}
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-0.2.11/src/lazy.rs:24
  13: std::sync::once::Once::call_once::{{closure}}
             at /checkout/src/libstd/sync/once.rs:228
  14: std::sync::once::Once::call_inner
             at /checkout/src/libstd/sync/once.rs:341
  15: std::sync::once::Once::call_once
             at /checkout/src/libstd/sync/once.rs:228
  16: <wayland_sys::egl::WAYLAND_EGL_HANDLE as core::ops::deref::Deref>::deref
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-0.2.11/src/lazy.rs:23
             at ./<__lazy_static_internal macros>:13
             at ./<__lazy_static_internal macros>:14
  17: wayland_client::egl::WlEglSurface::new_from_raw
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/wayland-client-0.9.10/src/egl.rs:49
  18: glutin::platform::platform::wayland::Context::new
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/glutin-0.10.1/src/platform/linux/wayland.rs:26
  19: glutin::platform::platform::Context::new
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/glutin-0.10.1/src/platform/linux/mod.rs:47
  20: glutin::GlWindow::new
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/glutin-0.10.1/src/lib.rs:322
  21: glutin_window::GlutinWindow::new
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/pistoncore-glutin_window-0.43.0/src/lib.rs:103
  22: <glutin_window::GlutinWindow as window::BuildFromWindowSettings>::build_from_window_settings
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/pistoncore-glutin_window-0.43.0/src/lib.rs:435
  23: window::WindowSettings::build
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/pistoncore-window-0.30.0/src/lib.rs:387
  24: <piston_window::PistonWindow<W> as window::BuildFromWindowSettings>::build_from_window_settings
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/piston_window-0.75.0/src/lib.rs:152
  25: window::WindowSettings::build
             at /home/saeed/.cargo/registry/src/github.com-1ecc6299db9ec823/pistoncore-window-0.30.0/src/lib.rs:387
  26: snake::main
             at src/main.rs:20
  27: __rust_maybe_catch_panic
             at /checkout/src/libpanic_unwind/lib.rs:101
  28: std::rt::lang_start
             at /checkout/src/libstd/panicking.rs:459
             at /checkout/src/libstd/panic.rs:365
             at /checkout/src/libstd/rt.rs:58
  29: main
  30: __libc_start_main
  31: _start
[1]    9381 segmentation fault (core dumped)  cargo run

what is the problem?

@juanvallejo
Copy link

Make sure you have libwayland-egl-devel installed: sudo apt-get install libwayland-egl-devel

@yashamon
Copy link

yashamon commented Oct 22, 2021

I have the same issue on debian sid latest. All devel packages are installed like libwayland-egl-backend-dev.

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

No branches or pull requests

3 participants