我正在使用PJSIP库在Android上构建一个VOIP应用程序。
我试图启用OPUS编解码器,因为PJSIP版本2.5支持OPUS。
我遵循了下面的链接来配置PJSIP上的OPUS。
我将#define PJMEDIA_HAS_OPUS_CODEC 1
插入到config_site_sample.h文件中以启用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编解码器的实际过程是什么?
发布于 2016-07-21 10:17:32
您必须设置编译器标志--with-opus=[absolute-path-to]/opus-dev-lib
,如下所述:https://trac.pjsip.org/repos/ticket/1904
不要更改源代码中的静态变量。
https://stackoverflow.com/questions/37732347
复制相似问题