FTBFS fatal error: 'opus/opus_multistream.h' file not found #2404

Closed
opened 2026-02-21 00:21:14 -05:00 by deekerman · 1 comment
Owner

Originally created by @stappersg on GitHub (Jan 6, 2024).

Bug Description

This bugreport is about a Fails To Build From Source.

cargo build ends with

fatal error: 'opus/opus_multistream.h' file not found

More context:

error: failed to run custom build command for `magnum-opus v0.4.0 (https://github.com/rustdesk/magnum-opus#5cd2bf98)`

Caused by:
  process didn't exit successfully: `/usr/src/rust/rustdesk/target/debug/build/magnum-opus-95dbfc3bed703eea/build-script-build` (exit status: 101)
  --- stdout
  cargo:info=x64-linux
  cargo:rustc-link-lib=static=opus
  cargo:rustc-link-search=/usr/src/rust/rustdesk/vcpkg/installed/x64-linux/lib
  cargo:include=/usr/src/rust/rustdesk/vcpkg/installed/x64-linux/include
  rerun-if-changed=/home/stappers/.cargo/git/checkouts/magnum-opus-4bb999f3bcbf6ab0/5cd2bf9/opus_ffi.h
  rerun-if-changed=/usr/src/rust/rustdesk/vcpkg/installed/x64-linux/include

  --- stderr
  /home/stappers/.cargo/git/checkouts/magnum-opus-4bb999f3bcbf6ab0/5cd2bf9/opus_ffi.h:1:10: fatal error: 'opus/opus_multistream.h' file not found
  /home/stappers/.cargo/git/checkouts/magnum-opus-4bb999f3bcbf6ab0/5cd2bf9/opus_ffi.h:1:10: fatal error: 'opus/opus_multistream.h' file not found, err: true
  thread 'main' panicked at /home/stappers/.cargo/git/checkouts/magnum-opus-4bb999f3bcbf6ab0/5cd2bf9/build.rs:146:18:
  called `Result::unwrap()` on an `Err` value: ()
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

How to Reproduce

Build attempt on an up-to-date Debian system.

Expected Behavior

Smoothless build.

Operating system(s) on local side and remote side

Debian GNU/Linux

RustDesk Version(s) on local side and remote side

git HEAD

Screenshots

Not applicable

Additional Context

https://www.reddit.com/r/rustdesk/comments/18x40oc/recent_build_succes/ is the same issue. I ask there first because I don't know if https://github.com/rustdesk/doc.rustdesk.com/tree/master/content/dev/build/linux or here is the better place for this fails to build from source.

Originally created by @stappersg on GitHub (Jan 6, 2024). ### Bug Description This bugreport is about a _Fails To Build From Source_. `cargo build` ends with ```text fatal error: 'opus/opus_multistream.h' file not found ``` More context: ```text error: failed to run custom build command for `magnum-opus v0.4.0 (https://github.com/rustdesk/magnum-opus#5cd2bf98)` Caused by: process didn't exit successfully: `/usr/src/rust/rustdesk/target/debug/build/magnum-opus-95dbfc3bed703eea/build-script-build` (exit status: 101) --- stdout cargo:info=x64-linux cargo:rustc-link-lib=static=opus cargo:rustc-link-search=/usr/src/rust/rustdesk/vcpkg/installed/x64-linux/lib cargo:include=/usr/src/rust/rustdesk/vcpkg/installed/x64-linux/include rerun-if-changed=/home/stappers/.cargo/git/checkouts/magnum-opus-4bb999f3bcbf6ab0/5cd2bf9/opus_ffi.h rerun-if-changed=/usr/src/rust/rustdesk/vcpkg/installed/x64-linux/include --- stderr /home/stappers/.cargo/git/checkouts/magnum-opus-4bb999f3bcbf6ab0/5cd2bf9/opus_ffi.h:1:10: fatal error: 'opus/opus_multistream.h' file not found /home/stappers/.cargo/git/checkouts/magnum-opus-4bb999f3bcbf6ab0/5cd2bf9/opus_ffi.h:1:10: fatal error: 'opus/opus_multistream.h' file not found, err: true thread 'main' panicked at /home/stappers/.cargo/git/checkouts/magnum-opus-4bb999f3bcbf6ab0/5cd2bf9/build.rs:146:18: called `Result::unwrap()` on an `Err` value: () note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` ### How to Reproduce Build attempt on an up-to-date Debian system. ### Expected Behavior Smoothless `build`. ### Operating system(s) on local side and remote side Debian GNU/Linux ### RustDesk Version(s) on local side and remote side git HEAD ### Screenshots Not applicable ### Additional Context https://www.reddit.com/r/rustdesk/comments/18x40oc/recent_build_succes/ is the same issue. I ask there first because I don't know if https://github.com/rustdesk/doc.rustdesk.com/tree/master/content/dev/build/linux or here is the better place for this _fails to build from source_.
deekerman 2026-02-21 00:21:14 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (Jan 6, 2024):

#763

@rustdesk commented on GitHub (Jan 6, 2024): #763
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#2404
No description provided.