python 错误:“make:* [Makefile:163:all]错误2”和“make:* [Makefile:163:全部]中断”

ha5z0ras  于 2023-06-20  发布在  Python
关注(0)|答案(1)|浏览(519)

当我在Raspberry Pi 3中安装opencv时,我总是看到一些错误:

[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_cvtyuv.cpp.o
[ 41%] Building CXX object 
modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_distancetransform.cpp.o
[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_main.cpp.o
^Cmake[2]: * [modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/build.make:375: 
modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_cvtyuv.cpp.o] Interrupt
make[2]: * [modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/build.make:388: 
modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_distancetransform.cpp.o] Interrupt
make[2]: * wait: No child processes.  Stop.
make[2]: * Waiting for unfinished jobs....
make[2]: * wait: No child processes.  Stop.
make[2]: * [modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/build.make:401: 
modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_integral.cpp.o] Interrupt
make[2]: * [modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/build.make:414: 
modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_main.cpp.o] Error 2
make[1]: * [CMakeFiles/Makefile2:3330: modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/all] 
Interrupt
make[1]: * [CMakeFiles/Makefile2:3248: modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/all] 
Interrupt
make: * [Makefile:163: all] Interrupt

并且:

[ 41%] Built target opencv_perf_photo
[ 41%] Built target opencv_test_photo
make: * [Makefile:163: all] Error 2

我该怎么做才能修复这个错误。Pls!!!

vkc1a9a2

vkc1a9a21#

通过此链接:https://learnopencv.com/install-opencv-4-on-raspberry-pi/
你可以完美地安装OpenCV,没有任何错误。但问题是安装起来要花很多时间。
我曾经用过pi3型号B+与32GB class10 SD卡为我,它花了超过12个小时的完整安装。

相关问题