Lakelezz / audiopus_sys

Rust FFI-binding of Opus.
ISC License
15 stars 22 forks source link

Compilation on aarch64-linux-android fails #15

Open Leshuguita opened 12 months ago

Leshuguita commented 12 months ago

With the following error:

error[E0308]: mismatched types
  --> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/audiopus_sys-0.2.2/build.rs:83:33
   |
83 | fn default_library_linking() -> bool {
   |    -----------------------      ^^^^ expected `bool`, found `()`
   |    |
   |    implicitly returns `()` as its body has no tail or `return` expression

For more information about this error, try `rustc --explain E0308`.
error: could not compile `audiopus_sys` (build script) due to previous error

It's the same regardless of any enabled features (happens with dynamic and with static)

la-ninpre commented 11 months ago

I confirm that too. I've got the same error. Looking at build.rs, it seems that it doesn't handle the case when none of the configuration options are set. That's why the build fails, the function body is simply empty in this situation.