Closed hfaulds closed 6 years ago
UGH.
Some output would be helpful.
And what does xcode-select -p
say?
@Rhuagh:
Happy to try and help, although I have very little experience with these kinds of problems.
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
$ cargo build
Compiling void v1.0.2
Compiling libc v0.2.40
Compiling cfg-if v0.1.3
Compiling glob v0.2.11
Compiling regex v0.2.11
Compiling libloading v0.4.3
Compiling ucd-util v0.1.1
Compiling lazy_static v1.0.0
Compiling unicode-width v0.1.4
Compiling utf8-ranges v1.0.0
Compiling unicode-xid v0.1.0
Compiling bitflags v1.0.3
Compiling ansi_term v0.11.0
Compiling strsim v0.7.0
Compiling vec_map v0.8.0
Compiling bindgen v0.32.3
Compiling peeking_take_while v0.1.2
Compiling log v0.4.1
Compiling unreachable v1.0.0
Compiling memchr v2.0.1
Compiling memchr v1.0.2
Compiling atty v0.2.10
Compiling which v1.0.5
Compiling regex-syntax v0.5.6
Compiling clang-sys v0.21.2
Compiling textwrap v0.9.0
Compiling proc-macro2 v0.2.3
Compiling thread_local v0.3.5
Compiling aho-corasick v0.6.4
Compiling log v0.3.9
Compiling nom v3.2.1
Compiling clap v2.31.2
Compiling quote v0.4.2
Compiling cexpr v0.2.3
Compiling env_logger v0.4.3
Compiling coreaudio-sys v0.2.0 (file:///Users/haydenfaulds/projects/coreaudio-sys)
error: failed to run custom build command for `coreaudio-sys v0.2.0 (file:///Users/haydenfaulds/projects/coreaudio-sys)`
process didn't exit successfully: `/Users/haydenfaulds/projects/coreaudio-sys/target/debug/build/coreaudio-sys-d9cf5c2e5c9e79ac/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-lib=framework=AudioToolbox
cargo:rustc-link-lib=framework=AudioUnit
cargo:rustc-link-lib=framework=CoreAudio
cargo:rustc-link-lib=framework=OpenAL
cargo:rustc-link-lib=framework=CoreMIDI
--- stderr
//Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:21:10: fatal error: 'os/availability.h' file not found
//Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:21:10: fatal error: 'os/availability.h' file not found, err: true
thread 'main' panicked at 'unable to generate bindings: ()', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
@hfaulds Could you try out #11 ?
@Rhuagh that fixed the build for me, thanks a bunch
I don't know if older versions of OS X are supported but https://github.com/RustAudio/coreaudio-sys/pull/6 has broken the build for me on El Capitan (10.11.6). I guess they moved the headers on more recent versions of the OS but left them in place on older versions.