source: general/genlib/json-c.xml@ 1fac6dd7

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 1fac6dd7 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 4.5 KB
RevLine 
[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 " ">
[92aa239]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)">
[250cf69]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">
[7ded7e3]22 <primary sortas="a-JSON-C">JSON-C</primary>
[250cf69]23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to JSON-C</title>
27
28 <para>
[0d7900a]29 The <application>JSON-C</application> implements a reference counting
30 object model that allows you to easily construct JSON objects in C,
[250cf69]31 output them as JSON formatted strings and parse JSON formatted strings
32 back into the C representation of JSON objects.
33 </para>
34
[0ddf4e7]35 &lfs112_checked;
[250cf69]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
[ba49f54]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-->
[250cf69]84 <para condition="html" role="usernotes">
85 User Notes: <ulink url="&blfs-wiki;/json-c"/>
86 </para>
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of JSON-C</title>
[5944fc1]91<!--
[26f5f6ac]92 <note>
93 <para>
94 This package does not support parallel build.
95 </para>
96 </note>
[5944fc1]97-->
[250cf69]98 <para>
99 Install <application>JSON-C</application> by running the following
100 commands:
101 </para>
102
[ba49f54]103<screen><userinput>mkdir build &amp;&amp;
104cd build &amp;&amp;
105
106cmake -DCMAKE_INSTALL_PREFIX=/usr \
107 -DCMAKE_BUILD_TYPE=Release \
[e49ee12]108 -DBUILD_STATIC_LIBS=OFF \
[ba49f54]109 .. &amp;&amp;
[5944fc1]110make</userinput></screen>
[250cf69]111
112 <para>
[ba49f54]113 To test the results, issue: <command>make test</command>.
[250cf69]114 </para>
115
116 <para>
117 Now, as the <systemitem class="username">root</systemitem> user:
118 </para>
119
120<screen role="root"><userinput>make install</userinput></screen>
121 </sect2>
122
123 <sect2 role="commands">
124 <title>Command Explanations</title>
125
[ba49f54]126 <para>
127 <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is
128 used to apply a higher level of compiler optimizations.
129 </para>
[250cf69]130
131 </sect2>
132
133 <sect2 role="content">
134 <title>Contents</title>
135
136 <segmentedlist>
[c3c56b2]137 <segtitle>Installed Programs</segtitle>
[23d3543c]138 <segtitle>Installed Libraries</segtitle>
139 <segtitle>Installed Directories</segtitle>
[250cf69]140
141 <seglistitem>
[c3c56b2]142 <seg>
143 None
144 </seg>
[250cf69]145 <seg>
[ba49f54]146 libjson-c.so
[250cf69]147 </seg>
148 <seg>
[23d3543c]149 /usr/include/json-c
[250cf69]150 </seg>
151 </seglistitem>
152 </segmentedlist>
153
154 <variablelist>
155 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
156 <?dbfo list-presentation="list"?>
157 <?dbhtml list-presentation="table"?>
158
[23d3543c]159 <varlistentry id="libjson-c">
160 <term><filename class="libraryfile">libjson-c.so</filename></term>
161 <listitem>
162 <para>
[4c24eb0a]163 contains the <application>JSON-C</application> API functions
[23d3543c]164 </para>
165 <indexterm zone="json-c libjson-c">
166 <primary sortas="c-libjson-c">libjson-c.so</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
[250cf69]171 </variablelist>
172
173 </sect2>
174
175</sect1>
Note: See TracBrowser for help on using the repository browser.