mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
Build Failure on Kylin OS (aarch64 / Kirin 990) due to vcpkg libaom error #3520
Labels
No labels
bug
documentation
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rustdesk-rustdesk#3520
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cymx333 on GitHub (Jun 30, 2025).
Bug Description
System Information
I am trying to compile RustDesk on a native
aarch64machine, but it consistently fails. Here is my system information:uname -m):aarch64/proc/cpuinfo):Hardware: Kirin990/etc/os-release):ldd --version):ldd (Ubuntu GLIBC 2.31-0kylin9.1k20.6) 2.31Problem Description
The build process consistently fails when trying to build the
scrapcrate. The error indicates that a header file from thelibaomlibrary,aom/aom_external_partition.h, cannot be found. This happens within the vcpkg-driven build process.Final Error Log
error: failed to run custom build command for scrap v0.5.0 (/home/seriously/rustdesk/rustdesk/rustdesk/libs/scrap)
Caused by:
process didn't exit successfully: /home/seriously/rustdesk/rustdesk/rustdesk/target/release/build/scrap-9d8fce994122a16d/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=NO_PKG_CONFIG_libyuv
cargo:info=arm64-linux
cargo:rustc-link-lib=static=yuv
cargo:rustc-link-search=/home/seriously/rustdesk/rustdesk/vcpkg/installed/arm64-linux/lib
cargo:include=/home/seriously/rustdesk/rustdesk/vcpkg/installed/arm64-linux/include
cargo:rerun-if-env-changed=NO_PKG_CONFIG_libvpx
cargo:info=arm64-linux
cargo:rustc-link-lib=static=vpx
cargo:rustc-link-search=/home/seriously/rustdesk/rustdesk/vcpkg/installed/arm64-linux/lib
cargo:include=/home/seriously/rustdesk/rustdesk/vcpkg/installed/arm64-linux/include
rerun-if-changed=/home/seriously/rustdesk/rustdesk/rustdesk/libs/scrap/src/bindings/vpx_ffi.h
rerun-if-changed=/home/seriously/rustdesk/rustdesk/vcpkg/installed/arm64-linux/include
cargo:rerun-if-env-changed=NO_PKG_CONFIG_aom
cargo:info=arm64-linux
cargo:rustc-link-lib=static=aom
cargo:rustc-link-search=/home/seriously/rustdesk/rustdesk/vcpkg/installed/arm64-linux/lib
cargo:include=/home/seriously/rustdesk/rustdesk/vcpkg/installed/arm64-linux/include
rerun-if-changed=/home/seriously/rustdesk/rustdesk/rustdesk/libs/scrap/src/bindings/aom_ffi.h
rerun-if-changed=/home/seriously/rustdesk/rustdesk/vcpkg/installed/arm64-linux/include
--- stderr
/home/seriously/rustdesk/rustdesk/rustdesk/libs/scrap/src/bindings/aom_ffi.h:5:10: fatal error: 'aom/aom_external_partition.h' file not found
thread 'main' panicked at libs/scrap/build.rs:173:18:
called Result::unwrap() on an Err value: ClangDiagnostic("/home/seriously/rustdesk/rustdesk/rustdesk/libs/scrap/src/bindings/aom_ffi.h:5:10: fatal error: 'aom/aom_external_partition.h' file not found\n")
What I Have Already Tried
I have already tried a comprehensive list of solutions without success:
build-essential,pkg-config,libopus-dev,libvpx-dev,libaom-dev,cmake,git,nasm,yasm,perl, and all X11 development libraries.av1andhwcodecfeatures in variousCargo.tomlfiles (hbb_common,scrap, top-levelrustdesk). This did not stop the build system from attempting to compilelibaom.rm -rf ./vcpkg && rm -rf ./targetmultiple times to ensure a clean build environment.VCPKG_DISABLE=1 cargo build --release. This environment variable was ignored by the build script, and it still attempted to use the internalvcpkgpath.This seems to be a deep-seated compatibility issue between the vcpkg build process for
libaomand the Kylin OSaarch64environment. Any help from the development team would be greatly appreciated.How to Reproduce
...
Expected Behavior
...
Operating system(s) on local (controlling) side and remote (controlled) side
Kylin OS (aarch64 / Kirin 990)
RustDesk Version(s) on local (controlling) side and remote (controlled) side
1.40-1.40
Screenshots
..
Additional Context
No response
@rustdesk commented on GitHub (Jun 30, 2025):
#763