How to add libpng16.so to .apk ?
Solved
Mobile and Embedded
-
I need libpng
I build libpng and have files libpng16.so libpng.soI create application for android and add png to cmake
if(ANDROID) include_directories( ${CMAKE_SOURCE_DIR}/3rdparty/Android/include ) link_directories( ${CMAKE_SOURCE_DIR}/3rdparty/Android/lib ) endif() target_link_libraries(myAPP PRIVATE Qt${QT_VERSION_MAJOR}::Widgets png)
compiler build CORRECT
linker link target file CORRECTBut after run i have
E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread E AndroidRuntime: Process: org.qtproject.example.myAPP , PID: 14799 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libpng16.so" not found
How to add my libpng16.so to APK ?
-
-
-
@cristian-adam Thank you very much