Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 2 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License along
with this program. If not, see http://www.gnu.org/licenses/.
Getting Started: Building and Using PJSIP and PJMEDIA
[Last Update: $Date: 2007-02-02 20:42:44 +0000 (Fri, 02 Feb 2007) $]
Print Friendly Page
_________________________________________________________________
This article describes how to download, customize, build, and use the open
source PJSIP and PJMEDIA SIP and media stack. The online (and HTML) version
of this file can be downloaded from http://www.pjsip.org/using.htm
Quick Info
_________________________________________________________________
Building with GNU tools (Linux, *BSD, MacOS X, mingw, etc.)
Generally these should be all that are needed to build the libraries,
applications, and samples:
$ ./configure
$ make dep && make clean && make
Building Win32 Target with Microsoft Visual Studio
Generally we can just do these steps:
1. Visual Studio 6: open pjproject.dsw workspace,
2. Visual Studio 2005: open pjproject-vs8.sln solution,
3. Create an empty pjlib/include/pj/config_site.h, and
4. build the pjsua application.
Building for Windows Mobile
Generally these are all that are needed:
1. Open pjsip-apps/build/wince-evc4/wince_demos.vcw EVC4 workspace,
2. Create an empty pjlib/include/pj/config_site.h, and
3. build the pjsua_wince application.
Invoking Older Build System (e.g. for RTEMS)
Generally these should be all that are needed to build the libraries,
applications, and samples:
$ ./configure-legacy
$ make dep && make clean && make
Locating Output Binaries/Libraries
Libraries will be put in lib directory, and binaries will be put in
bin directory, under each projects.
Running the Applications
After successful build, you can try running pjsua application on
pjsip-apps/bin directory. PJSUA manual can be found in
http://www.pjsip.org/pjsua.htm page.
Table of Contents:
_________________________________________________________________
1. Getting the Source Distribution
1.1 Getting the Release tarball
1.2 Getting from Subversion trunk
1.3 Source Directories Layout
2. Build Preparation
2.1 config_site.h file
2.2 Disk Space Requirements
3. Building Linux, *nix, *BSD, and MacOS X Targets with GNU Build
Systems
3.1 Supported Targets
3.2 Requirements
3.3 Running configure
3.4 Running make
3.5 Cross Compilation
3.6 Build Customizations
4. Building for Windows Targets with Microsoft Visual Studio
4.1 Requirements
4.2 Building the Projects
4.3 Debugging the Sample Application
5. Building for Windows Mobile Targets (Windows CE/WinCE/PDA/SmartPhone)
5.1 Requirements
5.2 Building the Projects
6. Older PJLIB Build System for Non-Autoconf Targets (e.g. RTEMS)
6.1 Supported Targets
6.2 Invoking the Build System
7. Running the Applications
7.1 pjsua
7.2 Sample Applications
7.3 pjlib-test
7.4 pjsip-test
8. Using PJPROJECT with Applications
Appendix I: Common Problems/Frequently Asked Question (FAQ)
I.1 fatal error C1083: Cannot open include file: 'pj/config_site.h':
No such file or directory
1. Getting the Source Code Distribution
_________________________________________________________________
All libraries (PJLIB, PJLIB-UTIL, PJSIP, PJMEDIA, and PJMEDIA-CODEC) are
currently distributed under a single source tree, collectively named as
PJPROJECT or just PJ libraries. These libraries can be obtained by either
downloading the release tarball or getting them from the Subversion trunk.
1.1 Getting the Release tarball
_________________________________________________________________
Getting the released tarball is a convenient way to obtain stable version of
PJPROJECT. The tarball may not contain the latest features or bug-fixes, but
normally it is considered more stable as each will be tested more rigorously
before released.
The latest released tarball can be downloaded from the
http://www.pjsip.org/download.htm.
1.2 Getting from Subversion trunk
_________________________________________________________________
PJPROJECT Subversion repository will always contain the latest/most
up-to-date version of the sources. Normally the Subversion repository is
always kept in a "good" state. However, there's always a chance that things
break and the tree doesn't build correctly (particularly for the
"not-so-popular" targets), so please consult the mailing list should there
be any problems.
Using Subversion also has benefits of keeping the local copy of the source
up to date with the main PJ source tree and to easily track the changes made
to the local copy, if any.
What is Subversion
Subversion (SVN) is Open Source version control system similar to CVS.
Subversion homepage is in http://subversion.tigris.org/
Getting Subversion Client
A Subversion (SVN) client is needed to download the PJ source files from
pjsip.org SVN tree. SVN client binaries can be downloaded from
http://subversion.tigris.org/, and the program should be available for
Windows, Linux, MacOS X, and many more platforms.
Getting the Source for The First Time
Once Subversion client is installed, we can use these commands to initially
retrieve the latest sources from the Subversion trunk:
$ svn co http://svn.pjproject.net/repos/pjproject/trunk pjproject
$ cd pjproject
Keeping The Local Copy Up-to-Date
Once sources have been downloaded, we can keep the local copy up to date by
periodically synchronizing the local source with the latest revision from
the PJ's Subversion trunk. The mailing list provides best source of
information about the availability of new updates in the trunk.
To update the local copy with the latest changes in the main PJ's
repository:
$ cd pjproject
$ svn update
Tracking Local and Remote Changes
To see what files have been changed locally:
$ cd pjproject
$ svn status
The above command only compares local file against the original local copy,
so it doesn't require Internet connection while performing the check.
To see both what files have been changed locally and what files have been
updated in the PJ's Subversion repository:
$ cd pjproject
$ svn status -u
Note that this command requires active Internet connection to query the
status of PJPROJECT's source repository.
1.3 Source Directories Layout
_________________________________________________________________
Top-Level Directory Layout
The top-level directories (denoted as $TOP here) in the source distribution
contains the following sub-directories:
$TOP/build
Contains make
没有合适的资源?快使用搜索试试~ 我知道了~
pjsip 2.4协议栈
共2000个文件
c:659个
h:530个
py:251个
需积分: 18 11 下载量 14 浏览量
2015-05-04
15:26:31
上传
评论
收藏 7.16MB ZIP 举报
温馨提示
最新版pjsip 2.4,pjsip开源软件,该协议栈适合于sip初学者。
资源推荐
资源详情
资源评论
收起资源包目录
pjsip 2.4协议栈 (2000个子文件)
toast.1 4KB
bitter.1 2KB
gsm_option.3 5KB
gsm.3 3KB
gsm_print.3 2KB
gsm_explode.3 1KB
aconfigure.ac 55KB
aconfigure 270KB
AUTHORS 520B
make.bat 5KB
starttest_sample.bat 1KB
fixdir.bat 468B
ABLD.BAT 350B
00.bat 251B
fixfile.bat 217B
svn_pset.bat 155B
01.bat 138B
svn_add.bat 122B
pjsua.bmp 43KB
pjsua.bmp 12KB
list_icon.bmp 2KB
mark_icon.bmp 2KB
list_icon_mask.bmp 294B
mark_icon_mask.bmp 166B
alaw_ulaw_table.c 191KB
py_pjsua.c 158KB
pa_win_wmme.c 152KB
sip_inv.c 143KB
pjsua_call.c 140KB
pa_linux_alsa.c 132KB
pa_linux_asihpi.c 121KB
_pjsua.c 118KB
pa_win_wdmks.c 108KB
pjsua_acc.c 105KB
pa_win_ds.c 97KB
pa_mac_core.c 96KB
sip_transaction.c 96KB
pjsua_media.c 92KB
pjsua_app_cli.c 90KB
ice_session.c 90KB
mips_test.c 90KB
basic_op.c 89KB
pjsua_core.c 84KB
stream.c 82KB
aes.c 81KB
ssl_sock_ossl.c 75KB
stun_msg.c 70KB
pa_unix_oss.c 69KB
pjsua_app_config.c 69KB
sip_parser.c 68KB
pa_converters.c 68KB
pjsua_pres.c 67KB
pa_process.c 65KB
sip_dialog.c 63KB
pa_jack.c 63KB
sip_msg.c 63KB
nb_celp.c 62KB
pjsua_aud.c 61KB
pjsua_vid.c 61KB
sip_transport.c 60KB
sip_util.c 59KB
pjsua_app.c 59KB
conference.c 59KB
vid_stream.c 58KB
evsub.c 58KB
msg_test.c 56KB
siprtp.c 55KB
pa_front.c 55KB
turn_session.c 55KB
transport_ice.c 55KB
srtp.c 54KB
sip_transport_tls.c 54KB
ffmpeg_vid_codecs.c 53KB
http_client.c 52KB
transport_srtp.c 51KB
pjsua_app_legacy.c 50KB
cli_telnet.c 50KB
pjsip-perf.c 50KB
ice_strans.c 49KB
ipp_codecs.c 49KB
tsx_uas_test.c 48KB
resolver.c 48KB
sdp_neg.c 48KB
sb_celp.c 47KB
sdp_neg_test.c 47KB
sip_transport_tcp.c 46KB
os_core_unix.c 45KB
toast_ulaw.c 44KB
sdl_dev.c 44KB
huff_tab.c 43KB
conf_switch.c 43KB
wmme_dev.c 43KB
preprocess.c 42KB
stun_session.c 42KB
srtp_driver.c 42KB
sip_reg.c 41KB
resample.c 41KB
tsx_uac_test.c 41KB
sdp.c 40KB
pa_x86_plain_converters.c 40KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
qq_27008253
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功