You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux compilation fails with PipeWire 1.6 — spa_pod_builder field mismatch #185
scap v0.0.8 fails to compile on Linux systems with PipeWire 1.6+ due to incompatible libspa bindings. The spa_pod_builder struct layout changed in PipeWire 1.x, breaking the pipewire v0.8 crate dependency chain.
Error
error[E0609]: no field `data` on type `spa_pod_builder`
--> ~/.cargo/registry/src/.../libspa-0.8.0/src/pod/builder.rs:38:25
|
38 | (*this).builder.data = (*this).data.as_mut_ptr().cast::<c_void>();
| ^^^^ unknown field
|
= note: available field is: `_address`
error[E0609]: no field `size` on type `spa_pod_builder`
--> ~/.cargo/registry/src/.../libspa-0.8.0/src/pod/builder.rs:39:25
|
39 | (*this).builder.size = (*this)
| ^^^^ unknown field
|
= note: available field is: `_address`
The pipewire crate v0.8.0 (and its libspa dependency) was written against older PipeWire C headers where spa_pod_builder had public data and size fields. In PipeWire 1.x, these fields were refactored into an opaque _address union member.
Reacted by Anthony Bobenrieth, Rupam Golui and Mylloon
This is a known compatibility issue with the upstream pipewire Rust crate. The scap v0.0.8 on crates.io pins pipewire = "^0.8.0", which was written against older PipeWire C headers (pre-1.x).
The upstream pipewire crate has newer releases that fix this:
v0.9.2 (Sep 2025) - requires Rust 1.77
v0.10.0 (May 2026) - adds explicit feature flags for PipeWire 1.0 and 1.2 compatibility, requires Rust 1.80
The fix would be for scap to bump its pipewire dependency to ^0.9 or ^0.10. In PR #35, the project previously bumped from 0.7.2 to 0.8.0 to address a similar header compatibility issue.
Workaround until a new scap release: If you're building from source, you can patch the dependency in your project's Cargo.toml:
[patch.crates-io]
pipewire = { version = "0.10" }
libspa = { version = "0.10" }
Or if using scap as a git dependency, you could fork and update Cargo.toml in the scap repo to use pipewire = "^0.10".
Note: The main Cap repository already uses scap as a submodule at crates/scap-*, so this would need to be addressed there as well for Cap desktop users on Arch/newer distros.
The patch approach wont work... pipewire 0.10 API is significantly different from 0.8 ... too many breaking changes in scap...ig it needs rework release
Activity
tembo commentedon May 28, 2026
This is a known compatibility issue with the upstream
pipewireRust crate. Thescapv0.0.8 on crates.io pinspipewire = "^0.8.0", which was written against older PipeWire C headers (pre-1.x).The upstream
pipewirecrate has newer releases that fix this:The fix would be for
scapto bump itspipewiredependency to^0.9or^0.10. In PR #35, the project previously bumped from0.7.2to0.8.0to address a similar header compatibility issue.Workaround until a new scap release: If you're building from source, you can patch the dependency in your project's
Cargo.toml:Or if using scap as a git dependency, you could fork and update
Cargo.tomlin the scap repo to usepipewire = "^0.10".Note: The main Cap repository already uses scap as a submodule at
crates/scap-*, so this would need to be addressed there as well for Cap desktop users on Arch/newer distros.Itz-Agasta commentedon May 28, 2026
The patch approach wont work... pipewire 0.10 API is significantly different from 0.8 ... too many breaking changes in scap...ig it needs rework release