0

在安装 opencv_contrib (在make -j5步骤期间)时,我的笔记本电脑进入睡眠状态并在安装时出错,失败并出现致命错误。重试make -j5又出现同样的错误。尝试完全卸载 opencvmake uninstall也完全失败并出现致命错误。

如何从这里重新安装 OpenCV?

运行时出错make uninstall

-- Uninstalling "/usr/local/include/opencv2/cvconfig.h"
CMake Error at cmake_uninstall.cmake:20 (MESSAGE):
  Problem when removing "/usr/local/include/opencv2/cvconfig.h"


CMakeFiles/uninstall.dir/build.make:57: recipe for target 
'CMakeFiles/uninstall' failed
make[3]: *** [CMakeFiles/uninstall] Error 1
CMakeFiles/Makefile2:296: recipe for target 
'CMakeFiles/uninstall.dir/all' failed
make[2]: *** [CMakeFiles/uninstall.dir/all] Error 2
CMakeFiles/Makefile2:303: recipe for target             
'CMakeFiles/uninstall.dir/rule' failed
make[1]: *** [CMakeFiles/uninstall.dir/rule] Error 2
Makefile:234: recipe for target 'uninstall' failed
make: *** [uninstall] Error 2
4

2 回答 2

2

您不能直接从 usr/local/...etc 中删除文件,因此您尝试给sudo make uninstall它将工作正常!

于 2017-11-13T15:38:51.107 回答
2

您应该尝试make clean并再次尝试卸载。此外,您应该从前面的步骤重新启动 opencv 安装

于 2017-10-23T15:21:41.400 回答