当前位置:网站首页>Installing and using protobuf-c
Installing and using protobuf-c
2022-06-22 14:02:00 【wwwlyj123321】
protobuf Support some mainstream languages , There is no support C. So the birth of a third party protobuf-c.
https://github.com/protocolbuffers/protobuf
https://github.com/protobuf-c/protobuf-cIn the installation protobuf-c It needs to be installed before protobuf
1、 install protobuf
install protobuf Need to rely on some tools , Dependency needs to be installed first :
sudo apt-get install autoconf automake libtool curl make g++ unzipAfter installing the dependency, enter the following commands to download 、 compile 、 install ( If the download speed is slow, you can import the code cloud before downloading )
git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf
./autogen.sh
./configure
make
sudo make install
sudo ldconfig among , perform ./autogen.sh Command to generate configure The configuration script , perform configure Generative Makefile file , perform make Compile , perform sudo make install Command to install , perform sudo ldconfig Command to make the dynamic link library shared by the system .
2、 install protobuf-c
alike ,protobuf-c Also rely on pkg-config , Enter the following command to install :
sudo apt-get install pkg-configThen enter the following command to download 、 compile 、 install protobuf-c:
git clone https://github.com/protobuf-c/protobuf-c.git
cd protobuf-c
./autogen.sh
./configure
make
sudo make install
If installed as above ,protobuf And protobuf-c Default installed in /usr/local Under the path :
View version :


Generated .h The header file contains the following verifications :
ref:
边栏推荐
- 线下实体店结合VR全景,让虚拟购物更加真实
- 能让Jellyfin直接挂载阿里云盘的aliyundrive-fuse
- How many days are there between the two timestamps of PHP
- 30岁之前一定要明白的道理
- What is the difference between Z-score and deltf/f?
- Detailed explanation of rules and ideas for advance sale of deposit
- Redis+Caffeine两级缓存的实现
- Oracle's skills in dealing with inserting duplicate records
- Leetcode subsequence / substring problem
- 防火墙基础之策略部署
猜你喜欢

Should programmers choose software talent outsourcing companies?

Rigid demand of robot direction → personal thinking ←

防火墙基础之策略部署
![[Nacos cloud native] the first step of reading the source code is to start Nacos locally](/img/f8/d9b848593cf7380a6c99ee0a8158f8.png)
[Nacos cloud native] the first step of reading the source code is to start Nacos locally

VR panoramic shooting breaks the deadlock of traditional propaganda that wild geese pass without leaving traces

如何给VR全景作品添加遮罩?作用是什么?

JSP based library management system, including source code, database script, video tutorial for project operation, and video tutorial for thesis writing

How to understand fold change? Multiple analysis?
Redis+Caffeine两级缓存的实现

安装和使用protobuf-c
随机推荐
数据库 就业咨询系统求各位帮下忙
Do you know the scope and process of software project acceptance testing?
What does Huawei's minutes on patents say? (including Huawei's top ten inventions)
VR panoramic shooting breaks the deadlock of traditional propaganda that wild geese pass without leaving traces
性能相关指标
Istio服务网格中的流量复制
Problème de sous - séquence / substrat leetcode
Customer member value analysis
哈希索引设计发展史
Docker installing PostgreSQL
测试组的任务职责和测试的基本概念
My suggestions on SAP ABAP transformation
Ppt data collection methods and analysis skills
散户开户哪个证券公司好?手机开户安全么?
Temporary recommendation on graphs via long- and short term preference fusion
SQL Server common functions
Kubernetes monitoring: grafana adds datasource and dashboard through automation
Are you familiar with redis cache of highly paid programmers & interview questions series 114? How are redis keys designed? Are you familiar with the memory obsolescence mechanism?
技术实践 | 场景导向的音视频通话体验优化
Eureka的InstanceInfoReplicator类(服务注册辅助类)