The JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects.
This package is known to build and work properly using an LFS-11.0 platform.
Download (HTTP): https://s3.amazonaws.com/json-c_releases/releases/json-c-0.15.tar.gz
Download MD5 sum: 55f395745ee1cb3a4a39b41636087501
Download size: 353 KB
Estimated disk space required: 336 KB
Estimated build time: less than 0.1 SBU
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/json-c
Install JSON-C by running the following commands:
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_STATIC_LIBS=OFF \ .. && make
To test the results, issue: make test.
Now, as the root
user:
make install
-DCMAKE_BUILD_TYPE=Release
:
This switch is used to apply a higher level of compiler
optimizations.
Last updated on