当前位置:网站首页>[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
边栏推荐
- c#获取当前的时间戳
- 【NVMe2.0b 14】NVMe Admin Command Set
- Mmcv expanding CUDA operator beginner level chapter
- 【NVMe2.0b 14-1】Abort、Asynchronous Event Request、Capacity Management command
- Detectron2 source code reading 2--- using the configurable decorator to build the dataloader
- [kotlin collaboration process] complete the advanced kotlin collaboration process
- File upload component on success event, add custom parameters
- Rew acoustic test (I): microphone calibration
- 【NVMe2.0b 14-2】Create/Delete Queue
- Deploy the cow like customer network project on the ECS
猜你喜欢

QT connection to Shentong database

维基媒体基金会公布新商业产品“维基媒体企业”首批客户

Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which

2021-05-06

El input limit can only input numbers
![[data analysis and display]](/img/86/19260ee664769c98588d8b0783ef28.jpg)
[data analysis and display]

电流探头电路分析

Axure make menu bar effect

Introduction to the runner of mmcv

Build a docker image of Henkel database from 0
随机推荐
Mmdet line by line deltaxywhbboxcoder
Tidb v6.0.0 (DMR): initial test of cache table - tidb Book rush
Redis design and Implementation (II) | database (deletion strategy & expiration elimination strategy)
[untitled]
Interference source current spectrum test of current probe
C#访问MongoDB并执行CRUD操作
【NVMe2.0b 14-1】Abort、Asynchronous Event Request、Capacity Management command
How to format an UTC date to use the Z (Zulu) zone designator in php?
Graffiti Wi Fi & ble SoC development slide strip
[untitled]
Axure make menu bar effect
Does the oscilloscope probe affect the measurement of capacitive load?
Occasionally, Flink data is overstocked, resulting in checkpoint failure
2021-02-27
How can we get a satisfactory salary? These routines still need to be mastered
【NVMe2.0b 14-4】Directive Send/Receive command
VIM from dislike to dependence (21) -- cross file search
2021-05-06
Detectron2 source code reading 2--- using the configurable decorator to build the dataloader
[kotlin collaboration process] complete the advanced kotlin collaboration process