Ask Your Question

Kshitij Sharma's profile - activity

2019-06-03 09:45:30 -0600 marked best answer OpencV compilation fails with include <Eigen/Core> error

Hi All, I am building OpenCV3.4 on Jetson Nano

$ uname -a
Linux paralaxiom-jetson 4.9.140-tegra #1 SMP PREEMPT Wed Mar 13 00:32:22 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux

I have followed the steps as indicated here > https://raw.githubusercontent.com/spm... with some very minor changes in python only. I have also installed libeigen3-dev and the files are all in right location, as indicated below:

$ pkg-config --cflags opencv eigen3
-I/usr/local/include/opencv -I/usr/local/include -I/usr/include/eigen3

At the time of compilation, there is an error and the compilation terminates.

In file included from /home/p/kshitij/opencv/modules/core/test/test_precomp.hpp:12:0,
                 from /home/p/kshitij/opencv/build/modules/core/opencv_test_core_pch_dephelp.cxx:1:
/home/p/kshitij/opencv/modules/core/include/opencv2/core/private.hpp:66:12: fatal error: Eigen/Core: No such file or directory
 #  include <Eigen/Core>
            ^~~~~~~~~~~~
compilation terminated.
modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/build.make:62: recipe for target 'modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/opencv_test_core_pch_dephelp.cxx.o' failed
make[2]: *** [modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/opencv_test_core_pch_dephelp.cxx.o] Error 1
CMakeFiles/Makefile2:2627: recipe for target 'modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/all] Error 2

Requesting help from the members of the forum.

Thanks, kshitij

2019-06-03 09:45:29 -0600 received badge  Self-Learner (source)
2019-06-03 08:53:56 -0600 commented question OpencV compilation fails with include <Eigen/Core> error

Your suggestion works!

2019-06-03 08:53:17 -0600 answered a question OpencV compilation fails with include <Eigen/Core> error

Hi, LBerger's comment provides the solution. I moved the opencv to 3.4.6 and it started working. The problem seems to e

2019-05-29 20:38:09 -0600 commented question OpencV compilation fails with include <Eigen/Core> error

Version 3.4.

2019-05-29 19:57:21 -0600 received badge  Organizer (source)
2019-05-29 08:46:30 -0600 asked a question OpencV compilation fails with include <Eigen/Core> error

OpencV compilation fails with include <eigen core=""> error Hi All, I am building OpenCV3.4 on Jetson Nano $ unam