ALVR icon indicating copy to clipboard operation
ALVR copied to clipboard

Unable to build from source

Open clin1234 opened this issue 2 months ago • 2 comments

error[E0308]: mismatched types
  --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libspa-0.8.0/src/param/audio/raw.rs:32:23
   |
32 |             position: [0; 64usize],
   |                       ^^^^^^^^^^^^ expected an array with a size of 128, found one with a size of 64

error[E0308]: mismatched types
  --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libspa-0.8.0/src/param/audio/raw.rs:69:27
   |
69 |         self.0.position = position;
   |                           ^^^^^^^^ expected an array with a size of 128, found one with a size of 64

error[E0308]: mismatched types
  --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libspa-0.8.0/src/param/audio/raw.rs:78:9
   |
77 |     pub fn position(&self) -> [u32; 64usize] {
   |                               -------------- expected `[u32; 64]` because of return type
78 |         self.0.position
   |         ^^^^^^^^^^^^^^^ expected an array with a size of 64, found one with a size of 128

For more information about this error, try `rustc --explain E0308`.
error: could not compile `libspa` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `alvr_dashboard v21.0.0-dev10 (https://github.com/alvr-org/ALVR#9fee606d)`, intermediate artifacts can be found at `/tmp/cargo-install3AvtHx`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

clin1234 avatar Oct 22 '25 14:10 clin1234

Hey, I can't really help debug this without more info. What OS/distro are you on, and what's your Rust and PipeWire versions?

Also, did you follow the steps in the build guide?

This looks like a version mismatch between libspa and your system's PipeWire because the array size is wrong (expecting 128 but getting 64). Your PipeWire is probably outdated, or you might be missing some dependencies.

Stavdel avatar Nov 05 '25 09:11 Stavdel

Hey, I can't really help debug this without more info. What OS/distro are you on, and what's your Rust and PipeWire versions?

Also, did you follow the steps in the build guide?

This looks like a version mismatch between libspa and your system's PipeWire because the array size is wrong (expecting 128 but getting 64). Your PipeWire is probably outdated, or you might be missing some dependencies.

Fedora Rawhide, Rust nightly, Pipewire 1.5.81 Also, https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/c94aff8cae158def64e20a320dcc1b1020d1d795 will prevent this issue from reoccurring (I hope)

clin1234 avatar Nov 05 '25 12:11 clin1234