PJSIP-iOS源碼編譯

來源:互聯網
上載者:User

標籤:build   inter   highlight   har   AC   hone   blank   mon   文檔   

官方文檔https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone

 

功能

在iPhone上可以實現的功能:

  • 包含基於CoreAudio的音訊裝置,支援以下功能:支援內建的iLBC轉碼器支援內建的iLBC轉碼器支援內建的iLBC轉碼器視頻
    • 內建/裝置的回聲消除器
    • 輸出音量設定
    • 輸入延遲設定
    • 輸出延遲設定
  • 支援內建的iLBC編碼器
  • 視頻

 

 編譯環境

  • Xcode
  • Xcode命令列,Apple Developer Downloads並安裝

 

 編譯前準備

1. 擷取源碼,:https://trac.pjsip.org/repos/wiki/Getting-Started/Download-Source

2. 關於config_site.h的介紹,官方文檔:https://trac.pjsip.org/repos/wiki/Getting-Started/Build-Preparation
在源碼工程路徑pjlib/include/pj下建立config_site.h檔案,即config_site.h路徑為pjlib/include/pj/config_site.h。在config_site.h檔案中寫入以下代碼, 該檔案將啟用config_site_sample.h中的iPhone特定設定。

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

 

 編譯 PJSIP

 命令列運行以下命令:

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

 

運行./configure-iphone時,報錯"-bash: ./configure-iphone: /bin/bash^M: bad interpreter: No such file or directory",解決辦法:$ vim configure-iphone,底部模式下,輸入":set ff"查看格式是否是unix,如果不是,繼續輸入":set fileformat=unix"執行後輸入":wq"。

 

繼續運行 $ ./configure-iphone,報錯"./configure-iphone: line 162: ./aconfigure: Permission denied",解決辦法:命令列執行$ chmod +x ./aconfigure,完成後再次執行$ ./configure-iphone

  

 編譯完後,Xcode開啟工程pjproject/pjsip-apps/src/pjsua/ios/ipjsua.xcodeproj

  

PJSIP-iOS源碼編譯

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.