Comments (4)
Is there any difference between Android ".so" library and Linux ".so" library ?
Yes, they are very different.
They use a different ABI (application binary interface), they likely run on different hardware (your linux machine is like x64, while your Android device is likely arm64).
You can see the ABI with for example: https://stackoverflow.com/questions/35424987/how-to-get-architecture-of-a-shared-object-file-so-file-using-gnu-c-program
They also use different libraries for system calls etc. So for Android you will always need to compile with the Android NDK.
Kindly confirm whether we can build ".so" library from Android Studio only or we can use some other tools.
You can build it from Android studio, or with any other compiler that can target the Android NDK.
from ffi.
Hi @santoshyadav140293, nice to meet you!
You need to bundle your library in the jniLibs folder in the generated flutter create --template=plugin_ffi --platform=android
. Place the .so
file in android/src/main/jniLibs/${target.architecture.cmakeAndroid}/
. See more info on https://developer.android.com/studio/projects/gradle-external-native-builds#jniLibs
Did you make a Flutter FFI plugin or a Dart standalone package? Dart standalone packages are currently not supported in Flutter applications. This is being tracked in:
from ffi.
Yes, I am using Flutter FFI plugin.
Kindly confirm weather we can build ".so" library from Android Studio only or we can use some other tools.
Is there any difference between Android ".so" library and Linux ".so" library ?
@dcharkes Please suggest.
from ffi.
Thank you for the response it helps me a lot.
from ffi.
Related Issues (20)
- Support for external Strings. HOT 2
- How to include dynamic library in dart package HOT 2
- missing SSL_CTX_set1_curves_list HOT 2
- Keep supporting Flutter 2 HOT 4
- How to C native call the dart function of the uint8list datatype? HOT 6
- Question: issues with returning C-string HOT 4
- FormatException when C returns string with non-ASCII character
- Dart ffi: first call on iOS device extremely slow HOT 3
- FFI API Issue on Windows - Strings and Unicode? HOT 4
- Inconsistent FFI Behavior with C Struct HOT 1
- How to treat Array<ffi.Char>? HOT 1
- Pass a Dart_PersistentHandle list / buffer from C to Dart? HOT 7
- Setup automated publishing
- unable to load .dylib in flutter app on ios platform HOT 1
- Unload / Close librarie HOT 2
- Finalizing typed list to free its native memory HOT 2
- Rename `master` to `main` HOT 4
- Convert allocation to `@Native` leaf FFI calls
- Can I get a class(object) from function return value? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffi.