2016-06-09 34 views
3

我正在使用PJSIP庫在Android上構建VOIP應用程序。在Android上使用PJSIP 2.5.1啓用並配置OPUS編解碼器

我試圖啓用OPUS編解碼器,因爲OPUS在v2.5中支持PJSIP。

我遵循以下link在PJSIP上配置OPUS。

我在config_site_sample.h文件中插入#define PJMEDIA_HAS_OPUS_CODEC 1以啓用OPUS編解碼器。

但是,當我試圖建立PJSIP,我收到以下錯誤

../src/pjmedia-codec/opus.c:31:23: fatal error: opus/opus.h: No such file or directory 
#include <opus/opus.h> 
        ^
compilation terminated. 

難道我做錯了什麼?在PJSIP中啓用OPUS編解碼器的實際步驟是什麼?

回答

2

你必須設置編譯器標誌--with-opus=[absolute-path-to]/opus-dev-lib喜歡這裏描述:https://trac.pjsip.org/repos/ticket/1904

不要改變靜態變量在源代碼中。

+0

感謝您的回覆。我會嘗試它並更新你的相同。 –

+0

我遵循了這些步驟,並在pjsip 2.5.1構建過程中遇到以下錯誤。我正在使用opus-1.1.3。 –

+0

jni /../ celt/entcode.h:112:error:未定義引用'__clzsi2' jni /../ src/opus_decoder.c:412:錯誤:未定義引用'__clzsi2' jni /../ src/opus_decoder.c:815:error:undefined reference to'__gnu_thumb1_case_sqi' jni /../ celt/mathops.h:151:error:undefined reference to'__clzsi2' jni /../ celt/kiss_fft.c: 548:錯誤:未定義的引用 '__gnu_thumb1_case_uhi' JNI /../絲/ Inlines.h:123:錯誤:未定義的引用 '__aeabi_lmul' collect2:錯誤:LD返回1退出狀態 –