[250cf69] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[23d3543c] | 7 | <!ENTITY json-c-download-http "https://s3.amazonaws.com/json-c_releases/releases/json-c-&json-c-version;.tar.gz">
|
---|
[250cf69] | 8 | <!ENTITY json-c-download-ftp " ">
|
---|
[bfa86f22] | 9 | <!ENTITY json-c-md5sum "55f395745ee1cb3a4a39b41636087501">
|
---|
| 10 | <!ENTITY json-c-size "353 KB">
|
---|
| 11 | <!ENTITY json-c-buildsize "336 KB">
|
---|
[ba49f54] | 12 | <!ENTITY json-c-time "less than 0.1 SBU">
|
---|
[9612312e] | 13 |
|
---|
[250cf69] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="json-c" xreflabel="JSON-C-&json-c-version;">
|
---|
| 17 | <?dbhtml filename="json-c.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>JSON-C-&json-c-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="json-c">
|
---|
[7ded7e3] | 26 | <primary sortas="a-JSON-C">JSON-C</primary>
|
---|
[250cf69] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to JSON-C</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
[0d7900a] | 33 | The <application>JSON-C</application> implements a reference counting
|
---|
| 34 | object model that allows you to easily construct JSON objects in C,
|
---|
[250cf69] | 35 | output them as JSON formatted strings and parse JSON formatted strings
|
---|
| 36 | back into the C representation of JSON objects.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
[179d426d] | 39 | &lfs110_checked;
|
---|
[250cf69] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&json-c-download-http;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&json-c-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download MD5 sum: &json-c-md5sum;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download size: &json-c-size;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated disk space required: &json-c-buildsize;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Estimated build time: &json-c-time;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[ba49f54] | 75 | <bridgehead renderas="sect3">JSON-C Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 78 | <para role="required">
|
---|
| 79 | <xref linkend="cmake"/>
|
---|
| 80 | </para>
|
---|
| 81 | <!--
|
---|
| 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 83 | <para role="Optional">
|
---|
| 84 | <xref linkend="doxygen"/> and
|
---|
| 85 | <xref linkend="graphviz"/> (for dot tool)
|
---|
| 86 | </para>
|
---|
| 87 | -->
|
---|
[250cf69] | 88 | <para condition="html" role="usernotes">
|
---|
| 89 | User Notes: <ulink url="&blfs-wiki;/json-c"/>
|
---|
| 90 | </para>
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="installation">
|
---|
| 94 | <title>Installation of JSON-C</title>
|
---|
[5944fc1] | 95 | <!--
|
---|
[26f5f6ac] | 96 | <note>
|
---|
| 97 | <para>
|
---|
| 98 | This package does not support parallel build.
|
---|
| 99 | </para>
|
---|
| 100 | </note>
|
---|
[5944fc1] | 101 | -->
|
---|
[250cf69] | 102 | <para>
|
---|
| 103 | Install <application>JSON-C</application> by running the following
|
---|
| 104 | commands:
|
---|
| 105 | </para>
|
---|
| 106 |
|
---|
[ba49f54] | 107 | <screen><userinput>mkdir build &&
|
---|
| 108 | cd build &&
|
---|
| 109 |
|
---|
| 110 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 111 | -DCMAKE_BUILD_TYPE=Release \
|
---|
[e49ee12] | 112 | -DBUILD_STATIC_LIBS=OFF \
|
---|
[ba49f54] | 113 | .. &&
|
---|
[5944fc1] | 114 | make</userinput></screen>
|
---|
[250cf69] | 115 |
|
---|
| 116 | <para>
|
---|
[ba49f54] | 117 | To test the results, issue: <command>make test</command>.
|
---|
[250cf69] | 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <para>
|
---|
| 121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
| 124 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
[ba49f54] | 130 | <para>
|
---|
| 131 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is
|
---|
| 132 | used to apply a higher level of compiler optimizations.
|
---|
| 133 | </para>
|
---|
[250cf69] | 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="content">
|
---|
| 138 | <title>Contents</title>
|
---|
| 139 |
|
---|
| 140 | <segmentedlist>
|
---|
[c3c56b2] | 141 | <segtitle>Installed Programs</segtitle>
|
---|
[23d3543c] | 142 | <segtitle>Installed Libraries</segtitle>
|
---|
| 143 | <segtitle>Installed Directories</segtitle>
|
---|
[250cf69] | 144 |
|
---|
| 145 | <seglistitem>
|
---|
[c3c56b2] | 146 | <seg>
|
---|
| 147 | None
|
---|
| 148 | </seg>
|
---|
[250cf69] | 149 | <seg>
|
---|
[ba49f54] | 150 | libjson-c.so
|
---|
[250cf69] | 151 | </seg>
|
---|
| 152 | <seg>
|
---|
[23d3543c] | 153 | /usr/include/json-c
|
---|
[250cf69] | 154 | </seg>
|
---|
| 155 | </seglistitem>
|
---|
| 156 | </segmentedlist>
|
---|
| 157 |
|
---|
| 158 | <variablelist>
|
---|
| 159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 160 | <?dbfo list-presentation="list"?>
|
---|
| 161 | <?dbhtml list-presentation="table"?>
|
---|
| 162 |
|
---|
[23d3543c] | 163 | <varlistentry id="libjson-c">
|
---|
| 164 | <term><filename class="libraryfile">libjson-c.so</filename></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>
|
---|
[4c24eb0a] | 167 | contains the <application>JSON-C</application> API functions
|
---|
[23d3543c] | 168 | </para>
|
---|
| 169 | <indexterm zone="json-c libjson-c">
|
---|
| 170 | <primary sortas="c-libjson-c">libjson-c.so</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
[250cf69] | 175 | </variablelist>
|
---|
| 176 |
|
---|
| 177 | </sect2>
|
---|
| 178 |
|
---|
| 179 | </sect1>
|
---|