source: general/genlib/json-c.xml@ 6bc7cd4

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/soup3 xry111/xf86-video-removal
Last change on this file since 6bc7cd4 was 0ddf4e7, checked in by Bruce Dubbs <bdubbs@…>, 22 months ago

Tags

  • Property mode set to 100644
File size: 4.6 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 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>JSON-C-&json-c-version;</title>
23
24 <indexterm zone="json-c">
[7ded7e3]25 <primary sortas="a-JSON-C">JSON-C</primary>
[250cf69]26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to JSON-C</title>
30
31 <para>
[0d7900a]32 The <application>JSON-C</application> implements a reference counting
33 object model that allows you to easily construct JSON objects in C,
[250cf69]34 output them as JSON formatted strings and parse JSON formatted strings
35 back into the C representation of JSON objects.
36 </para>
37
[0ddf4e7]38 &lfs112_checked;
[250cf69]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
[ba49f54]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-->
[250cf69]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>
[5944fc1]94<!--
[26f5f6ac]95 <note>
96 <para>
97 This package does not support parallel build.
98 </para>
99 </note>
[5944fc1]100-->
[250cf69]101 <para>
102 Install <application>JSON-C</application> by running the following
103 commands:
104 </para>
105
[ba49f54]106<screen><userinput>mkdir build &amp;&amp;
107cd build &amp;&amp;
108
109cmake -DCMAKE_INSTALL_PREFIX=/usr \
110 -DCMAKE_BUILD_TYPE=Release \
[e49ee12]111 -DBUILD_STATIC_LIBS=OFF \
[ba49f54]112 .. &amp;&amp;
[5944fc1]113make</userinput></screen>
[250cf69]114
115 <para>
[ba49f54]116 To test the results, issue: <command>make test</command>.
[250cf69]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
[ba49f54]129 <para>
130 <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is
131 used to apply a higher level of compiler optimizations.
132 </para>
[250cf69]133
134 </sect2>
135
136 <sect2 role="content">
137 <title>Contents</title>
138
139 <segmentedlist>
[c3c56b2]140 <segtitle>Installed Programs</segtitle>
[23d3543c]141 <segtitle>Installed Libraries</segtitle>
142 <segtitle>Installed Directories</segtitle>
[250cf69]143
144 <seglistitem>
[c3c56b2]145 <seg>
146 None
147 </seg>
[250cf69]148 <seg>
[ba49f54]149 libjson-c.so
[250cf69]150 </seg>
151 <seg>
[23d3543c]152 /usr/include/json-c
[250cf69]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
[23d3543c]162 <varlistentry id="libjson-c">
163 <term><filename class="libraryfile">libjson-c.so</filename></term>
164 <listitem>
165 <para>
[4c24eb0a]166 contains the <application>JSON-C</application> API functions
[23d3543c]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
[250cf69]174 </variablelist>
175
176 </sect2>
177
178</sect1>
Note: See TracBrowser for help on using the repository browser.