SRS编译arm版本出错 ERROR: opus not found using pkg-config

编译到ffmpeg提示

If you think configure made a mistake, make sure you are using the latest

version from Git. If the latest version fails, report the problem to the

ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.

Include the log file "ffbuild/config.log " produced by configure as this will help

solve the problem.

Build ffmpeg-4-fit failed, ret=1

我查看了srs-develop/trunk/objs/Platform-SRS7-Linux-5.10.160-GCC11.4.0-aarch64/ffmpeg-4-fit/ffbuild/config.log这个文件里面有问题,里面出现了中文乱码

bash 复制代码
check_func_headers opus_multistream.h opus_multistream_decoder_create -I/root/\æ\¡\Œ\é\\¢/srs-develop/trunk/objs/Platform-SRS7-Linux-5.10.160-GCC11.4.0-aarch64/3rdparty/opus/include/opus -L/root/\æ\¡\Œ\é\\¢/srs-develop/trunk/objs/Platform-SRS7-Linux-5.10.160-GCC11.4.0-aarch64/3rdparty/opus/lib -lopus -lm
test_ld cc -I/root/\æ\¡\Œ\é\\¢/srs-develop/trunk/objs/Platform-SRS7-Linux-5.10.160-GCC11.4.0-aarch64/3rdparty/opus/include/opus -L/root/\æ\¡\Œ\é\\¢/srs-develop/trunk/objs/Platform-SRS7-Linux-5.10.160-GCC11.4.0-aarch64/3rdparty/opus/lib -lopus -lm
test_cc -I/root/\æ\¡\Œ\é\\¢/srs-develop/trunk/objs/Platform-SRS7-Linux-5.10.160-GCC11.4.0-aarch64/3rdparty/opus/include/opus -L/root/\æ\¡\Œ\é\\¢/srs-develop/trunk/objs/Platform-SRS7-Linux-5.10.160-GCC11.4.0-aarch64/3rdparty/opus/lib
BEGIN /tmp/ffconf.34T5YJC6/test.c
    1	#include <opus_multistream.h>
    2	#include <stdint.h>
    3	long check_opus_multistream_decoder_create(void) { return (long) opus_multistream_decoder_create; }
    4	int main(void) { int ret = 0;
    5	 ret |= ((intptr_t)check_opus_multistream_decoder_create) & 0xFFFF;
    6	return ret; }
END /tmp/ffconf.34T5YJC6/test.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -std=c11 -fomit-frame-pointer -fPIC -pthread -I/root/\æ\¡\Œ\é\\¢/srs-develop/trunk/objs/Platform-SRS7-Linux-5.10.160-GCC11.4.0-aarch64/3rdparty/opus/include/opus -L/root/\æ\¡\Œ\é\\¢/srs-develop/trunk/objs/Platform-SRS7-Linux-5.10.160-GCC11.4.0-aarch64/3rdparty/opus/lib -c -o /tmp/ffconf.34T5YJC6/test.o /tmp/ffconf.34T5YJC6/test.c
/tmp/ffconf.34T5YJC6/test.c:1:10: fatal error: opus_multistream.h: No such file or directory
    1 | #include <opus_multistream.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
ERROR: opus not found using pkg-config

解决办法,注意srs源码所在的文件不要有中文,重新下载 源码文件放到其他地方重新编译解决

相关推荐
CinzWS13 小时前
A53 FPGA原型验证:从RTL到可运行系统的挑战
arm开发·嵌入式·芯片验证·原型验证·a53
AI服务老曹14 小时前
深度解析:支持 GB28181/RTSP 及异构计算(X86/ARM+GPU/NPU)的 AI 视频管理平台架构方案(附源码交付与 Docker 部署)
arm开发·人工智能·音视频
2302_8138062214 小时前
基础环境篇 – 交叉编译环境搭建与NFS服务配置
arm开发
极创信息14 小时前
信创领域五种主流CPU架构(X86 / ARM / RISC-V / MIPS / LoongArch)
java·arm开发·数据库·spring boot·mysql·软件工程·risc-v
AI服务老曹15 小时前
节省95%开发成本:支持X86/ARM与GPU/NPU异构部署的AI视频云网关架构深度解析
arm开发·人工智能·音视频
徐某人..1 天前
基于i.MX6ULL平台的智能网关系统开发
arm开发·c++·单片机·qt·物联网·学习·arm
2035去旅行1 天前
嵌入式开发,如何选择C标准库
linux·arm开发
进击的小头1 天前
20_第20篇:嵌入式外设驱动开发基础:寄存器级开发与库函数开发对比实战
arm开发·驱动开发·单片机
AI服务老曹1 天前
架构实战:如何构建支持X86/ARM及异构GPU/NPU的跨平台企业级AI视频管理系统?
arm开发·人工智能·架构
ai产品老杨2 天前
【架构深研】如何构建兼容X86/ARM与异构算力的AI视频中台?基于GB28181与边缘计算的源码交付实践
arm开发·人工智能·架构