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

x86_64-unknown-linux-musl: Failed to initialize any backend! #214

Open
rgreenblatt opened this issue Mar 28, 2020 · 2 comments
Open

x86_64-unknown-linux-musl: Failed to initialize any backend! #214

rgreenblatt opened this issue Mar 28, 2020 · 2 comments

Comments

@rgreenblatt
Copy link

Running the x86_64-unknown-linux-musl target results in the following error:

thread 'main' panicked at 'Failed to initialize any backend! Wayland status: NoCompositorListening X11 status: LibraryOpenError(OpenError { kind: Library, detail: "opening library failed (Dynamic loading not supported); opening library failed (Dynamic loading not supported); opening library failed (Dynamic loading not supported); opening library failed (Dynamic loading not supported)" })', /home/ryan/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.18.1/src/platform/linux/mod.rs:450:9

This occurs in the example in the README reproduced below:

extern crate kiss3d;
extern crate nalgebra as na;

use na::{Vector3, UnitQuaternion};
use kiss3d::window::Window;
use kiss3d::light::Light;

fn main() {
    let mut window = Window::new("Kiss3d: cube");
    let mut c      = window.add_cube(1.0, 1.0, 1.0);

    c.set_color(1.0, 0.0, 0.0);

    window.set_light(Light::StickToCamera);

    let rot = UnitQuaternion::from_axis_angle(&Vector3::y_axis(), 0.014);

    while window.render() {
        c.prepend_to_local_rotation(&rot);
    }
}

Run with cargo run --target x86_64-unknown-linux-musl. You may need to install musl-gcc (for instance on ubuntu sudo apt install musl-tools)

This happens on the latest stable release and when using latest master.

@Logarithmus
Copy link

I have the same problem on Void Linux x86_64-musl.

@ghost
Copy link

ghost commented Dec 18, 2022

It seems to be an issue with the winit library, here's the issue there.

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

2 participants