Building Rustdesk in Docker on CL

I have been attempting to build a Docker container of Rustdesk, only that I have been hitting some snags on the way. Building the container from a Rustdesk image ends with an error, and I am not sure what I may be doing wrong:

   Compiling hyper-rustls v0.23.2
   Compiling url v2.3.1
   Compiling gdkwayland-sys v0.16.0
error: failed to run custom build command for `scrap v0.5.0 (/home/user/rustdesk/libs/scrap)`

Caused by:
  process didn't exit successfully: `/home/user/rustdesk/target/debug/build/scrap-937aa0005a54bce6/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=NO_PKG_CONFIG_libyuv
  cargo:info=x64-linux
  cargo:rustc-link-lib=static=yuv
  cargo:rustc-link-search=/vcpkg/installed/x64-linux/lib
  cargo:include=/vcpkg/installed/x64-linux/include
  cargo:rerun-if-env-changed=NO_PKG_CONFIG_libvpx
  cargo:info=x64-linux
  cargo:rustc-link-lib=static=vpx
  cargo:rustc-link-search=/vcpkg/installed/x64-linux/lib
  cargo:include=/vcpkg/installed/x64-linux/include
  rerun-if-changed=/home/user/rustdesk/libs/scrap/src/bindings/vpx_ffi.h
  rerun-if-changed=/vcpkg/installed/x64-linux/include
  cargo:rerun-if-env-changed=NO_PKG_CONFIG_aom
  cargo:info=x64-linux
  cargo:rustc-link-lib=static=aom
  cargo:rustc-link-search=/vcpkg/installed/x64-linux/lib
  cargo:include=/vcpkg/installed/x64-linux/include
  rerun-if-changed=/home/user/rustdesk/libs/scrap/src/bindings/aom_ffi.h
  rerun-if-changed=/vcpkg/installed/x64-linux/include

  --- stderr
  /home/user/rustdesk/libs/scrap/src/bindings/aom_ffi.h:1:10: fatal error: 'aom/aom.h' file not found
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ClangDiagnostic("/home/user/rustdesk/libs/scrap/src/bindings/aom_ffi.h:1:10: fatal error: 'aom/aom.h' file not found\n")', libs/scrap/build.rs:163:18
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Anyone have any ideas as to what may be going wrong?

P.S. The commands to build the container are posted here.

You need the aom.

I see you compile a lot on Clear, you can contribute the stuff to CF in RPM or another format and the whole community will benefit.

1 Like