windows x64 build google protobuf

简介:

源码包版本:

protobuf-2.5.0rc1

源码包中没见可以通过命令行来进行编译的命令,那只有通过vs了。

用vs2008(通过菜单而不是直接双击protobuf.sln文件)打开vsproject\protobuf.sln,我双击时不管用。新建x64配置。

通过设置protobuf.sln中各个工程的代码生成方式,比如/MD,/MT,/MTd和/MDd,生成相应的编译版本库。

2.5.0rc1不会完全编译通过,出问题的是tests和lite-test工程,这时需要在vsproject下新建一个Release文件夹,并把x64\Release下的protoc.exe拷贝到vsproject下的Release目录。

x64\Release是编译Release x64版本时生成文件的默认位置。

然后重新编译,就生成相应的库及.exe了。

双击extract_includes.bat生成头文件。










本文转自 hakuyo 51CTO博客,原文链接:http://blog.51cto.com/hakuyo/1105196,如需转载请自行联系原作者

目录
相关文章
|
安全 虚拟化 Windows
Windows x64内核下注入DLL姿势之一
讲述了Windows x64内核下注入DLL的思路与流程
|
安全 物联网 API
Windows 11 25H2 | 24H2 | 23H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 10 月更新)
Windows 11 25H2 | 24H2 | 23H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 10 月更新)
41634 1
Windows 11 25H2 | 24H2 | 23H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 10 月更新)
|
虚拟化 Windows
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 3 月更新)
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 3 月更新)
934 3
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 3 月更新)
|
安全 物联网 API
Windows 11 25H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月发布)
Windows 11 25H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月发布)
10070 15
Windows 11 25H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月发布)
|
安全 物联网 API
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月更新)
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月更新)
3658 1
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月更新)
|
Java 测试技术 网络安全
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
726 0
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
|
自然语言处理 监控 安全
Magnet Axiom 9.0 Windows x64 Multilingual - 数字取证与分析
Magnet Axiom 9.0 Windows x64 Multilingual - 数字取证与分析
536 0
Magnet Axiom 9.0 Windows x64 Multilingual - 数字取证与分析
|
人工智能 安全 网络安全
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
800 4
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
|
监控 Windows
Veeam Backup & Replication 12.3.2 Windows x64 - 备份和恢复
Veeam Backup & Replication 12.3.2 Windows x64 - 备份和恢复
683 1
|
存储 安全 Apache
2023-10 适用于基于 x64 的系统的 Windows Server 2012 R2 月度安全质量汇总(KB5031419)
2023-10 适用于基于 x64 的系统的 Windows Server 2012 R2 月度安全质量汇总(KB5031419)
2003 2

热门文章

最新文章