1. 环境准备:
1. 环境准备:
a.VS2015
b.CMake-gui3.12.0
c.opencv3.4.2
下载链接:https://github.com/opencv/
d.protobuf3.4.0
下载链接:GitHub - protocolbuffers/protobuf: Protocol Buffers - Google's data interchange format
点击 Configure:选择VS14 2015 Win64
去除protobuf_BUILD_TESTS
和protobuf_MSVC_STATIC_RUNTIME
修改:CMAKE_INSTALL_PREFIX=./install
进行Configure和 Generate
然后打开Builds_D20211211中的protobuf.sln,编译install,(release、debug)