在安装opencv_contrib时(在make -j5
步骤期间),我的笔记本电脑进入睡眠状态并给出了安装错误,但失败并出现致命错误。
重试make -j5
再次给出了相同的错误。尝试完全使用make uninstall
完全卸载opencv也会完全失败,并出现致命错误。
我如何从这里重新安装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
最佳答案
您应该尝试make clean
并尝试再次卸载。另外,您应该从先前的步骤重新开始进行opencv安装