I’m having issues using mediasoup Rust crate.
My Cargo.toml dependencies look like
[dependencies]
mediasoup = "0.17.0"
When I hit cargo build
an error occurs:
Compiling mediasoup-sys v0.9.0
error: failed to run custom build command for `mediasoup-sys v0.9.0`
...
Build type: native build
Project name: mediasoup-worker
Project version: undefined
C compiler for the host machine: cc (gcc 13.2.0 "cc (Debian 13.2.0-23) 13.2.0")
C linker for the host machine: cc ld.bfd 2.42
C++ compiler for the host machine: c++ (gcc 13.2.0 "c++ (Debian 13.2.0-23) 13.2.0")
C++ linker for the host machine: c++ ld.bfd 2.42
Host machine cpu family: x86_64
Host machine cpu: x86_64
Checking for function "strtoull_l" : YES
meson.build:178:15: ERROR: Subproject exists but has no meson.build file.
...
Failed to build libmediasoup-worker
It is related to mediasoupsys and caused by libmediasoup-worker, since using mediasoup v0.5.0 (that requires binary path at worker manager creation) throws no error at cargo build
. I also have c++ and c compilers.
Troubleshooting: I tried npm install -g mediasoup
(node 18) and also deleting ~/.cargo/registry/cache and ./target (at project directory).
Obs: All pip installs were successful.