-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update 3.4.20 and 4.8.0 and some ci fix and highgui fix (#53)
* update 3.4.20 patch * update 4.8.0 patch * update toolchain and ci * split ios simulator * fix wasm simd build * enable cxx11 for opencv2 * workaround for macos build * workaround for ios build * do not convert RGB/BGR inplace on imencode/imwrite * Update stb_image.h * enable stbi neon * Update highgui.cpp * mac catalyst * add test project * opencv2 link openmp * opencv 2.4.13.7 on newer msvc * enable c++11 test * test all packages
- Loading branch information
Showing
21 changed files
with
3,650 additions
and
1,464 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff -Nuarp opencv-2.4.13.7.orig/cmake/OpenCVDetectCXXCompiler.cmake opencv-2.4.13.7/cmake/OpenCVDetectCXXCompiler.cmake | ||
--- opencv-2.4.13.7.orig/cmake/OpenCVDetectCXXCompiler.cmake 2018-07-02 20:41:56.000000000 +0800 | ||
+++ opencv-2.4.13.7/cmake/OpenCVDetectCXXCompiler.cmake 2023-08-06 19:27:16.226755305 +0800 | ||
@@ -114,3 +114,7 @@ elseif(MINGW) | ||
set(OpenCV_ARCH x86) | ||
endif() | ||
endif() | ||
+ | ||
+set(CMAKE_CXX_STANDARD 11) | ||
+set(CMAKE_CXX_STANDARD_REQUIRED TRUE) | ||
+set(CMAKE_CXX_EXTENSIONS OFF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff -Nuarp opencv-2.4.13.7.orig/modules/core/CMakeLists.txt opencv-2.4.13.7/modules/core/CMakeLists.txt | ||
--- opencv-2.4.13.7.orig/modules/core/CMakeLists.txt 2018-07-02 20:41:56.000000000 +0800 | ||
+++ opencv-2.4.13.7/modules/core/CMakeLists.txt 2023-08-13 19:26:51.073833956 +0800 | ||
@@ -52,7 +52,11 @@ else() | ||
HEADERS ${lib_cuda_hdrs} ${lib_cuda_hdrs_detail}) | ||
endif() | ||
|
||
-ocv_create_module() | ||
+if(HAVE_OPENMP AND DEFINED OpenMP_CXX_LIBRARIES AND OpenMP_CXX_LIBRARIES) | ||
+ ocv_create_module(${OpenMP_CXX_LIBRARIES}) | ||
+else() | ||
+ ocv_create_module() | ||
+endif() | ||
ocv_add_precompiled_headers(${the_module}) | ||
|
||
ocv_add_accuracy_tests() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff -Nuarp opencv-2.4.13.7.orig/cmake/OpenCVConfig.cmake opencv-2.4.13.7/cmake/OpenCVConfig.cmake | ||
--- opencv-2.4.13.7.orig/cmake/OpenCVConfig.cmake 2018-07-02 20:41:56.000000000 +0800 | ||
+++ opencv-2.4.13.7/cmake/OpenCVConfig.cmake 2023-08-13 22:11:10.193931771 +0800 | ||
@@ -85,6 +85,10 @@ elseif(MSVC) | ||
set(OpenCV_RUNTIME vc14) | ||
elseif(MSVC_VERSION MATCHES "^191[0-9]$") | ||
set(OpenCV_RUNTIME vc15) | ||
+ elseif(MSVC_VERSION MATCHES "^192[0-9]$") | ||
+ set(OpenCV_RUNTIME vc16) | ||
+ elseif(MSVC_VERSION MATCHES "^193[0-9]$") | ||
+ set(OpenCV_RUNTIME vc17) | ||
endif() | ||
elseif(MINGW) | ||
set(OpenCV_RUNTIME mingw) | ||
diff -Nuarp opencv-2.4.13.7.orig/cmake/OpenCVDetectCXXCompiler.cmake opencv-2.4.13.7/cmake/OpenCVDetectCXXCompiler.cmake | ||
--- opencv-2.4.13.7.orig/cmake/OpenCVDetectCXXCompiler.cmake 2018-07-02 20:41:56.000000000 +0800 | ||
+++ opencv-2.4.13.7/cmake/OpenCVDetectCXXCompiler.cmake 2023-08-13 22:11:03.358965110 +0800 | ||
@@ -104,6 +104,10 @@ elseif(MSVC) | ||
set(OpenCV_RUNTIME vc14) | ||
elseif(MSVC_VERSION MATCHES "^191[0-9]$") | ||
set(OpenCV_RUNTIME vc15) | ||
+ elseif(MSVC_VERSION MATCHES "^192[0-9]$") | ||
+ set(OpenCV_RUNTIME vc16) | ||
+ elseif(MSVC_VERSION MATCHES "^193[0-9]$") | ||
+ set(OpenCV_RUNTIME vc17) | ||
endif() | ||
elseif(MINGW) | ||
set(OpenCV_RUNTIME mingw) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff -Nuarp opencv-3.4.20.orig/modules/core/include/opencv2/core/hal/intrin_wasm.hpp opencv-3.4.20/modules/core/include/opencv2/core/hal/intrin_wasm.hpp | ||
--- opencv-3.4.20.orig/modules/core/include/opencv2/core/hal/intrin_wasm.hpp 2023-06-27 19:29:13.000000000 +0800 | ||
+++ opencv-3.4.20/modules/core/include/opencv2/core/hal/intrin_wasm.hpp 2023-08-06 19:09:44.971191540 +0800 | ||
@@ -8,6 +8,7 @@ | ||
#include <limits> | ||
#include <cstring> | ||
#include <algorithm> | ||
+#include <emscripten/version.h> | ||
#include "opencv2/core/saturate.hpp" | ||
|
||
#define CV_SIMD128 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff -Nuarp opencv-3.4.20.orig/modules/core/CMakeLists.txt opencv-3.4.20/modules/core/CMakeLists.txt | ||
--- opencv-3.4.20.orig/modules/core/CMakeLists.txt 2023-06-27 19:29:13.000000000 +0800 | ||
+++ opencv-3.4.20/modules/core/CMakeLists.txt 2023-08-13 19:39:56.659037366 +0800 | ||
@@ -31,6 +31,10 @@ if(HAVE_TBB) | ||
list(APPEND extra_libs tbb) | ||
endif() | ||
|
||
+if(HAVE_OPENMP AND DEFINED OpenMP_CXX_LIBRARIES AND OpenMP_CXX_LIBRARIES) | ||
+ list(APPEND extra_libs ${OpenMP_CXX_LIBRARIES}) | ||
+endif() | ||
+ | ||
if(DEFINED WINRT AND NOT DEFINED ENABLE_WINRT_MODE_NATIVE) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -Nuarp opencv-3.4.20.orig/modules/core/src/persistence.hpp opencv-3.4.20/modules/core/src/persistence.hpp | ||
--- opencv-3.4.20.orig/modules/core/src/persistence.hpp 2023-06-27 19:29:13.000000000 +0800 | ||
+++ opencv-3.4.20/modules/core/src/persistence.hpp 2023-08-06 11:09:02.718289684 +0800 | ||
@@ -12,7 +12,7 @@ | ||
#include <string> | ||
#include <iterator> | ||
|
||
-#define USE_ZLIB 1 | ||
+#define USE_ZLIB 0 | ||
#if USE_ZLIB | ||
# ifndef _LFS64_LARGEFILE | ||
# define _LFS64_LARGEFILE 0 |
8 changes: 4 additions & 4 deletions
8
opencv-3.4.18-unsafe-xadd.patch → opencv-3.4.20-unsafe-xadd.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.