打开cv安装不能正常工作

时间:2022-05-02 12:43:01

when i am doing make in /opencv/build directory it is working upto some extent after that it is showing this kind of error what should i do

当我在/ opencv / build目录中进行make时它会在某种程度上起作用,之后它会显示这种错误我应该怎么做

Linking CXX executable ../../bin/opencv_test_core CMakeFiles/opencv_test_core.dir/test/ocl/test_arithm.cpp.o: file not recognized: File truncated collect2: error: ld returned 1 exit status modules/core /CMakeFiles/opencv_test_core.dir/build.make:824: recipe for target 'bin/opencv_test_core' failed make[2]: * [bin/opencv_test_core] Error 1 CMakeFiles/Makefile2:1421: recipe for target 'modules/core/CMakeFiles/opencv_test_core.dir/all' failed make[1]: * [modules/core/CMakeFiles/opencv_test_core.dir/all] Error 2 Makefile:147: recipe for target 'all' failed make: *** [all] Error 2

链接CXX可执行文件../../bin/opencv_test_core CMakeFiles / opencv_test_core.dir / test / ocl / test_arithm.cpp.o:文件无法识别:文件截断了collect2:错误:ld返回1退出状态modules / core / CMakeFiles / opencv_test_core .dir / build.make:824:目标'bin / opencv_test_core'的配方失败make [2]:* [bin / opencv_test_core]错误1 CMakeFiles / Makefile2:1421:目标'modules / core / CMakeFiles / opencv_test_core.dir的配方/ all'dailed make [1]:* [modules / core / CMakeFiles / opencv_test_core.dir / all]错误2 Makefile:147:目标'all'失败的食谱make:*** [all]错误2

1 个解决方案

#1


0  

Your problem is most likely here:

你的问题最有可能在这里:

CMakeFiles/opencv_test_core.dir/test/ocl/test_arithm.cpp.o: file not recognized: File truncated

CMakeFiles / opencv_test_core.dir / test / ocl / test_arithm.cpp.o:文件无法识别:文件被截断

Delete the object (.o) file and rerun. The make call was probably interrupted before which caused the object file to be truncated.

删除对象(.o)文件并重新运行。 make调用可能在中断之前导致目标文件被截断。

#1


0  

Your problem is most likely here:

你的问题最有可能在这里:

CMakeFiles/opencv_test_core.dir/test/ocl/test_arithm.cpp.o: file not recognized: File truncated

CMakeFiles / opencv_test_core.dir / test / ocl / test_arithm.cpp.o:文件无法识别:文件被截断

Delete the object (.o) file and rerun. The make call was probably interrupted before which caused the object file to be truncated.

删除对象(.o)文件并重新运行。 make调用可能在中断之前导致目标文件被截断。