在/home/lucas/OpenCV/opencv-3.2.0/modules/core/src/hal_internal.cpp:49:0中包含的文件中:
/home/lucas/OpenCV/build/opencv_lapack.h:2:45:致命错误:LAPACKE_H_PATH-NOTFOUND / lapacke.h:无此类文件或目录
编译终止。
modules / core / CMakeFiles / opencv_core.dir / build.make:906:目标“modules / core / CMakeFiles / opencv_core.dir / src / hal_internal.cpp.o”的配方失败
make [2]: * [modules / core / CMakeFiles / opencv_core.dir / src / hal_internal.cpp.o]错误1
CMakeFiles / Makefile2:1945:目标“模块/核心/CMakeFiles/opencv_core.dir/全部”的配方失败
make [1]:*
[modules / core / CMakeFiles / opencv_core.dir / all]错误2
Makefile:160:目标“全部”的配方失败
使:*** [全部]错误2

我相信这是因为我的python路径设置不正确...

最佳答案

  • 安装软件包liblapacke-dev
  • 在调用cmake
  • 时手动定义-DLAPACKE_H_PATH = / usr / include

    关于opencv - OpenCV安装,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48776408/

    10-10 08:17