Pjsip-ios Source Code Compilation

Source: Internet
Author: User

Official Document Https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone

Function

Features that can be implemented on the iphone:

    • Includes CoreAudio-based audio devices that support the built-in ILBC codec support built-in ILBC codec support for integrated ILBC codec video
      • Built-in/device echo Canceller
      • Output volume settings
      • Input delay settings
      • Output delay settings
    • Support for built-in ILBC encoders
    • Video

Compiling the environment

    • Xcode
    • Xcode command line, Apple Developer downloads and install

Prepare before compiling

1. Get the source code: Https://trac.pjsip.org/repos/wiki/Getting-Started/Download-Source

2. Introduction to Config_site.h, Official document: Https://trac.pjsip.org/repos/wiki/Getting-Started/Build-Preparation
Create a new Config_site.h file under source Engineering path PJLIB/INCLUDE/PJ, that is, the config_site.h path is pjlib/include/pj/config_site.h. Write the following code in the Config_site.h file that will activate the iphone-specific settings in config_site_sample.h.

#define Pj_config_iphone 1#include <pj/config_site_sample.h>

Compiling PJSIP

Command line, run the following command:

$ cd/path/to/your/pjsip/dir$./configure-iphone$ make dep && do clean && make

When you run the./configure-iphone, the error "-bash:./configure-iphone:/bin/bash^m:bad interpreter:no such file or directory", Workaround: $ vim configure-iphone, in the bottom mode, enter ": Set FF" to see if the format is UNIX, if not, continue typing ": Set Fileformat=unix" After executing input ": Wq".

Continue running $./configure-iphone, error "./configure-iphone:line 162:./aconfigure:permission denied", Workaround: Command line execution $ chmod +x./aconfigure, after completion, execute the $ again./configure-iphone

  

When you're done compiling, Xcode opens the project pjproject/pjsip-apps/src/pjsua/ios/ipjsua.xcodeproj

Pjsip-ios Source Code Compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.