rustdesk / rustdesk/doc.rustdesk.com

macos build android fail

Open
#382 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
792
Forks
709
Avg merge
8h 25m
Merged PRs (30d)
3

Description

The preceding error is reported when the./flutter/ndk_arm64.sh command is executed:

error: failed to run custom build command for scrap v0.5.0 (/Users/tanzhihui/rustdesk/libs/scrap)

Caused by:
process didn't exit successfully: /Users/tanzhihui/rustdesk/target/release/build/scrap-20fb58f4526295ef/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=NO_PKG_CONFIG_libyuv
cargo:info=arm64-android
cargo:rustc-link-lib=static=yuv
cargo:rustc-link-search=/Users/tanzhihui/Develop/vcpkg/installed/arm64-android/lib
cargo:include=/Users/tanzhihui/Develop/vcpkg/installed/arm64-android/include
cargo:rerun-if-env-changed=NO_PKG_CONFIG_libvpx
cargo:info=arm64-android
cargo:rustc-link-lib=static=vpx
cargo:rustc-link-search=/Users/tanzhihui/Develop/vcpkg/installed/arm64-android/lib
cargo:include=/Users/tanzhihui/Develop/vcpkg/installed/arm64-android/include
rerun-if-changed=/Users/tanzhihui/rustdesk/libs/scrap/src/bindings/vpx_ffi.h
rerun-if-changed=/Users/tanzhihui/Develop/vcpkg/installed/arm64-android/include

--- stderr
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not found
thread 'main' panicked at libs/scrap/build.rs:169:18:
called Result::unwrap() on an Err value: ClangDiagnostic("/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not found\n")
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
note: If the build failed due to a missing target, you can run this command:
note:
note: rustup target install aarch64-linux-android

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running ./flutter/ndk_arm64.sh and reading the failure output around libs/scrap/build.rs:169. Investigate the missing inttypes.h diagnostic and the referenced Android build inputs; done means the macOS Android build completes without the scrap custom build command failing.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, macos, rust
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.