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 |
|
---|
8 | <sect1 id="qca-qt5" xreflabel="Qca-&qca-qt5-version;">
|
---|
9 | <?dbhtml filename="qca-qt5.html"?>
|
---|
10 |
|
---|
11 | <sect1info>
|
---|
12 | <othername>$LastChangedBy: krejzi $</othername>
|
---|
13 | <date>$Date: 2014-10-26 16:35:43 +0100 (Sun, 26 Oct 2014) $</date>
|
---|
14 | </sect1info>
|
---|
15 |
|
---|
16 | <title>Qca-&qca-qt5-version;</title>
|
---|
17 |
|
---|
18 | <indexterm zone="qca-qt5">
|
---|
19 | <primary sortas="a-Qca">Qca</primary>
|
---|
20 | </indexterm>
|
---|
21 |
|
---|
22 | <sect2 role="package">
|
---|
23 | <title>Introduction to Qca</title>
|
---|
24 |
|
---|
25 | <para>
|
---|
26 | <application>Qca</application> aims to provide a straightforward
|
---|
27 | and cross-platform crypto API, using <application>Qt</application>
|
---|
28 | datatypes and conventions. <application>Qca</application> separates
|
---|
29 | the API from the implementation, using plugins known as Providers.
|
---|
30 | </para>
|
---|
31 |
|
---|
32 | &lfs77_checked;
|
---|
33 |
|
---|
34 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
35 | <itemizedlist spacing="compact">
|
---|
36 | <listitem>
|
---|
37 | <para>
|
---|
38 | Download (HTTP): <ulink url="&qca-qt5-download-http;"/>
|
---|
39 | </para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (FTP): <ulink url="&qca-qt5-download-ftp;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download MD5 sum: &qca-qt5-md5sum;
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download size: &qca-qt5-size;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Estimated disk space required: &qca-qt5-buildsize;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated build time: &qca-qt5-time;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect3">Qca Dependencies</bridgehead>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
71 | <para role="required">
|
---|
72 | <xref linkend="cmake"/> and
|
---|
73 | <xref linkend="qt5"/>
|
---|
74 | </para>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
77 | <para role="recommended">
|
---|
78 | <xref linkend="cacerts"/>
|
---|
79 | </para>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
82 | <para role="optional">
|
---|
83 | <xref linkend="cyrus-sasl"/>,
|
---|
84 | <xref linkend="gnupg2"/>,
|
---|
85 | <xref linkend="libgcrypt"/>,
|
---|
86 | <xref linkend="nss"/>,
|
---|
87 | <xref linkend="openssl"/>,
|
---|
88 | <xref linkend="qt4"/>,
|
---|
89 | <ulink url="http://botan.randombit.net/">Botan</ulink> and
|
---|
90 | <ulink url="https://github.com/OpenSC/pkcs11-helper">pkcs11-helper</ulink>
|
---|
91 | </para>
|
---|
92 |
|
---|
93 | <note>
|
---|
94 | <para>
|
---|
95 | Even though this package can be built against
|
---|
96 | <application>Qt4</application>, the instructions below don't
|
---|
97 | cover such installation because the changes needed to the
|
---|
98 | instructions below are too invasive. If you need
|
---|
99 | <application>Qt4</application> version of the library, check
|
---|
100 | the "General Libraries" chapter for instructions.
|
---|
101 | </para>
|
---|
102 | </note>
|
---|
103 |
|
---|
104 | <para condition="html" role="usernotes">User Notes:
|
---|
105 | <ulink url="&blfs-wiki;/qca-qt5"/>
|
---|
106 | </para>
|
---|
107 | </sect2>
|
---|
108 |
|
---|
109 | <sect2 role="installation">
|
---|
110 | <title>Installation of Qca</title>
|
---|
111 |
|
---|
112 | <para>
|
---|
113 | First, silence a lot of warnings caused by using the latest toolchain
|
---|
114 | by running the following command:
|
---|
115 | </para>
|
---|
116 |
|
---|
117 | <screen><userinput>sed -i "/BSD_SOURCE/d" CMakeLists.txt</userinput></screen>
|
---|
118 |
|
---|
119 | <para>
|
---|
120 | Install <application>Qca</application> by running the following
|
---|
121 | commands:
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <screen><userinput>mkdir build &&
|
---|
125 | cd build &&
|
---|
126 |
|
---|
127 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
128 | -DCMAKE_BUILD_TYPE=Release \
|
---|
129 | -DQCA_SUFFIX=qt5 \
|
---|
130 | -DQCA_DOC_INSTALL_DIR=/usr/share/doc/qca-qt5-&qca-qt5-version; \
|
---|
131 | -DQCA_FEATURE_INSTALL_DIR=/usr/lib/qt5/mkspecs/features \
|
---|
132 | -DQCA_INCLUDE_INSTALL_DIR=/usr/include/qt5 \
|
---|
133 | -DQCA_PRIVATE_INCLUDE_INSTALL_DIR=/usr/include/qt5 \
|
---|
134 | -DQCA_PLUGINS_INSTALL_DIR=/usr/lib/qt5/plugins \
|
---|
135 | -Wno-dev .. &&
|
---|
136 |
|
---|
137 | make</userinput></screen>
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | To test the results, issue <command>make test</command>.
|
---|
141 | </para>
|
---|
142 |
|
---|
143 | <para>
|
---|
144 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
145 | </para>
|
---|
146 |
|
---|
147 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
148 |
|
---|
149 | <para>
|
---|
150 | If <application>Qt5</application> isn't installed in
|
---|
151 | <filename class="directory">/usr</filename>, ensure
|
---|
152 | it can properly find the modules installed by this
|
---|
153 | package by running the following commands as the
|
---|
154 | <systemitem class="username">root</systemitem> user:
|
---|
155 | </para>
|
---|
156 |
|
---|
157 | <screen role="root"><userinput>if [[ ${QT5DIR} != "/usr" ]]
|
---|
158 | then
|
---|
159 | ln -sfv /usr/include/qt5/QtCrypto \
|
---|
160 | ${QT5DIR}/include/qt5/ &&
|
---|
161 | ln -sfv /usr/lib/qt5/mkspecs/features/crypto.prf \
|
---|
162 | ${QT5DIR}/lib/qt5/mkspecs/features/ &&
|
---|
163 |
|
---|
164 | install -v -dm755 ${QT5DIR}/lib/qt5/plugins/crypto &&
|
---|
165 |
|
---|
166 | for file in /usr/lib/qt5/plugins/crypto/*
|
---|
167 | do
|
---|
168 | ln -sfv ${file} ${QT5DIR}/lib/qt5/plugins/crypto/
|
---|
169 | done &&
|
---|
170 |
|
---|
171 | unset file
|
---|
172 | fi</userinput></screen>
|
---|
173 |
|
---|
174 | <note>
|
---|
175 | <para>
|
---|
176 | If you upgrade <application>Qt5</application> per BLFS
|
---|
177 | instructions, make sure you re-run the commands above.
|
---|
178 | </para>
|
---|
179 | </note>
|
---|
180 |
|
---|
181 | </sect2>
|
---|
182 |
|
---|
183 | <sect2 role="commands">
|
---|
184 | <title>Command Explanations</title>
|
---|
185 |
|
---|
186 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
187 | href="../../xincludes/cmake-release.xml"/>
|
---|
188 |
|
---|
189 | <para>
|
---|
190 | <parameter>-DQCA_SUFFIX=qt5</parameter>: This switch is used to ensure
|
---|
191 | that the programs and libraries installed by this package don't
|
---|
192 | conflict with <application>Qt4</application> equivalents.
|
---|
193 | </para>
|
---|
194 |
|
---|
195 | <para>
|
---|
196 | <parameter>-DQCA_*_INSTALL_DIR=...</parameter>: These switches are used
|
---|
197 | to ensure that files depending on the <application>Qt5</application>
|
---|
198 | installation prefix are installed in the correct locations.
|
---|
199 | </para>
|
---|
200 |
|
---|
201 | </sect2>
|
---|
202 |
|
---|
203 | <sect2 role="content">
|
---|
204 | <title>Contents</title>
|
---|
205 |
|
---|
206 | <segmentedlist>
|
---|
207 | <segtitle>Installed Programs</segtitle>
|
---|
208 | <segtitle>Installed Libraries</segtitle>
|
---|
209 | <segtitle>Installed Directories</segtitle>
|
---|
210 |
|
---|
211 | <seglistitem>
|
---|
212 | <seg>
|
---|
213 | mozcerts-qt5 and qcatool-qt5
|
---|
214 | </seg>
|
---|
215 | <seg>
|
---|
216 | libqca-qt5.so
|
---|
217 | </seg>
|
---|
218 | <seg>
|
---|
219 | /usr/include/qt5/QtCrypto,
|
---|
220 | /usr/lib/cmake/Qca,
|
---|
221 | /usr/lib/qt5/plugins/crypto and,
|
---|
222 | depending on the <application>Qt5</application>
|
---|
223 | installation prefix,
|
---|
224 | $QT5DIR/include/qt5/QtCrypto and
|
---|
225 | $QT5DIR/lib/qt5/plugins/crypto
|
---|
226 | </seg>
|
---|
227 | </seglistitem>
|
---|
228 | </segmentedlist>
|
---|
229 |
|
---|
230 | <variablelist>
|
---|
231 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
232 | <?dbfo list-presentation="list"?>
|
---|
233 | <?dbhtml list-presentation="table"?>
|
---|
234 |
|
---|
235 | <varlistentry id="mozcerts-qt5">
|
---|
236 | <term><command>mozcerts-qt5</command></term>
|
---|
237 | <listitem>
|
---|
238 | <para>
|
---|
239 | is a command line tool for converting certdata.txt into
|
---|
240 | outfile.pem files.
|
---|
241 | </para>
|
---|
242 | <indexterm zone="qca-qt5 mozcerts-qt5">
|
---|
243 | <primary sortas="b-mozcerts-qt5">mozcerts-qt5</primary>
|
---|
244 | </indexterm>
|
---|
245 | </listitem>
|
---|
246 | </varlistentry>
|
---|
247 |
|
---|
248 | <varlistentry id="qcatool-qt5">
|
---|
249 | <term><command>qcatool-qt5</command></term>
|
---|
250 | <listitem>
|
---|
251 | <para>
|
---|
252 | is a command line tool for performing various cryptographic
|
---|
253 | operations with <application>Qca</application>.
|
---|
254 | </para>
|
---|
255 | <indexterm zone="qca-qt5 qcatool-qt5">
|
---|
256 | <primary sortas="b-qcatool-qt5">qcatool-qt5</primary>
|
---|
257 | </indexterm>
|
---|
258 | </listitem>
|
---|
259 | </varlistentry>
|
---|
260 |
|
---|
261 | <varlistentry id="libqca-qt5">
|
---|
262 | <term><filename class="libraryfile">libqca-qt5.so</filename></term>
|
---|
263 | <listitem>
|
---|
264 | <para>
|
---|
265 | is the Qt Cryptography Architecture (Qca) library.
|
---|
266 | </para>
|
---|
267 | <indexterm zone="qca-qt5 libqca-qt5">
|
---|
268 | <primary sortas="c-libqca-qt5">libqca-qt5.so</primary>
|
---|
269 | </indexterm>
|
---|
270 | </listitem>
|
---|
271 | </varlistentry>
|
---|
272 |
|
---|
273 | </variablelist>
|
---|
274 |
|
---|
275 | </sect2>
|
---|
276 |
|
---|
277 | </sect1>
|
---|