fluffyemily / cross-platform-rust

Example project showing a rust library running on iOS
280 stars 35 forks source link

16 Android 4.1 - Cannot load library: reloc_library[1306]: 1141 cannot locate '__register_atfork' #38

Open atonamy opened 6 years ago

atonamy commented 6 years ago

If I try to run the basic example on Android 4.1 (16) I getting this exception while loading jni library:

Cannot load library: reloc_library[1306]: 1141 cannot locate '__register_atfork'

How to fix this?

atonamy commented 6 years ago

I found what cause this issue, you see in the article it instruct to use

make_standalone_toolchain.py --api 26

but in real world we actually should use

make_standalone_toolchain.py --api 16

to make it compatible and executable under older versions of Android