source: general/genlib/protobuf.xml@ 14c77197

12.2 gimp3 lazarus trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since 14c77197 was 14c77197, checked in by Bruce Dubbs <bdubbs@…>, 4 months ago

Update to protobuf-27.0.

  • Property mode set to 100644
File size: 7.1 KB
RevLine 
[f9b304c]1<?xml version="1.0" encoding="UTF-8"?>
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 protobuf-download-http "https://github.com/protocolbuffers/protobuf/releases/download/v&protobuf-version;/protobuf-&protobuf-version;.tar.gz">
[14c77197]8 <!ENTITY protobuf-md5sum "c96aaf02c8acea549d65bb7b2d549bf6">
9 <!ENTITY protobuf-size "6.0 MB">
10 <!ENTITY protobuf-buildsize "81 MB">
11 <!ENTITY protobuf-time "1.0 SBU (with parallelism=4)">
[f9b304c]12]>
13
14<sect1 id="protobuf" xreflabel="Protobuf-&protobuf-version;">
15 <?dbhtml filename="protobuf.html"?>
16
17 <title>Protobuf-&protobuf-version;</title>
18
19 <indexterm zone="protobuf">
20 <primary sortas="a-protobuf">Protobuf</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title>Introduction to Protobuf</title>
25
26 <para>
27 The <application>Protobuf</application> package contains utilities and
28 libraries for using data in Google's data interchange format.
29 </para>
30
31 &lfs121_checked;
32
33 <bridgehead renderas="sect3">Package Information</bridgehead>
34 <itemizedlist spacing="compact">
35 <listitem>
36 <para>
37 Download (HTTP): <ulink url="&protobuf-download-http;"/>
38 </para>
39 </listitem>
40 <listitem>
41 <para>
42 Download MD5 sum: &protobuf-md5sum;
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download size: &protobuf-size;
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Estimated disk space required: &protobuf-buildsize;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Estimated build time: &protobuf-time;
58 </para>
59 </listitem>
60 </itemizedlist>
61
62 <bridgehead renderas="sect3">Protobuf Dependencies</bridgehead>
63
64 <bridgehead renderas="sect4">Required</bridgehead>
65 <para role="required">
66 <xref linkend="abseil-cpp"/> and
67 <xref linkend="cmake"/>
68 </para>
69
70 <bridgehead renderas="sect4">Optional</bridgehead>
71 <para role="optional">
72 <ulink url="https://github.com/google/googletest">gtest (for tests)</ulink>
73 </para>
74
75 </sect2>
76
77 <sect2 role="installation">
78 <title>Installation of Protobuf</title>
79
80 <para>
81 Install <application>Protobuf</application> by running the following
82 commands:
83 </para>
84
85<screen><userinput>mkdir build &amp;&amp;
86cd build &amp;&amp;
87
88cmake -DCMAKE_INSTALL_PREFIX=/usr \
89 -DCMAKE_BUILD_TYPE=Release \
90 -Dprotobuf_BUILD_TESTS=OFF \
91 -Dprotobuf_ABSL_PROVIDER=package \
92 -Dprotobuf_BUILD_SHARED_LIBS=ON \
93 -G Ninja .. &amp;&amp;
94ninja</userinput></screen>
95
96 <para>
97 This package does come with a test suite, but it requires
98 <ulink url="https://github.com/google/googletest">gtest</ulink>, which
99 is not part of BLFS.
100 </para>
101
102 <para>
103 Now, as the &root; user:
104 </para>
105
106<screen role="root"><userinput>sed 's/utf8_range//' -i *.pc &amp;&amp;
107ninja install</userinput></screen>
108
109 </sect2>
110
111 <sect2 role="commands">
112 <title>Command Explanations</title>
113
114 <para>
115 <command>sed 's/utf8_range//' -i *.pc</command>: This command removes a
116 leftover reference to libutf8_range from the pkg-config files installed
117 by this package.
118 </para>
119
120 <para>
121 <parameter>-Dprotobuf_BUILD_TESTS=OFF</parameter>: This parameter prevents
122 the tests from being built because
123 <ulink url="https://github.com/google/googletest">gtest</ulink> is not
124 part of BLFS.
125 </para>
126
127 <para>
128 <parameter>-Dprotobuf_ABSL_PROVIDER=package</parameter>: This parameter
129 allows the build system to use the system-installed copy of
130 <xref linkend="abseil-cpp" role="nodep"/>.
131 </para>
132
133 <para>
134 <parameter>-Dprotobuf_BUILD_SHARED_LIBS=ON</parameter>: This parameter
135 enables building shared versions of the libraries provided by this package
136 instead of static versions.
137 </para>
138
139 <para>
140 <parameter>-Dutf8_range_ENABLE_INSTALL=OFF</parameter>: This parameter
[9c8d67e4]141 disables installing the utf8_range static library. The functions
142 provided by this library and used by protobuf is already embedded into
143 <filename class='libraryfile'>libprotobuf.so</filename>, so installing
144 a full copy of the static library is just wasting the disk space.
[f9b304c]145 </para>
146
147 </sect2>
148
149 <sect2 role="content">
150 <title>Contents</title>
151
152 <segmentedlist>
153 <segtitle>Installed Programs</segtitle>
154 <segtitle>Installed Libraries</segtitle>
155 <segtitle>Installed Directories</segtitle>
156
157 <seglistitem>
158 <seg>
159 protoc-26.1.0 and protoc (a symlink to protoc-26.1.0)
160 </seg>
161 <seg>
162 libprotobuf.so,
163 libprotobuf-lite.so, and
164 libprotoc.so
165 </seg>
166 <seg>
167 /usr/include/google,
168 /usr/include/java,
169 /usr/include/upb_generator, and
170 /usr/lib/cmake/protobuf
171 </seg>
172 </seglistitem>
173 </segmentedlist>
174
175 <variablelist>
176 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
177 <?dbfo list-presentation="list"?>
178 <?dbhtml list-presentation="table"?>
179
180 <varlistentry id="protoc">
181 <term><command>protoc</command></term>
182 <listitem>
183 <para>
184 parses protocol buffer files and generates output for several
185 programming languages and formats
186 </para>
187 <indexterm zone="protobuf protoc">
188 <primary sortas="b-protoc">protoc</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="libprotobuf">
194 <term><filename class="libraryfile">libprotobuf.so</filename></term>
195 <listitem>
196 <para>
197 contains functions for utilizing data in Google's data interchange
198 format
199 </para>
200 <indexterm zone="protobuf libprotobuf">
201 <primary sortas="c-libprotobuf">libprotobuf.so</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="libprotobuf-lite">
207 <term><filename class="libraryfile">libprotobuf-lite.so</filename></term>
208 <listitem>
209 <para>
210 contains a simpler version of the functions for utilizing data in
211 Google's data interchange format
212 </para>
213 <indexterm zone="protobuf libprotobuf-lite">
214 <primary sortas="c-libprotobuf-lite">libprotobuf-lite.so</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="libprotoc">
220 <term><filename class="libraryfile">libprotoc.so</filename></term>
221 <listitem>
222 <para>
223 contains functions used by protoc at runtime for outputting data
224 for several programming languages and formats
225 </para>
226 <indexterm zone="protobuf libprotoc">
227 <primary sortas="c-libprotoc">libprotoc.so</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231 </variablelist>
232 </sect2>
233</sect1>
Note: See TracBrowser for help on using the repository browser.