Ask Your Question
0

OpencV compilation fails with include <Eigen/Core> error [closed]

asked 2019-05-29 08:01:45 -0600

Kshitij Sharma gravatar image

updated 2019-05-29 19:57:21 -0600

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

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by LBerger
close date 2019-06-03 09:45:40.944722

Comments

read this issue

which opencv version do you use?

LBerger gravatar imageLBerger ( 2019-05-29 20:36:20 -0600 )edit

Version 3.4.

Kshitij Sharma gravatar imageKshitij Sharma ( 2019-05-29 20:38:09 -0600 )edit

can you update to 3.4.6

LBerger gravatar imageLBerger ( 2019-05-29 20:59:48 -0600 )edit

Your suggestion works!

Kshitij Sharma gravatar imageKshitij Sharma ( 2019-06-03 08:53:56 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-06-03 08:53:17 -0600

Kshitij Sharma gravatar image

Hi,

LBerger's comment provides the solution. I moved the opencv to 3.4.6 and it started working. The problem seems to exist in 3.4, but 3.4.6 works.

Thanks!!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-05-29 08:01:45 -0600

Seen: 898 times

Last updated: Jun 03 '19