glfs/general/genlib/json-c.xml
2022-04-14 14:56:58 -05:00

179 lines
4.6 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY json-c-download-http "https://s3.amazonaws.com/json-c_releases/releases/json-c-&json-c-version;.tar.gz">
<!ENTITY json-c-download-ftp " ">
<!ENTITY json-c-md5sum "8110782cb2a996da5517f1f27a4bed8e">
<!ENTITY json-c-size "344 KB">
<!ENTITY json-c-buildsize "7.7 MB">
<!ENTITY json-c-time "0.2 SBU (with tests)">
]>
<sect1 id="json-c" xreflabel="JSON-C-&json-c-version;">
<?dbhtml filename="json-c.html"?>
<sect1info>
<date>$Date$</date>
</sect1info>
<title>JSON-C-&json-c-version;</title>
<indexterm zone="json-c">
<primary sortas="a-JSON-C">JSON-C</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to JSON-C</title>
<para>
The <application>JSON-C</application> 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.
</para>
&lfs111_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&json-c-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&json-c-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &json-c-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &json-c-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &json-c-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &json-c-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">JSON-C Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="cmake"/>
</para>
<!--
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="Optional">
<xref linkend="doxygen"/> and
<xref linkend="graphviz"/> (for dot tool)
</para>
-->
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/json-c"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of JSON-C</title>
<!--
<note>
<para>
This package does not support parallel build.
</para>
</note>
-->
<para>
Install <application>JSON-C</application> by running the following
commands:
</para>
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_STATIC_LIBS=OFF \
.. &amp;&amp;
make</userinput></screen>
<para>
To test the results, issue: <command>make test</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is
used to apply a higher level of compiler optimizations.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
None
</seg>
<seg>
libjson-c.so
</seg>
<seg>
/usr/include/json-c
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libjson-c">
<term><filename class="libraryfile">libjson-c.so</filename></term>
<listitem>
<para>
contains the <application>JSON-C</application> API functions
</para>
<indexterm zone="json-c libjson-c">
<primary sortas="c-libjson-c">libjson-c.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>