树莓派3b+安装opencv报错/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1

错误:make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:56: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:21149: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
make: *** [Makefile:138: all] Error 2

找到cv2.cpp那个文件树莓派3b+安装opencv报错/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1_第1张图片texteditor打开,翻到885行

树莓派3b+安装opencv报错/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1_第2张图片
添加
(char *)
保存,重新sudo make
等重新到着的时候会等好长时间

完成后检验

你可能感兴趣的:(树莓派,python,opencv,linux)