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

Build fails in Sonoma 14.5 with Nix #100

Open
alvatar opened this issue May 21, 2024 · 3 comments
Open

Build fails in Sonoma 14.5 with Nix #100

alvatar opened this issue May 21, 2024 · 3 comments

Comments

@alvatar
Copy link

alvatar commented May 21, 2024

Caused by:
  process didn't exit successfully: `/Users/alvatar/Developer/coreaudio-sys/target/debug/build/coreaudio-sys-b3082b771964cd59/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=COREAUDIO_SDK_PATH
  cargo:rustc-link-lib=framework=AudioUnit
  cargo:rustc-link-lib=framework=AudioToolbox
  cargo:rustc-link-lib=framework=CoreAudio
  cargo:rustc-link-lib=framework=OpenAL
  cargo:rustc-link-lib=framework=CoreMIDI
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS

  --- stderr
  /Users/alvatar/Developer/coreaudio-sys/coreaudio.h:1:10: fatal error: 'AudioUnit/AudioUnit.h' file not found
  thread 'main' panicked at build.rs:162:39:
  unable to generate bindings: ClangDiagnostic("/Users/alvatar/Developer/coreaudio-sys/coreaudio.h:1:10: fatal error: 'AudioUnit/AudioUnit.h' file not found\n")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The main problem is that AudioUnit/AudioUnit.h doesn't really exist as a path: AudioUnit.h is directly found in the Headers folder of the framework, so I cannot tweak the Nix environment to find it.

Looking at build.rs I grew a bit suspicious, that perhaps AudioToolbox should be used instead?

any pointers appreciated, thanks!

@simlay
Copy link
Member

simlay commented Jun 2, 2024

Hi sorry for the slow reply. I don't have a nix setup to help so it's tough to help. This looks related or the same as #78.

@multivac61
Copy link

I also have issues building a package with coreaudio-sys as dependency using nix build. Will compile a simple example tomorrow.

@multivac61
Copy link

Here is a fix to the issue. please close and file in nix instead.

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

3 participants