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.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
下载地址(HTTP):https://s3.amazonaws.com/json-c_releases/releases/json-c-0.19.tar.gz
MD5 校验和:5678f1373ba51e0041b574c0411c696b
大小:452 KB
预计所需磁盘空间:12 MB
预计构建时间:0.2 SBU(含测试)
Doxygen-1.17.0 and Graphviz-15.1.0 (for dot tool)
Install json-c by running the following commands:
mkdir build &&
cd build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_STATIC_LIBS=OFF \
.. &&
make
If you have installed Doxygen-1.17.0 and Graphviz-15.1.0, you can build the documentation by running the following command:
doxygen doc/Doxyfile
To test the results, issue: make test.
Now, as the root user:
make install
If you built the documentation, install it by running the following
commands as the root user:
install -d -vm755 /usr/share/doc/json-c-0.19 && install -v -m644 doc/html/* /usr/share/doc/json-c-0.19
-D
CMAKE_BUILD_TYPE=Release: This switch is used to apply
a higher level of compiler optimizations.