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

cargo run --release --example draw fails with Wayland error #981

Open
erlingrj opened this issue Oct 21, 2024 · 0 comments
Open

cargo run --release --example draw fails with Wayland error #981

erlingrj opened this issue Oct 21, 2024 · 0 comments

Comments

@erlingrj
Copy link

erlingrj commented Oct 21, 2024

Hi all, I am excited to try out your framework but I am facing some issues with my graphics driver(?) and I am hoping anyone here has some advice. My system:

  • PC: Lenovo Thinkpad Carbon x1 with Intel Meteor Lake SoC
  • OS: Ubuntu 24.04.01
> cargo run --release --example draw
warning: /home/erling/art/nannou/scripts/run_all_examples/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021
warning: unexpected `cfg` condition value: `wayland`
   --> nannou/src/window.rs:786:19
    |
786 |         #[cfg(not(feature = "wayland"))]
    |                   ^^^^^^^^^^^^^^^^^^^
    |
    = note: expected values for `feature` are: `default`, `notosans`, `spirv`, `wasm-experimental`, and `web-sys`
    = help: consider adding `wayland` as a feature in `Cargo.toml`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

warning: unexpected `cfg` condition value: `wayland`
   --> nannou/src/window.rs:799:15
    |
799 |         #[cfg(feature = "wayland")]
    |               ^^^^^^^^^^^^^^^^^^^
    |
    = note: expected values for `feature` are: `default`, `notosans`, `spirv`, `wasm-experimental`, and `web-sys`
    = help: consider adding `wayland` as a feature in `Cargo.toml`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: struct `FlattenIndices` is never constructed
  --> nannou/src/draw/primitive/mesh.rs:31:8
   |
31 | struct FlattenIndices<I> {
   |        ^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `nannou` (lib) generated 3 warnings
warning: field `0` is never read
   --> nannou_laser/src/ffi.rs:210:20
    |
210 | struct BufferInner(*mut crate::stream::raw::Buffer);
    |        ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |        |
    |        field in this struct
    |
    = help: consider removing this field
    = note: `#[warn(dead_code)]` on by default

warning: `nannou_laser` (lib) generated 1 warning
    Finished `release` profile [optimized] target(s) in 0.38s
warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint v0.1.44, num-complex v0.1.43, num-rational v0.1.42
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
     Running `target/release/examples/draw`
wl_surface@24: error 2: Buffer size (1044x45) must be an integer multiple of the buffer_scale (2).



@erlingrj erlingrj changed the title cargo run --release --example draw fails with Wayland erro cargo run --release --example draw fails with "libEGL fatal: did not find extension DRI_Mesa version 1" Oct 21, 2024
@erlingrj erlingrj changed the title cargo run --release --example draw fails with "libEGL fatal: did not find extension DRI_Mesa version 1" cargo run --release --example draw fails with Wayland error Oct 21, 2024
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

1 participant