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