当前位置:网站首页>[protobuf] protobuf generates cc/h file through proto file
[protobuf] protobuf generates cc/h file through proto file
2022-06-30 08:49:00 【unonoi】
Reference resources :protobuf
ProtoBuf adopt proto File generation cc/h The steps of the file are as follows ( Linux Next ):
- Through the first protobuf Source file compiled protoc Executable file
1. git clone https://github.com/protocolbuffers/protobuf.git
2. cd protobuf/
3. git checkout -b v2.6.1 origin/2.6.1-artifacts
4. wget https://codeload.github.com/google/googletest/tar.gz/release-1.5.0
5. tar -zxvf release-1.5.0
6. mv googletest-release-1.5.0/ gtest
7. ./autogen.sh
8. ./configure
9. make -j8
10. sudo make install
- And then through p Generate cc/h file :
protoc --proto_path=. --cpp_out=. ./Test.proto
If make install
Failure , Full path protoc Generate cc/h file :
cd protobuf
./src/protoc --proto_path=. --cpp_out=. ./Test.proto
边栏推荐
- Dart tips
- Detectron2 source code reading 4-- registrar construction model
- 【NVMe2.0b 14-1】Abort、Asynchronous Event Request、Capacity Management command
- Resnet50+fpn for mmdet line by line code interpretation
- 【NVMe2.0b 14-4】Directive Send/Receive command
- C#访问MongoDB并执行CRUD操作
- icon资源
- Bind threads to run on a specific CPU logical kernel
- Vite project require syntax compatibility problem solving require is not defined
- Understanding society at the age of 14 - reading notes on "happiness at work"
猜你喜欢
【NVMe2.0b 14-2】Create/Delete Queue
Advanced technology management -- how managers design and build echelons
Based on svelte3 X desktop UI component library svelte UI
C accesses mongodb and performs CRUD operations
Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
Redis design and Implementation (I) | data structure & object
Build a docker image of Henkel database from 0
Rew acoustic test (III): generate test signal
Axure make menu bar effect
Rew acoustic test (I): microphone calibration
随机推荐
Flink sql -- No factory implements ‘org. apache. flink. table. delegation. ExecutorFactory‘.
Detectron2 source code reading 3-- encapsulating dataset with mapper
Redis design and Implementation (VI) | cluster (sharding)
Summary of common pytoch APIs
Resnet50+fpn for mmdet line by line code interpretation
Rew acoustic test (VI): signal and measurement
Viteproject require Syntax Compatibility Problem Solving require is not defined
小心transmittable-thread-local的这个坑
QT connection to Shentong database
Qt通过Url下载文件
CUDA realizes matrix multiplication
Alcohol tester scheme: what principle does the alcohol tester measure alcohol solubility based on?
Gilbert Strang's course notes on linear algebra - Lesson 4
Unity basic lighting model
C#访问SQL Server数据库两种方式的比较(SqlDataReader vs SqlDataAdapter)
Unity简单shader
[untitled]
Introduction to the runner of mmcv
电流探头的干扰源电流谱测试
PHP API to obtain QR code and combine to generate pictures