首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Makefile:110:目标'srtp/srtp.o‘的配方在设置libsrtp时失败

Makefile:110:目标'srtp/srtp.o‘的配方在设置libsrtp时失败
EN

Ask Ubuntu用户
提问于 2020-08-28 12:54:29
回答 1查看 542关注 0票数 1

从这里开始,我将按照给定的步骤安装-< https://github.com/meetecho/janus-gateway/tree/v0.6.0

在这里,我需要名为libsrtp的库,我遵循了与这里相同的步骤

代码语言:javascript
复制
wget https://github.com/cisco/libsrtp/archive/v1.5.4.tar.gz
tar xfv v1.5.4.tar.gz
cd libsrtp-1.5.4
./configure --prefix=/usr --enable-openssl
make shared_library && sudo make install

我的最后一行->出错了

代码语言:javascript
复制
make shared_library && sudo make install

这是错误

代码语言:javascript
复制
gcc -DHAVE_CONFIG_H -Icrypto/include -I./include -I./crypto/include -fPIC  -fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops  -c srtp/srtp.c -o srtp/srtp.o
In file included from crypto/include/prng.h:53:0,
                 from crypto/include/crypto_kernel.h:50,
                 from ./include/srtp_priv.h:58,
                 from srtp/srtp.c:46:
crypto/include/aes_icm_ossl.h:75:20: error: field ‘ctx’ has incomplete type
     EVP_CIPHER_CTX ctx;
                    ^~~
In file included from srtp/srtp.c:50:0:
crypto/include/aes_gcm_ossl.h:58:18: error: field ‘ctx’ has incomplete type
   EVP_CIPHER_CTX ctx;
                  ^~~
Makefile:110: recipe for target 'srtp/srtp.o' failed
make: *** [srtp/srtp.o] Error 1

我使用的是ubuntu 18.04 lts

EN

回答 1

Ask Ubuntu用户

发布于 2020-08-28 13:13:19

这看起来类似于一个堆栈过流问题,您要么需要降级OpenSSL (不容易),要么尝试较新版本的libstrp (看起来像v2.1.0+)。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1270773

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档