About how to build PJSIP under linux environment
2014-11-19 15:25
435 查看
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
2、Use
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/
3、Checkout 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)
5、Change 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
6、Source 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)
7、Compile 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
9、the sdkfile.zip will be created in the bb10-pjsipdemo\pjbuildscripts when step 8 finished.
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
2、Use
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/
3、Checkout 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)
5、Change 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
6、Source 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)
7、Compile 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
9、the sdkfile.zip will be created in the bb10-pjsipdemo\pjbuildscripts when step 8 finished.
相关文章推荐
- How to Set up Cplex Dev Environment under Linux
- [Notes] Demo -- The practice about how to using SAP XI components to build up the mapping bridge cross the application layer
- How to build the environment of MSYS for the crossing compiler?
- How to build DHCP&NTP server on Linux(Ubuntu)
- How to install amp environment under FreeBSD
- how to build QOCI (for linux and windows)
- How to mount remote windows partition (windows share) under Linux
- How to Build Linux Kernels
- How To Check and Use Serial Ports Under Linux
- how to debug MudOS under linux
- HOWTO build arm-linux toolchain for ARM/XSCALE
- How to build and install Open vSwitch on a linux
- How to build embedded developing environment (PC side)
- How to build DHCP&NTP server on Linux(Ubuntu)
- HOWTO build arm-linux toolchain for ARM/XSCALE
- QT4: how to build QOCI (for linux and windows)
- How to build the environment of MSYS in the windows?
- How to build and install Open vSwitch on a linux
- How to run scripts under Linux
- How to build and run ARM Linux on QEMU from scratch