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