build failed ubuntu / linux #3421

Closed
opened 2026-02-21 01:21:28 -05:00 by deekerman · 3 comments
Owner

Originally created by @Taverz on GitHub (May 10, 2025).

Bug Description

dev@taverz-VM:~/rustdesk$ cargo build
Compiling nokhwa-core v0.1.5 (https://github.com/rustdesk-org/nokhwa.git?branch=fix_from_raw_parts#48963f51)
warning: use of deprecated function rustls_platform_verifier::tls_config: use the ConfigVerifierExt instead
--> libs/hbb_common/src/proxy.rs:459:50
|
459 | let verifier = rustls_platform_verifier::tls_config();
| ^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default

warning: unused variable: local_addr
--> libs/hbb_common/src/websocket.rs:33:9
|
33 | local_addr: Option,
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _local_addr
|
= note: #[warn(unused_variables)] on by default

warning: unused variable: proxy_conf
--> libs/hbb_common/src/websocket.rs:34:9
|
34 | proxy_conf: Option<&Socks5Server>,
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _proxy_conf

warning: hbb_common (lib) generated 3 warnings
warning: hbb_common (lib) generated 3 warnings (3 duplicates)
Compiling scrap v0.5.0 (/home/dev/rustdesk/libs/scrap)
Compiling magnum-opus v0.4.0 (https://github.com/rustdesk-org/magnum-opus#5cd2bf98)
Compiling webm v1.1.0 (https://github.com/rustdesk-org/rust-webm#d2c4d3ac)
Compiling hyper-rustls v0.24.2
Compiling tfc v0.7.0 (https://github.com/rustdesk-org/The-Fat-Controller?branch=history%2Frebase_upstream_20240722#78bb80a8)
Compiling bzip2 v0.4.4
Compiling async-signal v0.2.8
Compiling nokhwa-bindings-linux v0.1.1 (https://github.com/rustdesk-org/nokhwa.git?branch=fix_from_raw_parts#48963f51)
Compiling nokhwa-bindings-windows v0.4.2 (https://github.com/rustdesk-org/nokhwa.git?branch=fix_from_raw_parts#48963f51)
Compiling nokhwa-bindings-macos v0.2.2 (https://github.com/rustdesk-org/nokhwa.git?branch=fix_from_raw_parts#48963f51)
error: failed to run custom build command for scrap v0.5.0 (/home/dev/rustdesk/libs/scrap)

Caused by:
process didn't exit successfully: /home/dev/rustdesk/target/debug/build/scrap-a771c277798e4900/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=NO_PKG_CONFIG_libyuv

--- stderr

thread 'main' panicked at libs/scrap/build.rs:88:9:
Couldn't find VCPKG_ROOT, also can't fallback to homebrew because it's only for macos aarch64.
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for magnum-opus v0.4.0 (https://github.com/rustdesk-org/magnum-opus#5cd2bf98)

Caused by:
process didn't exit successfully: /home/dev/rustdesk/target/debug/build/magnum-opus-a985a7aa33451a51/build-script-build (exit status: 101)
--- stderr

thread 'main' panicked at /home/dev/.cargo/git/checkouts/magnum-opus-dcec9e0860829263/5cd2bf9/build.rs:64:9:
Couldn't find VCPKG_ROOT, also can't fallback to homebrew because it's only for macos aarch64.
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
dev@taverz-VM:~/rustdesk$

How to Reproduce

build instruction README.md

Expected Behavior

successefull build output

Operating system(s) on local (controlling) side and remote (controlled) side

Ubuntu 24.04

RustDesk Version(s) on local (controlling) side and remote (controlled) side

last version - master branch - commit id : 1a8e3005cd .
I expect that everything that is in the master will be build successefull .

Screenshots

Image

Additional Context

No response

Originally created by @Taverz on GitHub (May 10, 2025). ### Bug Description dev@taverz-VM:~/rustdesk$ cargo build Compiling nokhwa-core v0.1.5 (https://github.com/rustdesk-org/nokhwa.git?branch=fix_from_raw_parts#48963f51) warning: use of deprecated function `rustls_platform_verifier::tls_config`: use the `ConfigVerifierExt` instead --> libs/hbb_common/src/proxy.rs:459:50 | 459 | let verifier = rustls_platform_verifier::tls_config(); | ^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: unused variable: `local_addr` --> libs/hbb_common/src/websocket.rs:33:9 | 33 | local_addr: Option<SocketAddr>, | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_addr` | = note: `#[warn(unused_variables)]` on by default warning: unused variable: `proxy_conf` --> libs/hbb_common/src/websocket.rs:34:9 | 34 | proxy_conf: Option<&Socks5Server>, | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy_conf` warning: `hbb_common` (lib) generated 3 warnings warning: `hbb_common` (lib) generated 3 warnings (3 duplicates) Compiling scrap v0.5.0 (/home/dev/rustdesk/libs/scrap) Compiling magnum-opus v0.4.0 (https://github.com/rustdesk-org/magnum-opus#5cd2bf98) Compiling webm v1.1.0 (https://github.com/rustdesk-org/rust-webm#d2c4d3ac) Compiling hyper-rustls v0.24.2 Compiling tfc v0.7.0 (https://github.com/rustdesk-org/The-Fat-Controller?branch=history%2Frebase_upstream_20240722#78bb80a8) Compiling bzip2 v0.4.4 Compiling async-signal v0.2.8 Compiling nokhwa-bindings-linux v0.1.1 (https://github.com/rustdesk-org/nokhwa.git?branch=fix_from_raw_parts#48963f51) Compiling nokhwa-bindings-windows v0.4.2 (https://github.com/rustdesk-org/nokhwa.git?branch=fix_from_raw_parts#48963f51) Compiling nokhwa-bindings-macos v0.2.2 (https://github.com/rustdesk-org/nokhwa.git?branch=fix_from_raw_parts#48963f51) error: failed to run custom build command for `scrap v0.5.0 (/home/dev/rustdesk/libs/scrap)` Caused by: process didn't exit successfully: `/home/dev/rustdesk/target/debug/build/scrap-a771c277798e4900/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-env-changed=NO_PKG_CONFIG_libyuv --- stderr thread 'main' panicked at libs/scrap/build.rs:88:9: Couldn't find VCPKG_ROOT, also can't fallback to homebrew because it's only for macos aarch64. note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... error: failed to run custom build command for `magnum-opus v0.4.0 (https://github.com/rustdesk-org/magnum-opus#5cd2bf98)` Caused by: process didn't exit successfully: `/home/dev/rustdesk/target/debug/build/magnum-opus-a985a7aa33451a51/build-script-build` (exit status: 101) --- stderr thread 'main' panicked at /home/dev/.cargo/git/checkouts/magnum-opus-dcec9e0860829263/5cd2bf9/build.rs:64:9: Couldn't find VCPKG_ROOT, also can't fallback to homebrew because it's only for macos aarch64. note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace dev@taverz-VM:~/rustdesk$ ### How to Reproduce build instruction README.md ### Expected Behavior successefull build output ### Operating system(s) on local (controlling) side and remote (controlled) side Ubuntu 24.04 ### RustDesk Version(s) on local (controlling) side and remote (controlled) side last version - master branch - commit id : 1a8e3005cdc4e8fef080dafc0e8720ae980daf4c . I expect that everything that is in the master will be build successefull . ### Screenshots <img width="849" alt="Image" src="https://github.com/user-attachments/assets/817645ae-4a4f-45c4-9e8f-1e724d6d54d4" /> ### Additional Context _No response_
deekerman 2026-02-21 01:21:28 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Taverz commented on GitHub (May 10, 2025):

I installed all dependencies, although there were problems with vcpkg install

@Taverz commented on GitHub (May 10, 2025): I installed all dependencies, although there were problems with **vcpkg install**
Author
Owner

@Taverz commented on GitHub (May 10, 2025):

Hi, please tell me how you assembled it and what are your system parameters?
@fran-tor

@Taverz commented on GitHub (May 10, 2025): Hi, please tell me how you assembled it and what are your system parameters? @fran-tor
Author
Owner

@rustdesk commented on GitHub (May 10, 2025):

#763

@rustdesk commented on GitHub (May 10, 2025): #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#3421
No description provided.