parent
3c68ac1afc
commit
35e6529cd2
@ -1,82 +0,0 @@
|
|||||||
From ad35b79e3f98b4ce30481e0299cca550ed77aef0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Alexander Alekhin <alexander.a.alekhin@gmail.com>
|
|
||||||
Date: Thu, 22 Nov 2018 21:06:33 +0000
|
|
||||||
Subject: [PATCH] python: update install paths
|
|
||||||
|
|
||||||
- don't require "OPENCV_PYTHON{2,3}_INSTALL_PATH" if OPENCV_SKIP_PYTHON_LOADER=ON
|
|
||||||
- avoid unnecessary relative paths in generated config-X.Y.py
|
|
||||||
---
|
|
||||||
CMakeLists.txt | 4 ++--
|
|
||||||
modules/python/common.cmake | 14 +++++++++-----
|
|
||||||
2 files changed, 11 insertions(+), 7 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index fde8b578ba0..6298f4438c2 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -1494,7 +1494,7 @@ if(BUILD_opencv_python2)
|
|
||||||
status(" Libraries:" HAVE_opencv_python2 THEN "${PYTHON2_LIBRARIES}" ELSE NO)
|
|
||||||
endif()
|
|
||||||
status(" numpy:" PYTHON2_NUMPY_INCLUDE_DIRS THEN "${PYTHON2_NUMPY_INCLUDE_DIRS} (ver ${PYTHON2_NUMPY_VERSION})" ELSE "NO (Python wrappers can not be generated)")
|
|
||||||
- status(" packages path:" PYTHON2_EXECUTABLE THEN "${PYTHON2_PACKAGES_PATH}" ELSE "-")
|
|
||||||
+ status(" install path:" HAVE_opencv_python2 THEN "${__INSTALL_PATH_PYTHON2}" ELSE "-")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(BUILD_opencv_python3)
|
|
||||||
@@ -1507,7 +1507,7 @@ if(BUILD_opencv_python3)
|
|
||||||
status(" Libraries:" HAVE_opencv_python3 THEN "${PYTHON3_LIBRARIES}" ELSE NO)
|
|
||||||
endif()
|
|
||||||
status(" numpy:" PYTHON3_NUMPY_INCLUDE_DIRS THEN "${PYTHON3_NUMPY_INCLUDE_DIRS} (ver ${PYTHON3_NUMPY_VERSION})" ELSE "NO (Python3 wrappers can not be generated)")
|
|
||||||
- status(" packages path:" PYTHON3_EXECUTABLE THEN "${PYTHON3_PACKAGES_PATH}" ELSE "-")
|
|
||||||
+ status(" install path:" HAVE_opencv_python3 THEN "${__INSTALL_PATH_PYTHON3}" ELSE "-")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
status("")
|
|
||||||
diff --git a/modules/python/common.cmake b/modules/python/common.cmake
|
|
||||||
index 14912297eae..4b4eaa6e7f8 100644
|
|
||||||
--- a/modules/python/common.cmake
|
|
||||||
+++ b/modules/python/common.cmake
|
|
||||||
@@ -122,6 +122,8 @@ endif()
|
|
||||||
|
|
||||||
if(NOT " ${PYTHON}" STREQUAL " PYTHON" AND DEFINED OPENCV_${PYTHON}_INSTALL_PATH)
|
|
||||||
set(__python_binary_install_path "${OPENCV_${PYTHON}_INSTALL_PATH}")
|
|
||||||
+elseif(OPENCV_SKIP_PYTHON_LOADER AND DEFINED ${PYTHON}_PACKAGES_PATH)
|
|
||||||
+ set(__python_binary_install_path "${${PYTHON}_PACKAGES_PATH}")
|
|
||||||
else()
|
|
||||||
ocv_assert(DEFINED OPENCV_PYTHON_INSTALL_PATH)
|
|
||||||
set(__python_binary_install_path "${OPENCV_PYTHON_INSTALL_PATH}/${__python_loader_subdir}python-${${PYTHON}_VERSION_MAJOR}.${${PYTHON}_VERSION_MINOR}")
|
|
||||||
@@ -134,6 +136,8 @@ install(TARGETS ${the_module}
|
|
||||||
${PYTHON_INSTALL_ARCHIVE}
|
|
||||||
)
|
|
||||||
|
|
||||||
+set(__INSTALL_PATH_${PYTHON} "${__python_binary_install_path}" CACHE INTERNAL "") # CMake status
|
|
||||||
+
|
|
||||||
if(NOT OPENCV_SKIP_PYTHON_LOADER)
|
|
||||||
ocv_assert(DEFINED OPENCV_PYTHON_INSTALL_PATH)
|
|
||||||
if(OpenCV_FOUND)
|
|
||||||
@@ -143,12 +147,11 @@ if(NOT OPENCV_SKIP_PYTHON_LOADER)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(__python_loader_install_tmp_path "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/install/python_loader/")
|
|
||||||
+ set(OpenCV_PYTHON_LOADER_FULL_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/${OPENCV_PYTHON_INSTALL_PATH}/cv2")
|
|
||||||
if(IS_ABSOLUTE "${OPENCV_PYTHON_INSTALL_PATH}")
|
|
||||||
- set(OpenCV_PYTHON_INSTALL_PATH_RELATIVE_CONFIGCMAKE "${CMAKE_INSTALL_PREFIX}/")
|
|
||||||
- set(CMAKE_PYTHON_EXTENSION_INSTALL_PATH_BASE "'${CMAKE_INSTALL_PREFIX}'")
|
|
||||||
+ set(CMAKE_PYTHON_EXTENSION_INSTALL_PATH_BASE "'${OPENCV_PYTHON_INSTALL_PATH}/cv2'")
|
|
||||||
else()
|
|
||||||
- file(RELATIVE_PATH OpenCV_PYTHON_INSTALL_PATH_RELATIVE_CONFIGCMAKE "${CMAKE_INSTALL_PREFIX}/${OPENCV_PYTHON_INSTALL_PATH}/cv2" ${CMAKE_INSTALL_PREFIX})
|
|
||||||
- set(CMAKE_PYTHON_EXTENSION_INSTALL_PATH_BASE "os.path.join(LOADER_DIR, '${OpenCV_PYTHON_INSTALL_PATH_RELATIVE_CONFIGCMAKE}')")
|
|
||||||
+ set(CMAKE_PYTHON_EXTENSION_INSTALL_PATH_BASE "LOADER_DIR")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(DEFINED ${PYTHON}_VERSION_MINOR)
|
|
||||||
@@ -167,7 +170,8 @@ if(NOT OPENCV_SKIP_PYTHON_LOADER)
|
|
||||||
if(IS_ABSOLUTE __python_binary_install_path)
|
|
||||||
set(CMAKE_PYTHON_EXTENSION_PATH "'${__python_binary_install_path}'")
|
|
||||||
else()
|
|
||||||
- set(CMAKE_PYTHON_EXTENSION_PATH "os.path.join(${CMAKE_PYTHON_EXTENSION_INSTALL_PATH_BASE}, '${__python_binary_install_path}')")
|
|
||||||
+ file(RELATIVE_PATH OpenCV_PYTHON_BINARY_RELATIVE_INSTALL_PATH "${OpenCV_PYTHON_LOADER_FULL_INSTALL_PATH}" "${CMAKE_INSTALL_PREFIX}/${__python_binary_install_path}")
|
|
||||||
+ set(CMAKE_PYTHON_EXTENSION_PATH "os.path.join(${CMAKE_PYTHON_EXTENSION_INSTALL_PATH_BASE}, '${OpenCV_PYTHON_BINARY_RELATIVE_INSTALL_PATH}')")
|
|
||||||
endif()
|
|
||||||
configure_file("${PYTHON_SOURCE_DIR}/package/template/config-x.y.py.in" "${__python_loader_install_tmp_path}/cv2/${__target_config}" @ONLY)
|
|
||||||
install(FILES "${__python_loader_install_tmp_path}/cv2/${__target_config}" DESTINATION "${OPENCV_PYTHON_INSTALL_PATH}/cv2/" COMPONENT python)
|
|
@ -1,35 +0,0 @@
|
|||||||
From c26c43c69c654344d2e2fb7b2d21121ca89224e6 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Maksim Shabunin <maksim.shabunin@gmail.com>
|
|
||||||
Date: Mon, 3 Dec 2018 17:16:09 +0300
|
|
||||||
Subject: [PATCH] Fixed compilation with VA-interop on 32-bit platforms
|
|
||||||
|
|
||||||
---
|
|
||||||
modules/core/src/va_intel.cpp | 8 ++++----
|
|
||||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/modules/core/src/va_intel.cpp b/modules/core/src/va_intel.cpp
|
|
||||||
index ac74f0c5337..c571b90b5fe 100644
|
|
||||||
--- a/modules/core/src/va_intel.cpp
|
|
||||||
+++ b/modules/core/src/va_intel.cpp
|
|
||||||
@@ -340,8 +340,8 @@ static void copy_convert_yv12_to_bgr(const VAImage& image, const unsigned char*
|
|
||||||
1.5959997177f
|
|
||||||
};
|
|
||||||
|
|
||||||
- CV_CheckEQ(image.format.fourcc, VA_FOURCC_YV12, "Unexpected image format");
|
|
||||||
- CV_CheckEQ(image.num_planes, 3, "");
|
|
||||||
+ CV_CheckEQ((size_t)image.format.fourcc, (size_t)VA_FOURCC_YV12, "Unexpected image format");
|
|
||||||
+ CV_CheckEQ((size_t)image.num_planes, (size_t)3, "");
|
|
||||||
|
|
||||||
const size_t srcOffsetY = image.offsets[0];
|
|
||||||
const size_t srcOffsetV = image.offsets[1];
|
|
||||||
@@ -417,8 +417,8 @@ static void copy_convert_bgr_to_yv12(const VAImage& image, const Mat& bgr, unsig
|
|
||||||
-0.2909994125f, 0.438999176f, -0.3679990768f, -0.0709991455f
|
|
||||||
};
|
|
||||||
|
|
||||||
- CV_CheckEQ(image.format.fourcc, VA_FOURCC_YV12, "Unexpected image format");
|
|
||||||
- CV_CheckEQ(image.num_planes, 3, "");
|
|
||||||
+ CV_CheckEQ((size_t)image.format.fourcc, (size_t)VA_FOURCC_YV12, "Unexpected image format");
|
|
||||||
+ CV_CheckEQ((size_t)image.num_planes, (size_t)3, "");
|
|
||||||
|
|
||||||
const size_t dstOffsetY = image.offsets[0];
|
|
||||||
const size_t dstOffsetV = image.offsets[1];
|
|
@ -1,28 +0,0 @@
|
|||||||
From c4419e4e65a8d9e0b5a15e9a5242453f261bee46 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Alexander Alekhin <alexander.a.alekhin@gmail.com>
|
|
||||||
Date: Thu, 15 Nov 2018 06:54:35 +0000
|
|
||||||
Subject: [PATCH] cvv: repair build
|
|
||||||
|
|
||||||
---
|
|
||||||
modules/cvv/src/qtutil/filter/diffFilterWidget.cpp | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/modules/cvv/src/qtutil/filter/diffFilterWidget.cpp b/modules/cvv/src/qtutil/filter/diffFilterWidget.cpp
|
|
||||||
index a555c84983..ca2964fd16 100644
|
|
||||||
--- a/modules/cvv/src/qtutil/filter/diffFilterWidget.cpp
|
|
||||||
+++ b/modules/cvv/src/qtutil/filter/diffFilterWidget.cpp
|
|
||||||
@@ -1,6 +1,5 @@
|
|
||||||
#include <opencv2/core.hpp>
|
|
||||||
#include <opencv2/imgproc.hpp>
|
|
||||||
-#include <opencv2/imgproc/types_c.h>
|
|
||||||
|
|
||||||
#include <unordered_map>
|
|
||||||
|
|
||||||
@@ -14,6 +13,7 @@
|
|
||||||
|
|
||||||
namespace cvv
|
|
||||||
{
|
|
||||||
+using namespace cv;
|
|
||||||
namespace qtutil
|
|
||||||
{
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
--- ./CMakeLists.txt.orig 2018-02-27 01:46:32.259819239 +0000
|
|
||||||
+++ ./CMakeLists.txt 2018-02-27 19:48:19.658736383 +0000
|
|
||||||
@@ -439,19 +439,14 @@ else()
|
|
||||||
ocv_update(OPENCV_CONFIG_INSTALL_PATH ".")
|
|
||||||
else()
|
|
||||||
include(GNUInstallDirs)
|
|
||||||
- ocv_update(OPENCV_LIB_INSTALL_PATH ${CMAKE_INSTALL_LIBDIR}${LIB_SUFFIX})
|
|
||||||
+ ocv_update(OPENCV_LIB_INSTALL_PATH ${CMAKE_INSTALL_LIBDIR})
|
|
||||||
ocv_update(OPENCV_3P_LIB_INSTALL_PATH share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH})
|
|
||||||
ocv_update(OPENCV_SAMPLES_SRC_INSTALL_PATH share/OpenCV/samples)
|
|
||||||
ocv_update(OPENCV_JAR_INSTALL_PATH share/OpenCV/java)
|
|
||||||
ocv_update(OPENCV_OTHER_INSTALL_PATH share/OpenCV)
|
|
||||||
|
|
||||||
if(NOT DEFINED OPENCV_CONFIG_INSTALL_PATH)
|
|
||||||
- math(EXPR SIZEOF_VOID_P_BITS "8 * ${CMAKE_SIZEOF_VOID_P}")
|
|
||||||
- if(LIB_SUFFIX AND NOT SIZEOF_VOID_P_BITS EQUAL LIB_SUFFIX)
|
|
||||||
- ocv_update(OPENCV_CONFIG_INSTALL_PATH ${CMAKE_INSTALL_LIBDIR}${LIB_SUFFIX}/cmake/opencv)
|
|
||||||
- else()
|
|
||||||
- ocv_update(OPENCV_CONFIG_INSTALL_PATH share/OpenCV)
|
|
||||||
- endif()
|
|
||||||
+ ocv_update(OPENCV_CONFIG_INSTALL_PATH lib${LIB_SUFFIX}/OpenCV)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
ocv_update(OPENCV_INCLUDE_INSTALL_PATH "include")
|
|
@ -0,0 +1,11 @@
|
|||||||
|
--- ./cmake/OpenCVDetectOpenCL.cmake.orig 2019-05-14 00:35:41.373094435 +0100
|
||||||
|
+++ ./cmake/OpenCVDetectOpenCL.cmake 2019-05-14 00:35:50.833189862 +0100
|
||||||
|
@@ -5,7 +5,7 @@ if(APPLE)
|
||||||
|
else()
|
||||||
|
set(OPENCL_LIBRARY "" CACHE STRING "OpenCL library")
|
||||||
|
set(OPENCL_INCLUDE_DIR "${OpenCV_SOURCE_DIR}/3rdparty/include/opencl/1.2" CACHE PATH "OpenCL include directory")
|
||||||
|
- ocv_install_3rdparty_licenses(opencl-headers "${OpenCV_SOURCE_DIR}/3rdparty/include/opencl/LICENSE.txt")
|
||||||
|
+ #ocv_install_3rdparty_licenses(opencl-headers "${OpenCV_SOURCE_DIR}/3rdparty/include/opencl/LICENSE.txt")
|
||||||
|
endif()
|
||||||
|
mark_as_advanced(OPENCL_INCLUDE_DIR OPENCL_LIBRARY)
|
||||||
|
|
@ -1,2 +1,2 @@
|
|||||||
SHA512 (opencv_contrib-clean-3.4.4.tar.gz) = ccb2fd7c3034e5c6e6d5065ee74a65ad4d4861a5683a81013cc93750de81d390ff2ad40ed65fcf54807090f67b136e6bb57cd9f1a435c49d5812d5380c062fd7
|
SHA512 (opencv-clean-3.4.6.tar.gz) = df7f2ee5ab83c047e5caa8cb12f6cbd8e7c13e554fe4183c43fc4d59e6b42e7a6e8caf71de587c95e36ec720105b4e5c166f3e376bb7ad446bd1b94bc0a84192
|
||||||
SHA512 (opencv-clean-3.4.4.tar.gz) = ee8cc8af5e8c6accb4593171c6e30848f91717d41143e74336934fa4eefe4a333623ce2cf54f663f4e70a86c2d637389d9d0636458c9d35e6a5bf75a4cd78b84
|
SHA512 (opencv_contrib-3.4.6.tar.gz) = 27e9edeed2c995fcf2bd4a1f9226911f6bca2761d0ca615723eb851bb3fd5b46b7b55531db65d12593886e2484beb4ec7c8b2efaae2638c8427913cb9f3e0cb9
|
||||||
|
Loading…
Reference in new issue