【发布时间】:2019-11-29 17:51:44
【问题描述】:
我正在 Ubuntu 18.04 LTS 中安装 OpenCV for Python,来自官方 OpenCV 版本https://docs.opencv.org/4.1.0/d2/de6/tutorial_py_setup_in_ubuntu.html
在创建构建目录并输入 cmake ../ 之后,我输入命令使其生成以下错误 - 以前我在 Windows 上使用过 OpenCV。我是 Ubuntu 的新手。请帮忙。
In file included from /home/avi/opencv/modules/core/test/test_precomp.hpp:12:0,
from /home/avi/opencv/build/modules/core/opencv_test_core_pch_dephelp.cxx:1:
/home/avi/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:1287: 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
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
【问题讨论】:
标签: python python-3.x opencv ubuntu