source: general/genlib/json-c.xml@ cb594b6c

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since cb594b6c was cb594b6c, checked in by Xi Ruoyao <xry111@…>, 12 months ago

general: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

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