Comments (2)
turned out the ABI subdirectory is required for dlopen to find the lib. Modifying my CMakeLists.txt
like so solved the issue
cmake_minimum_required(VERSION 3.4.1)
add_library(librPPG SHARED IMPORTED GLOBAL)
set_target_properties(librPPG PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/librPPG.so)
from ffi.
For everyone who gets here, it is important to have the specifics files for ANDROID_ABI value
I have for example src/main/jniLibs/armeabi-v7a/librPPG.so
file but the project needed the others ABI values to avoid the
ArgumentError (Invalid argument(s): Failed to load dynamic library (dlopen failed: library "librPPG.so" not found))
from ffi.
Related Issues (20)
- Setup automated publishing
- Unable to load .so library in flutter using platform android emulator HOT 4
- 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
- Is `Utf8` equivalent to `ffi.Char`? HOT 4
- Using @Native/@FfiNative in an FFI plugin on Android HOT 12
- Invocation native function of namespace PlatformConfigurationNativeApi HOT 2
- FFI will not run in release mode unless the Testability flag is set (IOS) HOT 3
- How can I add third party libraries ? HOT 6
- Access Uint8List as a Struct HOT 3
- App is crashing after trying to free reassigned pointer HOT 10
- The C callback function registered through ffi invalidates both asynchronous operations and timers during the callback HOT 2
- Make `Arena` and `using` availble for other abstractions than FFI? HOT 6
- FFI lookupFunction causes stack overflow HOT 2
- Merge this repo into dart-lang/native
- ffigen generating `Pointer<Int>` instead of `Array<...>` HOT 6
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.