Merge pull request #1 from HFVladimir/deformation

Opencv_android
This commit is contained in:
putdanil 2022-07-20 14:21:28 +04:00 committed by GitHub
commit dcb3ab73e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View File

@ -35,8 +35,8 @@ http_archive(
http_archive(
name = "rules_cc",
strip_prefix = "rules_cc-main",
urls = ["https://github.com/bazelbuild/rules_cc/archive/main.zip"],
strip_prefix = "rules_cc-8bb0eb5c5ccd96b91753bb112096bb6993d16d13",
urls = ["https://github.com/bazelbuild/rules_cc/archive/8bb0eb5.zip"],
)
http_archive(
@ -190,7 +190,7 @@ http_archive(
new_local_repository(
name = "linux_opencv",
build_file = "@//third_party:opencv_linux.BUILD",
path = "/usr",
path = "/usr/local",
)
new_local_repository(
@ -225,8 +225,9 @@ http_archive(
build_file = "@//third_party:opencv_android.BUILD",
strip_prefix = "OpenCV-android-sdk",
type = "zip",
url = "https://github.com/opencv/opencv/releases/download/3.4.3/opencv-3.4.3-android-sdk.zip",
)
# url = "https://github.com/opencv/opencv/releases/download/3.4.10/opencv-3.4.10-#android-sdk.zip",
url = "https://github.com/opencv/opencv/releases/download/4.0.1/opencv-4.0.1-android-sdk.zip"
)
# After OpenCV 3.2.0, the pre-compiled opencv2.framework has google protobuf symbols, which will
# trigger duplicate symbol errors in the linking stage of building a mediapipe ios app.
@ -416,3 +417,5 @@ libedgetpu_dependencies()
load("@coral_crosstool//:configure.bzl", "cc_crosstool")
cc_crosstool(name = "crosstool")
android_sdk_repository(name = "androidsdk", build_tools_version = "30.0.1")
android_ndk_repository(name = "androidndk", api_level=21)

View File

@ -5,7 +5,7 @@ licenses(["notice"]) # BSD license
exports_files(["LICENSE"])
OPENCV_LIBRARY_NAME = "libopencv_java3.so"
OPENCV_LIBRARY_NAME = "libopencv_java4.so"
OPENCVANDROIDSDK_NATIVELIBS_PATH = "sdk/native/libs/"