-
Notifications
You must be signed in to change notification settings - Fork 77
cargoBuild error #76
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
Comments
Thanks for the excellent bug report. I see two things here: one is the clashing filenames. I've not seen that (yet), and don't have much to say about it. It looks like a Cargo configuration issue. The second is this issue with
I believe this is an issue trying to use Rust with a very modern NDK. There's some discussion in #75. Try using an earlier (stable) NDK and see if that addresses the issue, and report back? |
I tried the "22.1.7171670" NDK, as this is the version you suggested in the other issue.
P.S. I also tried NDK version "21.4.7075529", but it has the same problem. |
OK, at least we got rid of the Now, it looks like you're hitting a legit Cargo issue; I see discussion like https://users.rust-lang.org/t/crate-type-cdylib-dylib-confuses-cargo-nowadays/25447/2 about this problem. Can you share your Rust project so that we can investigate? |
Yes of course. The source code of my rust library can be found here. Let me know if I need to translate anything from the readme as it is in Dutch, everything else is in English. I'll have a look at that discussion later to see if I become any wiser. P.S. Here's a quick translation of my project's structure. |
So you're almost certainly hitting this Cargo issue, because you're building a Rust Are you confident you need the |
Ah, that seems to have fixed the problem! Thank you very much for your assistance. |
You're welcome! It's rare that we can actually close one out in a reasonable time :) Thanks for the excellent issue report and closing open loops quickly. And thanks for trying |
Hi,
I'm trying to build a rust library to Android. I have already successfully build the library for iOS. When I follow the steps in this tutorial, I get an error while building. Here's what I have done:
In my root build.gradle:
In my project's build.gradle:
I have also added all the targets to rustup.
When I then ran
./gradlew cargoBuild
, I got an error, so I ran:And This is the output I got:
I've been trying to figure out what the problem here is exactly, but I have no clue.
Can anyone give any help?
The text was updated successfully, but these errors were encountered: