[916392a] | 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 |
|
---|
[6eede81] | 7 | <!ENTITY ptlib-download-http "&gnome-download-http;/ptlib/2.10/ptlib-&ptlib-version;.tar.xz">
|
---|
| 8 | <!ENTITY ptlib-download-ftp "&gnome-download-ftp;/ptlib/2.10/ptlib-&ptlib-version;.tar.xz">
|
---|
[fcd24c06] | 9 | <!ENTITY ptlib-md5sum "3ffdf89170dbfa6d29a015ef8741a4e4">
|
---|
| 10 | <!ENTITY ptlib-size "2.4 MB">
|
---|
| 11 | <!ENTITY ptlib-buildsize "81 MB">
|
---|
| 12 | <!ENTITY ptlib-time "0.9 SBU">
|
---|
[916392a] | 13 | ]>
|
---|
| 14 |
|
---|
[880c568] | 15 | <sect1 id="ptlib" xreflabel="Ptlib-&ptlib-version;">
|
---|
[916392a] | 16 | <?dbhtml filename="ptlib.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[880c568] | 19 | <title>Ptlib-&ptlib-version;</title>
|
---|
[916392a] | 20 |
|
---|
| 21 | <indexterm zone="ptlib">
|
---|
[0ea00d5] | 22 | <primary sortas="a-Ptlib">Ptlib</primary>
|
---|
[916392a] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
[0ea00d5] | 26 | <title>Introduction to Ptlib</title>
|
---|
[916392a] | 27 |
|
---|
[0ea00d5] | 28 | <para>
|
---|
| 29 | The <application>Ptlib</application> (Portable Tools Library) package
|
---|
| 30 | contains a class library that has its genesis many years ago as PWLib
|
---|
| 31 | (portable Windows Library), a method to produce applications to run on
|
---|
| 32 | various platforms.
|
---|
| 33 | </para>
|
---|
[916392a] | 34 |
|
---|
[5380ca3] | 35 | &lfs91_checked;
|
---|
[414392c2] | 36 |
|
---|
[916392a] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
[0ea00d5] | 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&ptlib-download-http;"/>
|
---|
| 42 | </para>
|
---|
[916392a] | 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
[0ea00d5] | 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&ptlib-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
[916392a] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[0ea00d5] | 50 | <para>
|
---|
| 51 | Download MD5 sum: &ptlib-md5sum;
|
---|
| 52 | </para>
|
---|
[916392a] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[0ea00d5] | 55 | <para>
|
---|
| 56 | Download size: &ptlib-size;
|
---|
| 57 | </para>
|
---|
[916392a] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[0ea00d5] | 60 | <para>
|
---|
| 61 | Estimated disk space required: &ptlib-buildsize;
|
---|
| 62 | </para>
|
---|
[916392a] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[0ea00d5] | 65 | <para>
|
---|
| 66 | Estimated build time: &ptlib-time;
|
---|
| 67 | </para>
|
---|
[916392a] | 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
[07584d8] | 71 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 72 | <itemizedlist spacing="compact">
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>
|
---|
| 75 | Required patch:
|
---|
[ba1ccf6] | 76 | <ulink url="&patch-root;/ptlib-&ptlib-version;-bison_fixes-2.patch"/>
|
---|
[07584d8] | 77 | </para>
|
---|
| 78 | </listitem>
|
---|
[a4f37269] | 79 | <listitem>
|
---|
| 80 | <para>
|
---|
| 81 | Required patch:
|
---|
| 82 | <ulink url="&patch-root;/ptlib-&ptlib-version;-openssl-1.1.0-1.patch"/>
|
---|
| 83 | </para>
|
---|
| 84 | </listitem>
|
---|
[07584d8] | 85 | </itemizedlist>
|
---|
| 86 |
|
---|
[0ea00d5] | 87 | <bridgehead renderas="sect3">Ptlib Dependencies</bridgehead>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 90 | <para role="recommended">
|
---|
[94b42903] | 91 | <xref linkend="alsa-lib"/>
|
---|
[0ea00d5] | 92 | </para>
|
---|
[916392a] | 93 |
|
---|
| 94 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[0ea00d5] | 95 | <para role="optional">
|
---|
| 96 | <xref linkend="cyrus-sasl"/>,
|
---|
[c1a0390] | 97 | <xref linkend="lua"/>,
|
---|
[0ea00d5] | 98 | <xref linkend="openldap"/>,
|
---|
| 99 | <xref linkend="pulseaudio"/>,
|
---|
| 100 | <xref linkend="sdl"/>,
|
---|
[3b9d6d27] | 101 | <xref linkend="unixodbc"/> (currently broken, see <emphasis>Command
|
---|
| 102 | Explanations</emphasis> below),
|
---|
[f3429309] | 103 | <xref linkend="v4l-utils"/>,
|
---|
[80dbc4c8] | 104 | <ulink url="http://sourceforge.net/projects/libdc1394/">libdc1394</ulink>, and
|
---|
| 105 | <ulink url="http://www.linux1394.org/">libraw1394</ulink>,
|
---|
[0ea00d5] | 106 | </para>
|
---|
[916392a] | 107 |
|
---|
| 108 | <para condition="html" role="usernotes">User Notes:
|
---|
[0ea00d5] | 109 | <ulink url="&blfs-wiki;/ptlib"/>
|
---|
| 110 | </para>
|
---|
[916392a] | 111 | </sect2>
|
---|
| 112 |
|
---|
| 113 | <sect2 role="installation">
|
---|
[0ea00d5] | 114 | <title>Installation of Ptlib</title>
|
---|
[916392a] | 115 |
|
---|
[2cef196] | 116 | <para>
|
---|
[cb4fcdd6] | 117 | Fix a build issue with gcc-7.1.0 and later:
|
---|
[2cef196] | 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <screen><userinput>sed -i "s/sbin\.Right(1) == '\\\\0')/strlen(sbin\.Right(1)) == 0)/" \
|
---|
[6ded4ec] | 121 | src/ptclib/podbc.cxx &&
|
---|
| 122 |
|
---|
| 123 | sed -i '/\/ioctl.h/a#include <sys/uio.h>' src/ptlib/unix/channel.cxx</userinput></screen>
|
---|
[2cef196] | 124 |
|
---|
[9d08b97] | 125 | <para>
|
---|
| 126 | Fix an issue with make-4.3 and later (breaks the build with previous
|
---|
| 127 | versions of make):
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <screen><userinput>sed 's/\\#/#/' -i make/common.mak</userinput></screen>
|
---|
| 131 |
|
---|
[0ea00d5] | 132 | <para>
|
---|
| 133 | Install <application>Ptlib</application> by running the following
|
---|
| 134 | commands:
|
---|
| 135 | </para>
|
---|
[edddb653] | 136 |
|
---|
[a4f37269] | 137 | <screen><userinput>patch -Np1 -i ../ptlib-&ptlib-version;-openssl-1.1.0-1.patch &&
|
---|
| 138 | patch -Np1 -i ../ptlib-&ptlib-version;-bison_fixes-2.patch &&
|
---|
[f0c1bb8] | 139 |
|
---|
[3b9d6d27] | 140 | ./configure --prefix=/usr \
|
---|
| 141 | --disable-odbc &&
|
---|
[916392a] | 142 | make</userinput></screen>
|
---|
| 143 |
|
---|
[0ea00d5] | 144 | <para>
|
---|
| 145 | This package does not come with a test suite.
|
---|
| 146 | </para>
|
---|
[916392a] | 147 |
|
---|
[0ea00d5] | 148 | <para>
|
---|
| 149 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 150 | </para>
|
---|
[916392a] | 151 |
|
---|
[ffd1fcc] | 152 | <screen role="root"><userinput>make install &&
|
---|
| 153 | chmod -v 755 /usr/lib/libpt.so.&ptlib-version;</userinput></screen>
|
---|
[916392a] | 154 |
|
---|
| 155 | </sect2>
|
---|
| 156 |
|
---|
[3b9d6d27] | 157 | <sect2 role="commands">
|
---|
| 158 | <title>Command Explanations</title>
|
---|
| 159 |
|
---|
| 160 | <para>
|
---|
| 161 | <parameter>--disable-odbc</parameter>: This parameter prevents the use
|
---|
| 162 | of <xref linkend="unixodbc"/>, whose libraries conflict with
|
---|
| 163 | <application>ptlib</application>. It is not needed if
|
---|
| 164 | <xref linkend="unixodbc"/> is not installed.
|
---|
| 165 | </para>
|
---|
| 166 |
|
---|
| 167 | </sect2>
|
---|
| 168 |
|
---|
[916392a] | 169 | <sect2 role="content">
|
---|
| 170 | <title>Contents</title>
|
---|
| 171 |
|
---|
| 172 | <segmentedlist>
|
---|
[0ea00d5] | 173 | <segtitle>Installed Program</segtitle>
|
---|
| 174 | <segtitle>Installed Libraries</segtitle>
|
---|
[916392a] | 175 | <segtitle>Installed Directories</segtitle>
|
---|
| 176 |
|
---|
| 177 | <seglistitem>
|
---|
[0ea00d5] | 178 | <seg>
|
---|
| 179 | ptlib-config
|
---|
| 180 | </seg>
|
---|
| 181 | <seg>
|
---|
| 182 | libpt.so and libpt_s.a
|
---|
| 183 | </seg>
|
---|
| 184 | <seg>
|
---|
| 185 | /usr/include/ptclib,
|
---|
| 186 | /usr/include/ptlib,
|
---|
[6de7590] | 187 | /usr/lib/ptlib-&ptlib-version;, and
|
---|
[0ea00d5] | 188 | /usr/share/ptlib
|
---|
| 189 | </seg>
|
---|
[916392a] | 190 | </seglistitem>
|
---|
| 191 | </segmentedlist>
|
---|
| 192 |
|
---|
| 193 | <variablelist>
|
---|
| 194 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 195 | <?dbfo list-presentation="list"?>
|
---|
| 196 | <?dbhtml list-presentation="table"?>
|
---|
| 197 |
|
---|
[e23d8fcb] | 198 | <varlistentry id="ptlib-config">
|
---|
| 199 | <term><command>ptlib-config</command></term>
|
---|
| 200 | <listitem>
|
---|
| 201 | <para>
|
---|
| 202 | determines the compile and linker flags that should be used to
|
---|
| 203 | compile and link programs that use <filename class="libraryfile">libpt</filename>.
|
---|
| 204 | </para>
|
---|
| 205 | <indexterm zone="ptlib ptlib-config">
|
---|
| 206 | <primary sortas="b-ptlib-config">ptlib-config</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
| 210 |
|
---|
[916392a] | 211 | <varlistentry id="libpt">
|
---|
[0ea00d5] | 212 | <term><filename class="libraryfile">libpt.so</filename></term>
|
---|
[916392a] | 213 | <listitem>
|
---|
[0ea00d5] | 214 | <para>
|
---|
| 215 | contains the <application>Ptlib</application> API functions.
|
---|
| 216 | </para>
|
---|
[916392a] | 217 | <indexterm zone="ptlib libpt">
|
---|
[0ea00d5] | 218 | <primary sortas="c-libpt">libpt.so</primary>
|
---|
[916392a] | 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
| 223 | </variablelist>
|
---|
| 224 |
|
---|
| 225 | </sect2>
|
---|
| 226 |
|
---|
| 227 | </sect1>
|
---|