当前位置:网站首页>[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
边栏推荐
- Rew acoustic test (V): equipment required for test
- C# ListBox如何获取选中的内容(搜了很多无效的文章)
- VIM from dislike to dependence (21) -- cross file search
- 电流探头电路分析
- Introduction to the runner of mmcv
- C # listbox how to get the selected content (search many invalid articles)
- [untitled]
- 电流探头的干扰源电流谱测试
- [untitled]
- How can we get a satisfactory salary? These routines still need to be mastered
猜你喜欢

Gilbert Strang's course notes on linear algebra - Lesson 1

Rew acoustic test (III): generate test signal

Interpretation of orientedrcnn papers

Flink Exception -- No ExecutorFactory found to execute the application

Bind threads to run on a specific CPU logical kernel

How can we get a satisfactory salary? These routines still need to be mastered

el-input 限制只能输数字

Deploy the cow like customer network project on the ECS

我们如何拿到自己满意的薪资呢?这些套路还是需要掌握的

Mmdet line by line deltaxywhbboxcoder
随机推荐
Rew acoustic test (VI): signal and measurement
C# ListBox如何获取选中的内容(搜了很多无效的文章)
Does the oscilloscope probe affect the measurement of capacitive load?
[paid promotion] collection of frequently asked questions, FAQ of recommended list
Influencing factors of echo cancellation for smart speakers
Raspberry pie 4B no screen installation system and networking using VNC wireless projection function
Summary of common pytoch APIs
挖财开户安全吗?怎么有人说不靠谱。
codeforces每日5题(均1700)-第三天
layer.open 当传值为数组或值太长时处理方法
【付费推广】常见问题合集,推荐榜单FAQ
2021-02-27
Flink 数据偶尔数据积压导致checkpoint失败
Vite project require syntax compatibility problem solving require is not defined
Detailed explanation of pytoch's scatter function
Build a docker image of Henkel database from 0
Unity basic lighting model
Opencv learning notes-day5 (arithmetic operation of image pixels, add() addition function, subtract() subtraction function, divide() division function, multiply() multiplication function
C#访问MongoDB并执行CRUD操作
Unity simple shader