下载
git clone https://github.com/json-c/json-c.git
wget https://github.com/json-c/json-c/archive/refs/tags/json-c-0.18-20240915.tar.gz
解压
tar xf json-c-0.18-20240915.tar.gz
进入源码目录
cd json-c-json-c-0.18-20240915/
创建编译目录,并进入
mkdir build && cd build/
配置
CC=aarch64-rockchip1031-linux-gnu-gcc ../cmake-configure --prefix=/home/lingke/projects/rk3588s_install_path/json-c
编译
make
安装
make install