mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
8366a2e506
Update FastCV lib hash for Linux and Android Updated libs PR [opencv/opencv_3rdparty#101](https://github.com/opencv/opencv_3rdparty/pull/101) ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [ ] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
45 lines
1.5 KiB
CMake
45 lines
1.5 KiB
CMake
function(download_fastcv root_dir)
|
|
|
|
# Commit SHA in the opencv_3rdparty repo
|
|
set(FASTCV_COMMIT "9e8d42b6d7e769548d70b2e5674e263b056de8b4")
|
|
|
|
# Define actual FastCV versions
|
|
if(ANDROID)
|
|
if(AARCH64)
|
|
message(STATUS "Download FastCV for Android aarch64")
|
|
set(FCV_PACKAGE_NAME "fastcv_android_aarch64_2025_07_09.tgz")
|
|
set(FCV_PACKAGE_HASH "8b9497858cf3c3502a0be4369d06ebf8")
|
|
else()
|
|
message(STATUS "Download FastCV for Android armv7")
|
|
set(FCV_PACKAGE_NAME "fastcv_android_arm32_2025_07_09.tgz")
|
|
set(FCV_PACKAGE_HASH "e0e6009c9f2f2b96140cd6a639c7383f")
|
|
endif()
|
|
elseif(UNIX AND NOT APPLE AND NOT IOS AND NOT XROS)
|
|
if(AARCH64)
|
|
set(FCV_PACKAGE_NAME "fastcv_linux_aarch64_2025_07_09.tgz")
|
|
set(FCV_PACKAGE_HASH "05e254e0eb3c13fa23eb7213f0fe6d82")
|
|
else()
|
|
message("FastCV: fastcv lib for 32-bit Linux is not supported for now!")
|
|
endif()
|
|
endif(ANDROID)
|
|
|
|
# Download Package
|
|
|
|
set(OPENCV_FASTCV_URL "https://raw.githubusercontent.com/opencv/opencv_3rdparty/${FASTCV_COMMIT}/fastcv/")
|
|
|
|
ocv_download( FILENAME ${FCV_PACKAGE_NAME}
|
|
HASH ${FCV_PACKAGE_HASH}
|
|
URL ${OPENCV_FASTCV_URL}
|
|
DESTINATION_DIR ${root_dir}
|
|
ID FASTCV
|
|
STATUS res
|
|
UNPACK
|
|
RELATIVE_URL)
|
|
if(res)
|
|
set(HAVE_FASTCV TRUE CACHE BOOL "FastCV status")
|
|
else()
|
|
message(WARNING "FastCV: package download failed!")
|
|
endif()
|
|
|
|
endfunction()
|