source: general/genlib/ptlib.xml@ a01d308

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a01d308 was 2cef196, checked in by DJ Lucas <dj@…>, 7 years ago

Fix build error in ptlib with gcc-7.1.0. Thanks to Chris Staub for assisting with the fix.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18769 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.7 KB
Line 
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 <!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">
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">
13]>
14
15<sect1 id="ptlib" xreflabel="Ptlib-&ptlib-version;">
16 <?dbhtml filename="ptlib.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Ptlib-&ptlib-version;</title>
24
25 <indexterm zone="ptlib">
26 <primary sortas="a-Ptlib">Ptlib</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Ptlib</title>
31
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>
38
39 &lfs80_checked;
40 &gcc7_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&ptlib-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&ptlib-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &ptlib-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &ptlib-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &ptlib-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &ptlib-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
77 <itemizedlist spacing="compact">
78 <listitem>
79 <para>
80 Required patch:
81 <ulink url="&patch-root;/ptlib-&ptlib-version;-bison_fixes-2.patch"/>
82 </para>
83 </listitem>
84 </itemizedlist>
85
86 <bridgehead renderas="sect3">Ptlib Dependencies</bridgehead>
87
88 <bridgehead renderas="sect4">Recommended</bridgehead>
89 <para role="recommended">
90 <xref linkend="alsa-lib"/> and
91 <xref linkend="openssl"/>
92 </para>
93
94 <bridgehead renderas="sect4">Optional</bridgehead>
95 <para role="optional">
96 <xref linkend="cyrus-sasl"/>,
97 <xref linkend="lua"/>,
98 <xref linkend="openldap"/>,
99 <xref linkend="pulseaudio"/>,
100 <xref linkend="sdl"/>,
101 <xref linkend="unixodbc"/>,
102 <xref linkend="v4l-utils"/>,
103 <ulink url="http://sourceforge.net/projects/libdc1394/">libdc1394</ulink>, and
104 <ulink url="http://www.linux1394.org/">libraw1394</ulink>,
105 </para>
106
107 <para condition="html" role="usernotes">User Notes:
108 <ulink url="&blfs-wiki;/ptlib"/>
109 </para>
110 </sect2>
111
112 <sect2 role="installation">
113 <title>Installation of Ptlib</title>
114
115 <para>
116 Fix a build issue with gcc-7.1.0:
117 </para>
118
119<screen><userinput>sed -i "s/sbin\.Right(1) == '\\\\0')/strlen(sbin\.Right(1)) == 0)/" \
120 src/ptclib/podbc.cxx</userinput></screen>
121
122 <para>
123 Install <application>Ptlib</application> by running the following
124 commands:
125 </para>
126
127<screen><userinput>patch -Np1 -i ../ptlib-&ptlib-version;-bison_fixes-2.patch &amp;&amp;
128
129./configure --prefix=/usr &amp;&amp;
130make</userinput></screen>
131
132 <para>
133 This package does not come with a test suite.
134 </para>
135
136 <para>
137 Now, as the <systemitem class="username">root</systemitem> user:
138 </para>
139
140<screen role="root"><userinput>make install &amp;&amp;
141chmod -v 755 /usr/lib/libpt.so.&ptlib-version;</userinput></screen>
142
143 </sect2>
144
145 <sect2 role="content">
146 <title>Contents</title>
147
148 <segmentedlist>
149 <segtitle>Installed Program</segtitle>
150 <segtitle>Installed Libraries</segtitle>
151 <segtitle>Installed Directories</segtitle>
152
153 <seglistitem>
154 <seg>
155 ptlib-config
156 </seg>
157 <seg>
158 libpt.so and libpt_s.a
159 </seg>
160 <seg>
161 /usr/include/ptclib,
162 /usr/include/ptlib,
163 /usr/lib/ptlib-&ptlib-version;, and
164 /usr/share/ptlib
165 </seg>
166 </seglistitem>
167 </segmentedlist>
168
169 <variablelist>
170 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
171 <?dbfo list-presentation="list"?>
172 <?dbhtml list-presentation="table"?>
173
174 <varlistentry id="ptlib-config">
175 <term><command>ptlib-config</command></term>
176 <listitem>
177 <para>
178 determines the compile and linker flags that should be used to
179 compile and link programs that use <filename class="libraryfile">libpt</filename>.
180 </para>
181 <indexterm zone="ptlib ptlib-config">
182 <primary sortas="b-ptlib-config">ptlib-config</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="libpt">
188 <term><filename class="libraryfile">libpt.so</filename></term>
189 <listitem>
190 <para>
191 contains the <application>Ptlib</application> API functions.
192 </para>
193 <indexterm zone="ptlib libpt">
194 <primary sortas="c-libpt">libpt.so</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 </variablelist>
200
201 </sect2>
202
203</sect1>
Note: See TracBrowser for help on using the repository browser.