Merge pull request #4140 from mshabunin:fix-java-package

pull/4144/head
Alexander Alekhin 10 years ago
commit a1cdbd4d84
  1. 3
      cmake/OpenCVFindLibsGrfmt.cmake
  2. 2
      modules/java/generator/src/java/android+AsyncServiceHelper.java
  3. 2
      modules/java/generator/src/java/android+StaticHelper.java

@ -8,7 +8,8 @@ if(BUILD_ZLIB)
else()
find_package(ZLIB "${MIN_VER_ZLIB}")
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)
endif()
endif()

@ -376,7 +376,7 @@ class AsyncServiceHelper
else
{
// 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);
}

@ -92,7 +92,7 @@ class StaticHelper {
else
{
// If dependencies list is not defined or empty.
result &= loadLibrary("opencv_java");
result &= loadLibrary("opencv_java3");
}
return result;

Loading…
Cancel
Save