从这里开始,我将按照给定的步骤安装-< https://github.com/meetecho/janus-gateway/tree/v0.6.0
在这里,我需要名为libsrtp的库,我遵循了与这里相同的步骤
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我的最后一行->出错了
make shared_library && sudo make install这是错误
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
发布于 2020-08-28 13:13:19
这看起来类似于一个堆栈过流问题,您要么需要降级OpenSSL (不容易),要么尝试较新版本的libstrp (看起来像v2.1.0+)。
https://askubuntu.com/questions/1270773
复制相似问题