PinkD / corplink-rs

使用 rust 实现的飞连客户端
GNU General Public License v2.0
230 stars 31 forks source link

编译失败 failed to run custom build command for `corplink-rs v0.4.3 (/Users/xxxxxx/corplink-rs)` #37

Closed haozi closed 5 months ago

haozi commented 5 months ago

系统:MacBook Pro M3 version: 14.4.1 (23E224)

error: failed to run custom build command for `corplink-rs v0.4.3 (/Users/xxxxxx/corplink-rs)`

Caused by:
  process didn't exit successfully: `/Users/xxxxxx/corplink-rs/target/release/build/corplink-rs-dee4c978a8cd14ac/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-link-search=./libwg
  cargo:rustc-link-lib=wg
  cargo:rerun-if-changed=./libwg/libwg.h
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_aarch64-apple-darwin
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_aarch64_apple_darwin
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS

  --- stderr
  thread 'main' panicked at build.rs:48:10:
  Unable to generate bindings: NotExist("./libwg/libwg.h")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
haozi commented 5 months ago

除了 rust 环境还要装 go, 搞定