Mac M1 ERROR: speex not found using pkg-config

来源:1-5 FFmpeg下载,编译与安装

煮剑_焚酒

2022-03-14

一个多星期了啊
ERROR: speex not found using pkg-config
ERROR: libx264 not found
ERROR: x265 not found using pkg-config

我下载 Homebrew 命令 安装这些库,安装完库重启电脑 还是报一样的错

图片描述

我在网上找方法,这样做 也不行啊

 ./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-filter=delogo --enable-debug --disable-optimizations --enable-libspeex --enable-videotoolbox --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --cc=clang --host-cflags= --host-ldflags= \
 --extra-ldflags="-L/opt/homebrew/Cellar/speex/1.2.0/lib -L/opt/homebrew/Cellar/x265/3.5/lib -L/opt/homebrew/Cellar/x264/r3060/lib " --extra-cflags="-I/opt/homebrew/Cellar/speex/1.2.0/include -I/opt/homebrew/Cellar/x265/3.5/include  -I/opt/homebrew/Cellar/x264/r3060/include"

图片描述

写回答

2回答

煮剑_焚酒

提问者

2022-03-15

//img.mukewang.com/szimg/62302f76080ebe8f11320222.jpg

$PKG_CONFIG_PATH  我配置了怎么还是不行啊

//img.mukewang.com/szimg/62302fc608ec929c11260498.jpg

0
0

李超

2022-03-14

课程讨论群里我回答你了吧?

0
2
李超
不知道你的环境砸弄的,把speex 这个库去掉吧
2022-03-18
共2条回复

经典再升级-FFmpeg5.0核心技术精讲,打造音视频播放器

学好FFmpeg核心技术,做高效,高薪,有竞争力的音视频工程师

2726 学习 · 814 问题

查看课程