pipewire-sys build error: `spa_thread` not found
The pipewire-sys crate doesn't build for me. Version is commit 582d99
.
This is the output after running cargo build
in the project root directory:
❯ cargo build
Compiling libc v0.2.98
Compiling proc-macro2 v1.0.27
Compiling memchr v2.3.4
Compiling unicode-xid v0.2.2
Compiling bitflags v1.2.1
Compiling version_check v0.9.3
Compiling cfg-if v1.0.0
Compiling syn v1.0.73
Compiling glob v0.3.0
Compiling serde v1.0.126
Compiling log v0.4.14
Compiling anyhow v1.0.42
Compiling unicode-segmentation v1.8.0
Compiling unicode-width v0.1.8
Compiling regex-syntax v0.6.25
Compiling either v1.6.1
Compiling smallvec v1.6.1
Compiling vec_map v0.8.2
Compiling ansi_term v0.11.0
Compiling termcolor v1.1.2
Compiling strsim v0.8.0
Compiling bindgen v0.58.1
Compiling version-compare v0.0.11
Compiling strum v0.21.0
Compiling humantime v2.1.0
Compiling pkg-config v0.3.19
Compiling lazycell v1.3.0
Compiling lazy_static v1.4.0
Compiling shlex v1.0.0
Compiling rustc-hash v1.1.0
Compiling peeking_take_while v0.1.2
Compiling radium v0.5.3
Compiling ryu v1.0.5
Compiling lexical-core v0.7.6
Compiling wyz v0.2.0
Compiling arrayvec v0.5.2
Compiling funty v1.1.0
Compiling tap v1.0.1
Compiling cc v1.0.69
Compiling nix v0.14.1
Compiling static_assertions v1.1.0
Compiling void v1.0.2
Compiling cfg-if v0.1.10
Compiling cookie-factory v0.3.2
Compiling once_cell v1.8.0
Compiling libloading v0.7.0
Compiling textwrap v0.11.0
Compiling itertools v0.10.1
Compiling heck v0.3.3
Compiling cfg-expr v0.7.4
Compiling nom v5.1.2
Compiling nom v6.2.1
Compiling clang-sys v1.2.0
Compiling aho-corasick v0.7.15
Compiling bitvec v0.19.5
Compiling quote v1.0.9
Compiling atty v0.2.14
Compiling which v3.1.1
Compiling errno v0.2.7
Compiling clap v2.33.3
Compiling regex v1.4.6
Compiling cexpr v0.4.0
Compiling env_logger v0.8.4
Compiling toml v0.5.8
Compiling signal v0.7.0
Compiling thiserror-impl v1.0.26
Compiling strum_macros v0.21.1
Compiling thiserror v1.0.26
Compiling system-deps v3.1.2
Compiling libspa-sys v0.4.0 (/home/lordmzte/Downloads/pipewire-rs/libspa-sys)
Compiling libspa v0.4.0 (/home/lordmzte/Downloads/pipewire-rs/libspa)
Compiling pipewire-sys v0.4.0 (/home/lordmzte/Downloads/pipewire-rs/pipewire-sys)
error[E0412]: cannot find type `spa_thread` in this scope
--> /home/lordmzte/Downloads/pipewire-rs/target/debug/build/pipewire-sys-82663b43c8de9959/out/bindings.rs:7047:70
|
7047 | pub fn pw_data_loop_get_thread(loop_: *mut pw_data_loop) -> *mut spa_thread;
| ^^^^^^^^^^ not found in this scope
error: aborting due to previous error
For more information about this error, try `rustc --explain E0412`.
error: could not compile `pipewire-sys`
To learn more, run the command again with --verbose.
I am running arch linux, the output of pipewire --version
is
❯ pipewire --version
pipewire
Compiled with libpipewire 0.3.32
Linked with libpipewire 0.3.32
Let me know if any more information is needed.