source: general/genlib/json-c.xml@ 62e3c6d

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 62e3c6d was 0ddf4e7, checked in by Bruce Dubbs <bdubbs@…>, 21 months ago

Tags

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