From c21359117f8f27e4d0b79d3e3e70b881b821d86a Mon Sep 17 00:00:00 2001 From: Shashikant Ghangare Date: Thu, 31 Jan 2019 15:13:23 +0530 Subject: [PATCH 1/3] Update CMakeLists.txt Added OpenCV requirement to fix installation errors on ARM/aarch64. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce8fdf4..1e99ea6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,11 @@ find_package(JPEG REQUIRED) include_directories(${JPEG_INCLUDE_DIR}) target_link_libraries(lycon ${JPEG_LIBRARY}) +# OpenCV +find_package(OpenCV REQUIRED) +include_directories(${OpenCV_INCLUDE_DIR}) +target_link_libraries(lycon ${OpenCV_LIBS}) + # The Python extension if (LYCON_BUILD_PYTHON) include(cmake/LocatePythonLibs.cmake) From de98eff0eaa45fb548ac55e6357c7abe2c4d6af2 Mon Sep 17 00:00:00 2001 From: Shashikant Ghangare Date: Thu, 31 Jan 2019 15:17:23 +0530 Subject: [PATCH 2/3] Included OpenCV Neon Utils module. Included OpenCV module neon_utils.hpp to fix installation errors on ARM/aarch64 platforms. --- src/lycon/mat/convert.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lycon/mat/convert.h b/src/lycon/mat/convert.h index 9f8e4a4..567fc8a 100644 --- a/src/lycon/mat/convert.h +++ b/src/lycon/mat/convert.h @@ -1,6 +1,9 @@ #pragma once #include "lycon/mat/shared.h" +#include "opencv2/core/neon_utils.h" + +using namespace cv; namespace lycon { From 64fa4a50e99892dd1a189a7398124ff5a6f57368 Mon Sep 17 00:00:00 2001 From: Shashikant Ghangare Date: Thu, 31 Jan 2019 15:21:02 +0530 Subject: [PATCH 3/3] Included OpenCV Neon Utils module. Included OpenCV module neon_utils.hpp to fix installation errors on ARM/aarch64 platforms. --- src/lycon/transform/resize.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lycon/transform/resize.h b/src/lycon/transform/resize.h index dd6dd10..501fad4 100644 --- a/src/lycon/transform/resize.h +++ b/src/lycon/transform/resize.h @@ -1,6 +1,9 @@ #pragma once #include "lycon/mat/mat.h" +#include "opencv2/core/neon_utils.h" + +using namespace cv; namespace lycon {