VSCode配置opencv编译错误:In file included from D:\TOOLS\OpenCV\opencv-4.5.5\opencv\sources\3rdparty\protob

VSCode配置opencv编译错误:In file included from D:\TOOLS\OpenCV\opencv-4.5.5\opencv\sources\3rdparty\protob_第1张图片
错误原因:protobuf安装失败

解决方法:在cmake中search protobuf,如下图,把BUILD_PROTOBUF和WITH_PROTOBUF取消勾选,再重新configure,generate,再进行编译即可。

你可能感兴趣的:(opencv,计算机视觉)