当前位置:网站首页>[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
- 2021-02-18
- QT connection to Shentong database
- Detectron2 source code reading 2--- using the configurable decorator to build the dataloader
- QT downloading files through URL
- Torchvision loads the weight of RESNET except the full connection layer
- [kotlin collaboration process] complete the advanced kotlin collaboration process
- Unsupportedclassversionerror is reported when starting jar package. How to repair it
- Mmcv expanding CUDA operator beginner level chapter
- Icon resources
猜你喜欢
Flink Exception -- No ExecutorFactory found to execute the application
Resnet50+fpn for mmdet line by line code interpretation
Opencv learning notes-day5 (arithmetic operation of image pixels, add() addition function, subtract() subtraction function, divide() division function, multiply() multiplication function
Rew acoustic test (III): generate test signal
Deploy the cow like customer network project on the ECS
Tidb 6.0: making Tso more efficient tidb Book rush
Self made GIF dynamic graph -gifcam
Advanced technology management -- how managers design and build echelons
Gilbert Strang's course notes on linear algebra - Lesson 3
我们如何拿到自己满意的薪资呢?这些套路还是需要掌握的
随机推荐
Axure make menu bar effect
codeforces每日5题(均1700)-第三天
Introduction to MySQL basics day4 power node [Lao Du] class notes
[nvme2.0b 14-7] set features (Part 1)
电流探头电路分析
云服务器上部署仿牛客网项目
[data analysis and display]
自制GIF动态图-gifcam
Tidb v6.0.0 (DMR): initial test of cache table - tidb Book rush
Opencv learning notes-day5 (arithmetic operation of image pixels, add() addition function, subtract() subtraction function, divide() division function, multiply() multiplication function
Pytorch BERT
Unity 基础光照模型
维基媒体基金会公布新商业产品“维基媒体企业”首批客户
Opencv learning notes -day1 (image reading display imread, imshow, namedwindow)
[nvme2.0b 14-8] set features (Part 2)
14岁懂社会-《关于“工作的幸福”这件事儿》读书笔记
Alcohol tester scheme: what principle does the alcohol tester measure alcohol solubility based on?
【NVMe2.0b 14-1】Abort、Asynchronous Event Request、Capacity Management command
Opencv learning notes -day2 (implemented by the color space conversion function cvtcolar(), and imwrite image saving function imwrite())
C# ListBox如何获取选中的内容(搜了很多无效的文章)