系统环境:centos 6.5 64位
pjsip版本:2.5
官方文档:https://trac.pjsip.org/repos/wiki/Getting-Started/Autoconf
步骤:
chmod -R 777 pjproject-2.5
cd pjproject-2.5
./configure –disable-libyuv –disable-sound –disable-ffmpeg
#此处禁用了音视频
make dep
make
make install
编译时禁用一些不用的功能,可以减少错误,如视频通话等功能不用可以禁止。
Optional Features:
–disable-floating-point Disable floating point where possible
–disable-sound Exclude sound (i.e. use null sound)
–disable-small-filter Exclude small filter in resampling
–disable-large-filter Exclude large filter in resampling
–disable-g711-plc Exclude G.711 Annex A PLC
–disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
–disable-g711-codec Exclude G.711 codecs from the build
–disable-l16-codec Exclude Linear/L16 codec family from the build
–disable-gsm-codec Exclude GSM codec in the build
–disable-speex-codec Exclude Speex codecs in the build
–disable-ilbc-codec Exclude iLBC codec in the build
–disable-ssl Force excluding TLS support (default is autodetected based on OpenSSL availability)
–disable-sdl Disable SDL (default: not disabled)
–disable-ffmpeg Disable ffmpeg (default: not disabled)
–disable-v4l2 Disable Video4Linux2 (default: not disabled)
–disable-openh264 Disable OpenH264 (default: not disabled)
–disable-libyuv Exclude libyuv in the build
编译pjsua java python库:
参照文章:http://www.geekapp.cn/archives/475.html