linux系统编译ptlib
1. 源码地址:
代码地址:https://www.h323plus.org/source/ 有时候403
ptlib版本最新版本2.10.9.6地址:
- https://github.com/willamowius/ptlib/archive/v2_10_9_6.zip
- GitHub - willamowius/ptlib: PTLib 2.10.9 fork for GNU Gatekeeper and H323Plus
源码文件:不能携带附件,直接去
2. ptlib编译
C++编译环境:(gcc 11.4) / (Ubuntu 22.04)
./configure --prefix=/opt/ptlib报错各种问题
2.1. 问题:安装pkg-config
checking for pkg-config... no
configure: error: PTLib must have pkg-config installed
解决办法:sudo apt-get install pkg-config
安装完成后,正常在/usr/bin目录下面,如果不在设置下该工具的环境变量即可
2.2. 问题:安装依赖库
2.1 configure: error: PTLib needs the GNU Project fast lexical analyzer generator flex
解决办法:sudo apt-get install flex
2.2 configure: error: PTLib needs the GNU Project parser generator bison
解决办法:sudo apt-get install bison
2.3. 编译:
./configure --prefix=/opt/ptlib
make
make install
2.4. 安装说明
bin/
ptlib-config -> ../share/ptlib/make/ptlib-config*
include/
ptbuildopts.h
ptclib/
ptlib/
ptlib.h
lib/
libpt_s.a
libpt.so
pkgconfig/
ptlib-2.10.9/
share/
ptlib/