Ptlib-2.10.11

#### Beyond Linux® From Scratch (systemd Edition) - Version 9.0

### Chapter 9. General Libraries

- Prev

  Pth-2.0.7

- Next

  Qca-2.2.1

- Up
- Home

# Ptlib-2.10.11

## Introduction to Ptlib

The Ptlib (Portable Tools Library) package contains a class library that has its genesis many years ago as PWLib (portable Windows Library), a method to produce applications to run on various platforms.

This package is known to build and work properly using an LFS-9.0 platform.

### Package Information

- Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/ptlib-2.10.11.tar.xz

- Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/ptlib-2.10.11.tar.xz

- Download MD5 sum: 3ffdf89170dbfa6d29a015ef8741a4e4

- Download size: 2.4 MB

- Estimated disk space required: 81 MB

- Estimated build time: 0.9 SBU

### Additional Downloads

- Required patch: http://www.linuxfromscratch.org/patches/blfs/9.0/ptlib-2.10.11-bison_fixes-2.patch

- Required patch: http://www.linuxfromscratch.org/patches/blfs/9.0/ptlib-2.10.11-openssl-1.1.0-1.patch

### Ptlib Dependencies

#### Recommended

alsa-lib-1.1.9

#### Optional

Cyrus SASL-2.1.27, Lua-5.3.5, OpenLDAP-2.4.48, PulseAudio-12.2, SDL-1.2.15, unixODBC-2.3.7 (currently broken, see Command Explanations below), v4l-utils-1.16.6, libdc1394, and libraw1394,

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/ptlib

## Installation of Ptlib

Fix a build issue with gcc-7.1.0 and later:

    sed -i "s/sbin\.Right(1) == '\\\\0')/strlen(sbin\.Right(1)) == 0)/" \
        src/ptclib/podbc.cxx &&

    sed -i '/\/ioctl.h/a#include <sys/uio.h>' src/ptlib/unix/channel.cxx

Install Ptlib by running the following commands:

    patch -Np1 -i ../ptlib-2.10.11-openssl-1.1.0-1.patch &&
    patch -Np1 -i ../ptlib-2.10.11-bison_fixes-2.patch &&

    ./configure --prefix=/usr  \
                --disable-odbc &&
    make

This package does not come with a test suite.

Now, as the `root` user:

    make install &&
    chmod -v 755 /usr/lib/libpt.so.2.10.11

## Command Explanations

`--disable-odbc`: This parameter prevents the use of unixODBC-2.3.7, whose libraries conflict with ptlib. It is not needed if unixODBC-2.3.7 is not installed.

## Contents

Installed Program: ptlib-config
Installed Libraries: libpt.so and libpt_s.a
Installed Directories: /usr/include/ptclib, /usr/include/ptlib, /usr/lib/ptlib-2.10.11, and /usr/share/ptlib

### Short Descriptions

ptlib-config | determines the compile and linker flags that should be used to compile and link programs that use `libpt`.
`libpt.so` | contains the Ptlib API functions.

Last updated on 2019-08-21 13:25:24 -0700

- Prev

  Pth-2.0.7

- Next

  Qca-2.2.1

- Up
- Home