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