json-c首页: https://github.com/json-c/json-c/wiki
0. 依赖条件
本文采用centos系统,但也需要所以采用yum命令。
#编译器
gcc, clang, or another C compiler
#cmake
cmake>=2.8, >=3.16 recommended
#若要生成文档,还需要doxygen
To generate docs you'll also need:
doxygen>=1.8.13
If you are on a relatively modern system, you'll likely be able to install the prerequisites using your OS's packaging system.
#Install using yum (e.g. CentOs 7.6)
$ yum install -y git
$ yum install -y cmake
$ yum install -y doxygen

本文详细介绍了如何在CentOS系统上使用yum命令安装编译器、cmake和doxygen等必要软件,从GitHub下载json-c源码,并通过cmake进行编译和安装的全过程。
最低0.47元/天 解锁文章
2630

被折叠的 条评论
为什么被折叠?



