Skip to content

Fails to find headers on macOS 10.13 #5

@regexident

Description

@regexident

Trying to build coreaudio-sys on macOS 10.13 I get this:

$ cargo build

error: failed to run custom build command for `coreaudio-sys v0.2.0 (file:///Users/<snip>/Downloads/coreaudio-sys)`
process didn't exit successfully: `/Users/<snip>/Downloads/coreaudio-sys/target/debug/build/coreaudio-sys-da31a326d38f965f/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
error: header '/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h' does not exist.
thread 'main' panicked at 'unable to generate bindings: ()', src/libcore/result.rs:916:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Peeking into any of the frameworks located in /System/Library/Frameworks/… one finds that that there are in fact no headers to be found anywhere inside.

Having installed Xcode however one finds them buried deep down inside of Xcode.app:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/… (MacOSX being one of AppleTVOS, AppleTVSimulator, iPhoneOS, iPhoneSimulator, MacOSX, WatchOS, WatchSimulator, …)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions