-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
cargo cinstall fails on Android and iOS because there's no shared libs #278
Comments
Looks like upstream decided that making cdylibs is not supported somehow. |
Did you find some issues / PRs that should be linked from here? |
Sadly not, if you run cargo build --target {*-ios} or such you'll see the warning. |
The main issue for iOS seems to be rust-lang/rust#21727, the major blocker is rust-lang/rust#95847 (comment). One potential fix would be rust-lang/cargo#4881. Cargo doesn't seem to emit any warnings for Android though, and I can't find any issues about that either. |
the lib in android is somehow missing in target or the naming logic got a quirk? Thank you a lot for testing :) |
I tested locally and the ndk21 works fine and it installs for android...
|
Also cargo-c already sets the crate-type so all you need is to revert the revert (and point whoever is developing cargo-mobile now here) |
@nirbheek is this still a problem? |
@nirbheek is there anything left to be done about this? |
Seems to be fixed! Thanks for checking in. |
Cross-compiling to macOS arm64 works fine, and explicitly passing
--library-type cdylib --library-type staticlib
doesn't change anything.The text was updated successfully, but these errors were encountered: