bbqsrc / cargo-ndk

Compile Rust projects against the Android NDK without hassle
Apache License 2.0
712 stars 64 forks source link

A library produces .sos with undefined symbols #124

Closed mavavilj closed 12 months ago

mavavilj commented 1 year ago

I am using cargo-ndk for the first time, and I have not used Rust before.

I tried building https://github.com/Sytronik/pyin-rs with it.

The resulting .sos list the symbols as undefined when viewed with llvm-nm of the respective NDK.

Is the crate built faultily for the purposes of cargo-ndk?

bbqsrc commented 12 months ago

This is not a bug with cargo-ndk.

mavavilj commented 12 months ago

Thank you.

Okay so the crate is incompatible?

I would haved liked to understand why or how.

I couldn't find info regarding how a crate must be designed in order to compile with cargo-ndk from https://github.com/bbqsrc/cargo-ndk

bbqsrc commented 12 months ago

I would recommend opening a bug against the code, not the tool you used to try to build it.

cargo ndk is just a thin wrapper around cargo.