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-c-download-http "https://github.com/protobuf-c/protobuf-c/releases/download/v&protobuf-c-version;/protobuf-c-&protobuf-c-version;.tar.gz">
|
---|
8 | <!ENTITY protobuf-c-md5sum "03030a3994b9f89ef166336048992484">
|
---|
9 | <!ENTITY protobuf-c-size "496 KB">
|
---|
10 | <!ENTITY protobuf-c-buildsize "60 MB">
|
---|
11 | <!ENTITY protobuf-c-time "0.6 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="protobuf-c" xreflabel="Protobuf-c-&protobuf-c-version;">
|
---|
15 | <?dbhtml filename="protobuf-c.html"?>
|
---|
16 |
|
---|
17 | <title>Protobuf-c-&protobuf-c-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="protobuf-c">
|
---|
20 | <primary sortas="a-protobuf-c">Protobuf-c</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect2 role="package">
|
---|
24 | <title>Introduction to Protobuf-c</title>
|
---|
25 |
|
---|
26 | <para>
|
---|
27 | The <application>Protobuf-c</application> package contains an
|
---|
28 | implementation of the Google Protocol Buffers data serialization format
|
---|
29 | in C.
|
---|
30 | </para>
|
---|
31 |
|
---|
32 | &lfs121_checked;
|
---|
33 |
|
---|
34 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
35 | <itemizedlist spacing="compact">
|
---|
36 | <listitem>
|
---|
37 | <para>
|
---|
38 | Download (HTTP): <ulink url="&protobuf-c-download-http;"/>
|
---|
39 | </para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download MD5 sum: &protobuf-c-md5sum;
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download size: &protobuf-c-size;
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Estimated disk space required: &protobuf-c-buildsize;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Estimated build time: &protobuf-c-time;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | </itemizedlist>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
64 | <itemizedlist spacing="compact">
|
---|
65 | <listitem>
|
---|
66 | <para>
|
---|
67 | Required patch:
|
---|
68 | <ulink url="&patch-root;/protobuf-c-&protobuf-c-version;-consolidated_fixes-1.patch"/>
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect3">Protobuf-c Dependencies</bridgehead>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
76 | <para role="required">
|
---|
77 | <xref linkend="protobuf"/>
|
---|
78 | </para>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
81 | <para role="optional">
|
---|
82 | <xref linkend="doxygen"/>
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | </sect2>
|
---|
86 |
|
---|
87 | <sect2 role="installation">
|
---|
88 | <title>Installation of Protobuf-c</title>
|
---|
89 |
|
---|
90 | <para>
|
---|
91 | First, apply some upstream fixes to make this package compatible
|
---|
92 | with protobuf-26.1:
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | <screen role="pre"><userinput>patch -Np1 -i ../protobuf-c-&protobuf-c-version;-consolidated_fixes-1.patch</userinput></screen>
|
---|
96 |
|
---|
97 | <para>
|
---|
98 | Install <application>Protobuf-c</application> by running the following
|
---|
99 | commands:
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
103 | make</userinput></screen>
|
---|
104 |
|
---|
105 | <para>
|
---|
106 | To test the results, issue: <command>make check</command>.
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <para>
|
---|
110 | Now, as the &root; user:
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
114 |
|
---|
115 | </sect2>
|
---|
116 |
|
---|
117 | <sect2 role="commands">
|
---|
118 | <title>Command Explanations</title>
|
---|
119 |
|
---|
120 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
121 | href="../../xincludes/static-libraries.xml"/>
|
---|
122 |
|
---|
123 | </sect2>
|
---|
124 |
|
---|
125 | <sect2 role="content">
|
---|
126 | <title>Contents</title>
|
---|
127 |
|
---|
128 | <segmentedlist>
|
---|
129 | <segtitle>Installed Programs</segtitle>
|
---|
130 | <segtitle>Installed Libraries</segtitle>
|
---|
131 | <segtitle>Installed Directories</segtitle>
|
---|
132 |
|
---|
133 | <seglistitem>
|
---|
134 | <seg>
|
---|
135 | protoc-gen-c and protoc-c (symlinked to protoc-gen-c)
|
---|
136 | </seg>
|
---|
137 | <seg>
|
---|
138 | libprotobuf-c.so
|
---|
139 | </seg>
|
---|
140 | <seg>
|
---|
141 | /usr/include/google and
|
---|
142 | /usr/include/protobuf-c
|
---|
143 | </seg>
|
---|
144 | </seglistitem>
|
---|
145 | </segmentedlist>
|
---|
146 |
|
---|
147 | <variablelist>
|
---|
148 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
149 | <?dbfo list-presentation="list"?>
|
---|
150 | <?dbhtml list-presentation="table"?>
|
---|
151 |
|
---|
152 | <varlistentry id="protoc-c">
|
---|
153 | <term><command>protoc-c</command></term>
|
---|
154 | <listitem>
|
---|
155 | <para>
|
---|
156 | generates C descriptor code from a .proto file
|
---|
157 | </para>
|
---|
158 | <indexterm zone="protobuf-c protoc-c">
|
---|
159 | <primary sortas="b-protoc-c">protoc-c</primary>
|
---|
160 | </indexterm>
|
---|
161 | </listitem>
|
---|
162 | </varlistentry>
|
---|
163 |
|
---|
164 | <varlistentry id="libprotobuf-c">
|
---|
165 | <term><filename class="libraryfile">libprotobuf-c.so</filename></term>
|
---|
166 | <listitem>
|
---|
167 | <para>
|
---|
168 | contains a C implementation of the Google Protocol Buffers data
|
---|
169 | serialization format
|
---|
170 | </para>
|
---|
171 | <indexterm zone="protobuf-c libprotobuf-c">
|
---|
172 | <primary sortas="c-libprotobuf-c">libprotobuf-c.so</primary>
|
---|
173 | </indexterm>
|
---|
174 | </listitem>
|
---|
175 | </varlistentry>
|
---|
176 | </variablelist>
|
---|
177 | </sect2>
|
---|
178 | </sect1>
|
---|