sebcrozet/kiss3d

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

Opened this issue · 2 comments

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.

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

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