debugly / ijkplayer

【持续更新】macOS/iOS video player based on ijkplayer, using FFmpeg 5.1, support Metal、hw accel、HDR、ass subtitle effect...
GNU General Public License v2.0
69 stars 14 forks source link

ERROR: opus not found using pkg-config #4

Closed tonightgarden closed 1 year ago

tonightgarden commented 1 year ago

尝试编译ios版本 git clone https://github.com/debugly/ijkplayer.git ijkplayer cd ijkplayer git checkout -B latest k0.9.4

cd shell ./init-any.sh ios cd ios build.docx 在执行./compile-any.sh build all 命令中build ffmpeg 阶段报这个错。 编译信息见word,有空请帮忙看一下(对ios不熟悉,不知是不是啥配置问题)

debugly commented 1 year ago

很奇怪,我这是OK的。 看样子是 pkg-config 找不到 opus.pc 文件 找到 shell/apple/do-compile/ffmpeg.sh 文件,在 172 行增加 pkg-config --libs opus 然后执行编译脚本,看下 [*] check opus 后面的日志输出内容吧。