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

在M1芯片的macOS下编译报错 #32

Open
heropoo opened this issue Jun 19, 2021 · 2 comments
Open

在M1芯片的macOS下编译报错 #32

heropoo opened this issue Jun 19, 2021 · 2 comments

Comments

@heropoo
Copy link
Contributor

heropoo commented Jun 19, 2021

cargo run --release -- "./res/boxes.gb"

Compiling coreaudio-sys v0.2.2
error: failed to run custom build command for `coreaudio-sys v0.2.2`

Caused by:
  process didn't exit successfully: `/Users/my/Projects/gameboy/target/release/build/coreaudio-sys-8d0fefacc2d2969d/build-script-build` (exit code: 101)
  --- stdout
  cargo:rustc-link-lib=framework=AudioUnit
  cargo:rustc-link-lib=framework=CoreAudio

  --- stderr
  error: header '/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h' does not exist.
  thread 'main' panicked at 'unable to generate bindings: ()', /Users/my/.cargo/registry/src/github.com-1ecc6299db9ec823/coreaudio-sys-0.2.2/build.rs:144:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@mohanson
Copy link
Owner

看起来应该向 coreaudio-sys 提交错误报告.

@heropoo
Copy link
Contributor Author

heropoo commented Jun 19, 2021

刚去找个库的issue找了找 RustAudio/coreaudio-sys#47 (comment)
已经在0.2.8的版本修复了。我看Cargo.lock中coreaudio-sys版本是0.2.2 。
然后我删掉Cargo.lock,编译成功了。

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

2 participants