美文网首页
Vcpkg install protobuf出错

Vcpkg install protobuf出错

作者: DOGWiT | 来源:发表于2019-05-29 10:11 被阅读0次

    我其实是想在windows上编译下最新的google protobuf,官方提供了vcpkg的方法来编译,一直报错,最后发现是这个问题:
    \color{red}{需要把Visual Studio语言设置为英语!!!}
    如下图:

    TIM图片20190716215655.png

    C++ Installation - Windows

    If you only need the protoc binary, you can download it from the release page:

    https://github.com/protocolbuffers/protobuf/releases/latest
    
    

    In the downloads section, download the zip file protoc-$VERSION-win32.zip. It contains the protoc binary as well as public proto files of protobuf library.

    Protobuf and its dependencies can be installed directly by using vcpkg:

    >vcpkg install protobuf protobuf:x64-windows
    
    

    If zlib support is desired, you'll also need to install the zlib feature:

    >vcpkg install protobuf[zlib] protobuf[zlib]:x64-windows
    
    

    See https://github.com/Microsoft/vcpkg for more information.

    To build from source using Microsoft Visual C++, see cmake/README.md.

    To build from source using Cygwin or MinGW, follow the Unix installation instructions, above.

    相关文章

      网友评论

          本文标题:Vcpkg install protobuf出错

          本文链接:https://www.haomeiwen.com/subject/wavrnqtx.html