当前位置:网站首页>[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
边栏推荐
- Vite project require syntax compatibility problem solving require is not defined
- Flink SQL custom connector
- Unity basic lighting model
- How to format an UTC date to use the Z (Zulu) zone designator in php?
- Mmdet line by line code interpretation of positive and negative sample sampler
- 启动jar包报错UnsupportedClassVersionError,如何修复
- Unity 基础光照模型
- Unity simple shader
- About Lombok's @data annotation
- TiDB v6.0.0 (DMR) :缓存表初试丨TiDB Book Rush
猜你喜欢

A troubleshooting of CPU bottom falling

技术管理进阶——管理者如何进行梯队设计及建设

基于Svelte3.x桌面端UI组件库Svelte UI

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

Occasionally, Flink data is overstocked, resulting in checkpoint failure

Summary of common pytoch APIs

Pytorch BERT

Axure制作菜单栏效果
![[kotlin collaboration process] complete the advanced kotlin collaboration process](/img/43/9c4b337caf406537e317dea2ed5f17.png)
[kotlin collaboration process] complete the advanced kotlin collaboration process

我们如何拿到自己满意的薪资呢?这些套路还是需要掌握的
随机推荐
挖财开户安全吗?怎么有人说不靠谱。
Opencv learning notes -day3 (mat object and creation related operations mat:: clone(), mat:: copyto(), mat:: zeros(), mat:: ones(), scalar()...)
Torchvision loads the weight of RESNET except the full connection layer
[untitled]
JVM tuning related commands and explanations
codeforces每日5题(均1700)-第三天
Tidb 6.0: making Tso more efficient tidb Book rush
Detailed explanation of pipline of mmdetection
Does the oscilloscope probe affect the measurement of capacitive load?
【NVMe2.0b 14-3】Doorbell Buffer Config command、Device Self-test command
Implementing custom drawer component in quick application
Opencv learning notes-day5 (arithmetic operation of image pixels, add() addition function, subtract() subtraction function, divide() division function, multiply() multiplication function
How can we get a satisfactory salary? These routines still need to be mastered
Introduction to MySQL basics day3 power node [Lao Du] class notes
将线程绑定在某个具体的CPU逻辑内核上运行
Axure make menu bar effect
Unity简单shader
Alcohol tester scheme: what principle does the alcohol tester measure alcohol solubility based on?
Self made GIF dynamic graph -gifcam
Gilbert Strang's course notes on linear algebra - Lesson 3