libdynamic | High performance utility library for C | Performance Testing library
kandi X-RAY | libdynamic Summary
kandi X-RAY | libdynamic Summary
High performance utility library for C
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 libdynamic
libdynamic Key Features
libdynamic Examples and Code Snippets
Community Discussions
Trending Discussions on libdynamic
QUESTION
I need to use a custom prebuilt shared library (built on standalone ndk as libdynamic.so) in my android project. I created a folder "jniLibs" in path src/main and then 4 folders inside that namely "armeabi" "armeabi-v7a" "x86" "x86_64". I have put the prebuilt library inside all these 4 folders.
Now from my native code I want to call a function of this library. In the following way (included header in cmakelists.txt):
...ANSWER
Answered 2017-Oct-13 at 15:39In order to load your library with CMake in Android environment you will have to add the following code in native-lib CMakeLists.txt:
set(LIBS_DIR ${CMAKE_SOURCE_DIR}/../jniLibs)
add_library(DYNAMIC_LIB SHARED IMPORTED)
set_target_properties(DYNAMIC_LIB PROPERTIES
IMPORTED_LOCATION ${LIBS_DIR}/${ANDROID_ABI}/lidynamic.so)
target_link_libraries(native-lib DYNAMIC_LIB)
and in the native-lib build.gradle:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install libdynamic
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