将OpenCV 3.0.0编译为raspberry pi时出错

时间:2016-05-26 11:01:28

标签: python opencv recipe

CMakeFiles/opencv_imgproc.dir/src/floodfill.cpp.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
modules/imgproc/CMakeFiles/opencv_imgproc.dir/build.make:1353: recipe for target 'lib/libopencv_imgproc.so.3.0.0' failed
make[2]: *** [lib/libopencv_imgproc.so.3.0.0] Error 1
CMakeFiles/Makefile2:2378: recipe for target 'modules/imgproc/CMakeFiles/opencv_imgproc.dir/all' failed
make[1]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

大家好,我正在尝试编译openCV3.0.0,但我一直在为目标配方全部失败,错误2.已经尝试过在网上找到的各种解决方案但没有用,我似乎无法理解我得到的错误。

有谁知道如何解决这个错误?提前谢谢!

2 个答案:

答案 0 :(得分:0)

或者您可以小心地重新安装Raspbian并遵循此guide

答案 1 :(得分:-2)

我不知道如何解决错误,但我有一个Python 3.4的编译文件,download it并将其放在目录/use/local/lib/python3.4/dist-中包,在终端导入它,它应该工作。