About how to build PJSIP under linux environment

       PJSIP is a free and open source multimedia communication library written in C language  implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. It combines signaling protocol (SIP) with rich multimedia framework and NAT traversal functionality into high level API that is portable and suitable for almost any type of systems ranging from desktops, embedded systems, to mobile handsets.For example,PJSIP can be used as BlackBerry 10 platform's third-party components for VOIP protocol communication.

 

First, you must to install linux system on your PC,such as Ubuntu.


1、Run below command to install required tools if you don't have. (E.g. svn 、git、jdk、gcc)

        Command: sudo apt-get install git

                           sudo apt-get install subversion
  
                           sudo apt-get install g++

                           sudo apt-get  install  build-essential  

                           sudo apt-get build-dep fcitx

                           sudo apt-get install yum

2Use Browser to download BlackBerry IDE and SDK and install.

 

        Blackberry SDK version : 10.1.0.4828

      Note:Currently using this, if you use Blackberry SDK version 10.2 to build the PJSIP,the resource import

        will be error with missing  some package)


        Download URL :
http://developer.blackberry.com/native/downloads/

 

3Checkout PJSIP BB10 demo from below url

       Command:git clonehttps://github.com/bobcripps/bb10-pjsipdemo.git  
 

4 Get the PJSIP source


         Enter the path :  cdbb10-pjsipdemo\pjbuildscripts\ (Checkout after step 3)
 
         Command: ./getpjsource   (spend some time
 

5Change the file below

        Enter the path : cd pjsip-checkout/trunk/pjsip/include/pjsua-lib/
        File to change: vi  pjsua.h

        Enter :  Esc ,change to Command Model

        Input  :  /PJSUA_SDP_SESS_HAS_CONN

        Enter :  Enter, to searchPJSUA_SDP_SESS_HAS_CONN value

        Enter :  i , change to Insert Model, set the value of PJSUA_SDP_SESS_HAS_CONN to 1
        Enter :  Esc ,change to Command Model
        Input  : :wq , save and quite 

6Source the bbndk environment file
 
       Command: source $BBNDK_DIR/bbndk-env.sh     

       ($BBNDK_DIR means the SDK installation directory path,and you'd better run this in your BB10 NDK directory)
 
7Compile and build the sdkfiles
 
       Enter the path : cd bb10-pjsipdemo\pjbuildscripts
 
       Command: ./buildpjsip

8 Put the upzip of sdkfiles zip file
 
      Enter the path : cd \bb10-pjsipdemo\pjbuildscripts

      Command: ./createsdkoverlay
 
9the sdkfile.zip will be created in the bb10-pjsipdemo\pjbuildscripts when step 8 finished.

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值