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

[email protected] 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源码所在的文件不要有中文,重新下载 源码文件放到其他地方重新编译解决

相关推荐
亿道电子Emdoor6 小时前
【ARM】MDK如何将变量存储到指定内存地址
arm开发·stm32·单片机
nuoyigui98898 小时前
keil 解决 Error: CreateProcess failed, Command: ‘XXX\ARM\ARMCC\bin\fromelf.exe
arm开发
charlie11451419121 小时前
基于Qt6 + MuPDF在 Arm IMX6ULL运行的PDF浏览器——MuPDF Adapter文档
arm开发·qt·学习·pdf·教程·设计·qt6
MaoXian_n1 天前
[IMX] 03.时钟树 - Clock Tree
arm开发·驱动开发·单片机·嵌入式硬件
2401_859049081 天前
MSPM0--Timer(一口一口喂版)
arm开发·单片机·mcu·算法
田园诗人之园1 天前
ARM A64 LDR指令
arm开发·arm a64 ldr指令
CloudPilotAI2 天前
“海外滴滴”Uber的Arm迁移实录:重构大规模基础设施
arm开发·架构·arm
szxinmai主板定制专家3 天前
基于TI AM6442+FPGA解决方案,支持6网口,4路CAN,8个串口
arm开发·人工智能·fpga开发
7yewh3 天前
FPGA前瞻篇-计数器设计与实现实例
arm开发·驱动开发·嵌入式硬件·fpga开发·硬件架构·硬件工程·精益工程
紫金修道4 天前
【Linux】在Arm服务器源码编译onnxruntime-gpu的whl
linux·服务器·arm开发