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

Please explicitly update coreaudio-sys #68

Open
sanbox-irl opened this issue Nov 21, 2019 · 5 comments
Open

Please explicitly update coreaudio-sys #68

sanbox-irl opened this issue Nov 21, 2019 · 5 comments

Comments

@sanbox-irl
Copy link

Hello!

This repo currently relies upon coreaudio-sys, and just lists version "0.2". My Cargo is defaulting that to "0.2.2", but "0.2.3" of coreaudio-sys has upgraded its bindgen version to the much more recent v0.5.0. 0.2.2 however, is still stuck on 0.32.3.

This is a problem as I have another package which uses a more recent bindgen, and cargo can't let me use both packages at once. For now, I essentially can't use this package, cpal, or rodio.

Here's the error message cargo gives me incase there's a simpler solution for me personally:

error: multiple packages link to native library `clang`, but a native library can be linked only once

package `clang-sys v0.21.2`
    ... which is depended on by `bindgen v0.32.3`
    ... which is depended on by `coreaudio-sys v0.2.2`
    ... which is depended on by `coreaudio-rs v0.9.1`
    ... which is depended on by `cpal v0.10.0`
    ... which is depended on by `rodio v0.10.0`
    ... which is depended on by `clockwork v0.1.0 (/Users/jjspira/Documents/Rust/clockwork)`
links to native library `clang`

package `clang-sys v0.26.4`
    ... which is depended on by `bindgen v0.47.3`
    ... which is depended on by `rustcord-sys v0.2.2`
    ... which is depended on by `rustcord v0.2.2`
    ... which is depended on by `clockwork v0.1.0 (/Users/jjspira/Documents/Rust/clockwork)`
also links to native library `clang`

Thanks guys!

@open-trade
Copy link

Author please!

@est31
Copy link
Member

est31 commented Nov 8, 2020

@sanbox-irl if cargo update -p coreaudio-sys can't solve your issue, then explicitly updating the dependency requirement won't solve it either, because then cargo will just select an older version of the coreaudio-rs crate.

@Ralith
Copy link

Ralith commented Nov 8, 2020

coreaudio-sys could be made much less fragile and heavyweight by including pregenerated bindings rather than invoking bindgen.

@est31
Copy link
Member

est31 commented Nov 8, 2020

@Ralith that's a separate suggestion, also best done at https://github.com/RustAudio/coreaudio-sys

@est31
Copy link
Member

est31 commented Nov 8, 2020

One potential issue is copyright. Are the headers compatible with the license of coreaudio-sys, or are they apple-proprietary?

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

4 participants