This commit is contained in:
mslight 2022-07-20 14:36:16 +04:00
commit 3329e2cb7c
2 changed files with 8 additions and 7 deletions

View File

@ -35,8 +35,8 @@ http_archive(
http_archive( http_archive(
name = "rules_cc", name = "rules_cc",
strip_prefix = "rules_cc-main", strip_prefix = "rules_cc-8bb0eb5c5ccd96b91753bb112096bb6993d16d13",
urls = ["https://github.com/bazelbuild/rules_cc/archive/main.zip"], urls = ["https://github.com/bazelbuild/rules_cc/archive/8bb0eb5.zip"],
) )
http_archive( http_archive(
@ -190,7 +190,7 @@ http_archive(
new_local_repository( new_local_repository(
name = "linux_opencv", name = "linux_opencv",
build_file = "@//third_party:opencv_linux.BUILD", build_file = "@//third_party:opencv_linux.BUILD",
path = "/usr", path = "/usr/local",
) )
new_local_repository( new_local_repository(
@ -225,8 +225,9 @@ http_archive(
build_file = "@//third_party:opencv_android.BUILD", build_file = "@//third_party:opencv_android.BUILD",
strip_prefix = "OpenCV-android-sdk", strip_prefix = "OpenCV-android-sdk",
type = "zip", 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 # 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. # trigger duplicate symbol errors in the linking stage of building a mediapipe ios app.

View File

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