cargo-ndk | Compile Rust projects against the Android NDK without hassle | Android library
kandi X-RAY | cargo-ndk Summary
kandi X-RAY | cargo-ndk Summary
Compile Rust projects against the Android NDK without hassle
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cargo-ndk
cargo-ndk Key Features
cargo-ndk Examples and Code Snippets
Community Discussions
Trending Discussions on cargo-ndk
QUESTION
I have followed the instructions at https://flutter.dev/docs/development/platform-integration/c-interop and have successfully compiled cpp with a c abi and called it with the dart:ffi on an emulated android device using the CMake integration. This compiles an lib*.so
file, copies it over with the flutter package and places it so I can reach it easily in my flutter code.
However, assume I already have a compiled shared library either compiled myself or gotten somewhere that works with Android and its given cpu architecture outside using CMake.
How do I add it to the flutter system so its copied over and placed in a "resolvable" location the same way its done when adding
...ANSWER
Answered 2019-Nov-24 at 04:04To add your precompiled shared library, you need to put it in android/app/src/main/jniLibs/X
folder, where X is architecture name (armeabi-v7a or arm64-v8a). Though it's default path for libraries, I'm not completely sure if it's necessary, but it's probably safer to specify this folder as a source set in build.gradle:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cargo-ndk
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page