Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to run custom build command for `scrap v0.5.0 (C:\Users\1\rustdesk\libs\scrap #46

Open
QYH2MMT4EVER opened this issue Mar 6, 2023 · 1 comment

Comments

@QYH2MMT4EVER
Copy link

$ cargo run
Compiling hbb_common v0.1.0 (C:\Users\1\rustdesk\libs\hbb_common)
Compiling scrap v0.5.0 (C:\Users\1\rustdesk\libs\scrap)
Compiling hyper-rustls v0.23.2
Compiling reqwest v0.11.13
error: failed to run custom build command for scrap v0.5.0 (C:\Users\1\rustdesk\libs\scrap)

Caused by:
process didn't exit successfully: C:\Users\1\rustdesk\target\debug\build\scrap-80d6c6f8afe2291c\build-script-build (exit code: 101)
--- stdout
cargo:info=x64-windows-static
cargo:rustc-link-lib=static=yuv
cargo:rustc-link-search=C:/Users/1/vcpkg\installed\x64-windows-static\lib
cargo:include=C:/Users/1/vcpkg\installed\x64-windows-static\include
cargo:info=x64-windows-static
cargo:rustc-link-lib=static=vpx
cargo:rustc-link-search=C:/Users/1/vcpkg\installed\x64-windows-static\lib
cargo:include=C:/Users/1/vcpkg\installed\x64-windows-static\include
rerun-if-changed=C:\Users\1\rustdesk\libs\scrap\vpx_ffi.h
rerun-if-changed=C:/Users/1/vcpkg\installed\x64-windows-static\include

--- stderr
thread 'main' panicked at 'called Result::unwrap() on an Err value: LexError { span: Span }', C:\Users\1.cargo\registry\src\github.com-1ecc6299db9ec823\bindgen-0.59.2\src\codegen\mod.rs:4577:66
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

@QYH2MMT4EVER
Copy link
Author

uninstall your llvm and install the version as follow,last but not least do not forget to“Add LLVM to the system PATH for all users”

安装 llvm,下载地址

https://prereleases.llvm.org/win-snapshots/LLVM-12.0.0-6923b0a7-win64.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant