tomaka / vorbis-rs

Rust bindings for libvorbis
Apache License 2.0
15 stars 12 forks source link

Link error: multiple packages link to native library #16

Open mrDIMAS opened 4 years ago

mrDIMAS commented 4 years ago

Trying to run example decode-encode and getting this

$ cargo run --example decode-encode --release
    Updating crates.io index
error: multiple packages link to native library `vorbis`, but a native library can be linked only once

package `vorbis-sys v0.0.8`
    ... which is depended on by `vorbis v0.1.0 (C:\Users\mrDIMAS\Desktop\vorbis-rs-master)`
links to native library `vorbis`

package `vorbis-sys v0.1.0`
    ... which is depended on by `vorbisfile-sys v0.0.8`
    ... which is depended on by `vorbis v0.1.0 (C:\Users\mrDIMAS\Desktop\vorbis-rs-master)`
also links to native library `vorbis`
Stijn-B commented 4 years ago

Hello, did you find a way to fix this?

mrDIMAS commented 4 years ago

Uh no, I switched to lewton instead.

sashahilton00 commented 4 years ago

Have opened a PR #17 which updates the necessary dependency to fix this

nico-abram commented 3 years ago

As I mentioned in the opened PR (https://github.com/tomaka/vorbis-rs/pull/17#issuecomment-731694874) the vorbis-sys dependency of vorbis-encoder also needs to be updated to be able to compile, but I could not find a place to send changes for vorbis-encoder (Which hasn't been updated in 4 years)

crates.io says it's license is MIT so maybe we should just fork it?