[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 " ">
|
---|
[23d3543c] | 9 | <!ENTITY json-c-md5sum "aa02367d2f7a830bf1e3376f77881e98">
|
---|
| 10 | <!ENTITY json-c-size "548 KB">
|
---|
| 11 | <!ENTITY json-c-buildsize "5.0 MB">
|
---|
[250cf69] | 12 | <!ENTITY json-c-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="json-c" xreflabel="JSON-C-&json-c-version;">
|
---|
| 16 | <?dbhtml filename="json-c.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 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 |
|
---|
[2dcc08c0] | 39 | &lfs74_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 |
|
---|
| 75 | <para condition="html" role="usernotes">
|
---|
| 76 | User Notes: <ulink url="&blfs-wiki;/json-c"/>
|
---|
| 77 | </para>
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2 role="installation">
|
---|
| 81 | <title>Installation of JSON-C</title>
|
---|
| 82 |
|
---|
[26f5f6ac] | 83 | <note>
|
---|
| 84 | <para>
|
---|
| 85 | This package does not support parallel build.
|
---|
| 86 | </para>
|
---|
| 87 | </note>
|
---|
| 88 |
|
---|
[250cf69] | 89 | <para>
|
---|
| 90 | Install <application>JSON-C</application> by running the following
|
---|
| 91 | commands:
|
---|
| 92 | </para>
|
---|
| 93 |
|
---|
[23d3543c] | 94 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[250cf69] | 95 | make</userinput></screen>
|
---|
| 96 |
|
---|
| 97 | <para>
|
---|
| 98 | To test the results, issue: <command>make check</command>.
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
| 101 | <para>
|
---|
| 102 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
| 105 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="commands">
|
---|
| 109 | <title>Command Explanations</title>
|
---|
| 110 |
|
---|
[7ded7e3] | 111 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 112 | href="../../xincludes/static-libraries.xml"/>
|
---|
[250cf69] | 113 |
|
---|
| 114 | </sect2>
|
---|
| 115 |
|
---|
| 116 | <sect2 role="content">
|
---|
| 117 | <title>Contents</title>
|
---|
| 118 |
|
---|
| 119 | <segmentedlist>
|
---|
[c3c56b2] | 120 | <segtitle>Installed Programs</segtitle>
|
---|
[23d3543c] | 121 | <segtitle>Installed Libraries</segtitle>
|
---|
| 122 | <segtitle>Installed Directories</segtitle>
|
---|
[250cf69] | 123 |
|
---|
| 124 | <seglistitem>
|
---|
[c3c56b2] | 125 | <seg>
|
---|
| 126 | None
|
---|
| 127 | </seg>
|
---|
[250cf69] | 128 | <seg>
|
---|
[23d3543c] | 129 | libjson-c.so and libjson.so
|
---|
[250cf69] | 130 | </seg>
|
---|
| 131 | <seg>
|
---|
[23d3543c] | 132 | /usr/include/json and
|
---|
| 133 | /usr/include/json-c
|
---|
[250cf69] | 134 | </seg>
|
---|
| 135 | </seglistitem>
|
---|
| 136 | </segmentedlist>
|
---|
| 137 |
|
---|
| 138 | <variablelist>
|
---|
| 139 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 140 | <?dbfo list-presentation="list"?>
|
---|
| 141 | <?dbhtml list-presentation="table"?>
|
---|
| 142 |
|
---|
| 143 | <varlistentry id="libjson">
|
---|
[7ded7e3] | 144 | <term><filename class="libraryfile">libjson.so</filename></term>
|
---|
[250cf69] | 145 | <listitem>
|
---|
| 146 | <para>
|
---|
[23d3543c] | 147 | contains the <application>JSON-C</application> API functions.
|
---|
[250cf69] | 148 | </para>
|
---|
| 149 | <indexterm zone="json-c libjson">
|
---|
[7ded7e3] | 150 | <primary sortas="c-libjson">libjson.so</primary>
|
---|
[250cf69] | 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 |
|
---|
[23d3543c] | 155 | <varlistentry id="libjson-c">
|
---|
| 156 | <term><filename class="libraryfile">libjson-c.so</filename></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>
|
---|
| 159 | contains the <application>JSON-C</application> API functions.
|
---|
| 160 | </para>
|
---|
| 161 | <indexterm zone="json-c libjson-c">
|
---|
| 162 | <primary sortas="c-libjson-c">libjson-c.so</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
[250cf69] | 167 | </variablelist>
|
---|
| 168 |
|
---|
| 169 | </sect2>
|
---|
| 170 |
|
---|
| 171 | </sect1>
|
---|