Commit 83b2621d authored by Maksim Shabunin's avatar Maksim Shabunin

Android: renamed default library name for static and dynamic fallback load;…

Android: renamed default library name for static and dynamic fallback load; fixed libz import for 64-bit platforms
parent 59ed7d06
...@@ -8,7 +8,8 @@ if(BUILD_ZLIB) ...@@ -8,7 +8,8 @@ if(BUILD_ZLIB)
else() else()
find_package(ZLIB "${MIN_VER_ZLIB}") find_package(ZLIB "${MIN_VER_ZLIB}")
if(ZLIB_FOUND AND ANDROID) if(ZLIB_FOUND AND ANDROID)
if(ZLIB_LIBRARIES STREQUAL "${ANDROID_SYSROOT}/usr/lib/libz.so") if(ZLIB_LIBRARIES STREQUAL "${ANDROID_SYSROOT}/usr/lib/libz.so" OR
ZLIB_LIBRARIES STREQUAL "${ANDROID_SYSROOT}/usr/lib64/libz.so")
set(ZLIB_LIBRARIES z) set(ZLIB_LIBRARIES z)
endif() endif()
endif() endif()
......
...@@ -376,7 +376,7 @@ class AsyncServiceHelper ...@@ -376,7 +376,7 @@ class AsyncServiceHelper
else else
{ {
// If the dependencies list is not defined or empty. // If the dependencies list is not defined or empty.
String AbsLibraryPath = Path + File.separator + "libopencv_java.so"; String AbsLibraryPath = Path + File.separator + "libopencv_java3.so";
result &= loadLibrary(AbsLibraryPath); result &= loadLibrary(AbsLibraryPath);
} }
......
...@@ -92,7 +92,7 @@ class StaticHelper { ...@@ -92,7 +92,7 @@ class StaticHelper {
else else
{ {
// If dependencies list is not defined or empty. // If dependencies list is not defined or empty.
result &= loadLibrary("opencv_java"); result &= loadLibrary("opencv_java3");
} }
return result; return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment