Skip to content

Instantly share code, notes, and snippets.

@pjalusic
Last active April 8, 2023 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjalusic/7feb9cd722a437c0f6eea34622ca44c8 to your computer and use it in GitHub Desktop.
Save pjalusic/7feb9cd722a437c0f6eea34622ca44c8 to your computer and use it in GitHub Desktop.
diff --git a/OpenCVFindLibsPerf.cmake b/OpenCVFindLibsPerf.cmake
index a658bf6..9614f99 100644
--- a/OpenCVFindLibsPerf.cmake
+++ b/OpenCVFindLibsPerf.cmake
@@ -41,13 +41,13 @@ endif(WITH_CUDA)
# --- Eigen ---
if(WITH_EIGEN AND NOT HAVE_EIGEN)
- find_package(Eigen3 QUIET)
+ find_package(Eigen3 3.0.0)
if(Eigen3_FOUND)
- if(TARGET Eigen3::Eigen)
+ #if(TARGET Eigen3::Eigen)
# Use Eigen3 imported target if possible
- list(APPEND OPENCV_LINKER_LIBS Eigen3::Eigen)
- set(HAVE_EIGEN 1)
+ #list(APPEND OPENCV_LINKER_LIBS Eigen3::Eigen)
+ #set(HAVE_EIGEN 1)
else()
if(DEFINED EIGEN3_INCLUDE_DIRS)
set(EIGEN_INCLUDE_PATH ${EIGEN3_INCLUDE_DIRS})
@@ -56,7 +56,7 @@ if(WITH_EIGEN AND NOT HAVE_EIGEN)
set(EIGEN_INCLUDE_PATH ${EIGEN3_INCLUDE_DIR})
set(HAVE_EIGEN 1)
endif()
- endif()
+ #endif()
if(HAVE_EIGEN)
if(DEFINED EIGEN3_WORLD_VERSION) # CMake module
set(EIGEN_WORLD_VERSION ${EIGEN3_WORLD_VERSION})
@kierankyllo
Copy link

Just wanted to note that I was able to build opencv 4.7.0 on device without the edits to OpenCVFindLibsPerf.cmake. Thanks for the help!

@pjalusic
Copy link
Author

pjalusic commented Apr 8, 2023

Just wanted to note that I was able to build opencv 4.7.0 on device without the edits to OpenCVFindLibsPerf.cmake. Thanks for the help!

That is very nice and good to know! I am glad the process is a bit easier now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment