Could NOT find Protobuf (missing: Protobuf_PROTOC_EXECUTABLE)

简介: Could NOT find Protobuf (missing: Protobuf_PROTOC_EXECUTABLE)

使用CMake工具编译开源项目,其中用到了protobuf这个依赖库,cmake项目配置时,出现如题所示的问题,怎么办?


解决办法:


cmake主界面点击按钮【Add Entry】,添加【Protobuf_PROTOC_EXECUTABLE】这个变量,


指向D:\vcpkg\packages\protobuf_x86-windows-static\tools\protobuf\protoc.exe所在的路径


image.png


大功告成,Thanks♪(・ω・)ノ


相关文章
|
编译器 Go 开发工具
常见问题之Golang——cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%错误
本文主要是对我日常在使用golang时遇到的一些问题与解决方式进行的汇总,在此提供给大家便于排查一些遇到的问题,其中有更好的解决方案可在评论区留言。
1199 0
常见问题之Golang——cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%错误
|
5月前
|
Java
cxf 动态调用 WebService No compiler detected, make sure you are running on top of a JDK instead of a JRE
cxf 动态调用 WebService No compiler detected, make sure you are running on top of a JDK instead of a JRE
84 0
|
8月前
|
Go C语言
安装go-sqlite3包时报exec: "gcc": executable file not found in %PATH%解决办法
安装go-sqlite3包时报exec: "gcc": executable file not found in %PATH%解决办法
291 0
|
8月前
|
C++ Windows
CMake中的find_package(xxx REQUIRED)在windows平台怎么解
CMake中的find_package(xxx REQUIRED)在windows平台怎么解
376 0
|
机器人 Linux 编译器
替代notepad++,notepad--介绍及插件cmake编译
替代notepad++,notepad--介绍及插件cmake编译
|
程序员 Go Windows
【go 语言】解决 grpc:--proto_path passed empty directory name. (Use "." for current directory.)
【go 语言】解决 grpc:--proto_path passed empty directory name. (Use "." for current directory.)
234 0
codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案
codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案
749 0
codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案
|
开发工具 git
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
131 0
编译libxcb时报错:No package 'xcb-proto' found
编译libxcb时报错:No package 'xcb-proto' found
197 0
编译OpenJDK8:configure: Could not compile and link with freetype. This might be a 32/64-bit mismatch.
编译OpenJDK8:configure: Could not compile and link with freetype. This might be a 32/64-bit mismatch.
105 0