[英]Unclear compile error for mpd with ffmpeg on Mac arm64 architecture (M1)
I tried to compile (and install) mpd via brew with brew reinstall --build-from-source mpd
but ffmpeg seems to have some error with the arm64 architecture as the error states:我尝试使用
brew reinstall --build-from-source mpd
通过 brew 编译(和安装)mpd 但 ffmpeg 似乎与 arm64 架构有一些错误,因为错误状态:
Undefined symbols for architecture arm64:
"av_free(void*)", referenced from:
AvioStream::~AvioStream() in libdecoder_plugins.a(FfmpegIo.cxx.o)
"av_malloc(unsigned long)", referenced from:
AvioStream::Open() in libdecoder_plugins.a(FfmpegIo.cxx.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I reinstalled ffmpeg (and even it build from source) to make sure it built the arm64 version.我重新安装了 ffmpeg(甚至它是从源代码构建的)以确保它构建了 arm64 版本。 Can anyone help me out, about what could be problem?
谁能帮帮我,可能是什么问题?
With an update to 0.28.1 the dependency I could successfully compile it.通过更新到 0.28.1 的依赖项,我可以成功编译它。 According to the change logs of the succeeding version 0.29 a build bug has been fixed for macOS: https://raw.githubusercontent.com/MusicPlayerDaemon/MPD/v0.23.9/NEWS
根据后续版本 0.29 的更改日志,修复了 macOS 的构建错误: https://raw.githubusercontent.com/MusicPlayerDaemon/MPD/v0.23.9/NEWS
I assume this has been fixed with the commit https://github.com/MusicPlayerDaemon/MPD/commit/59792cb0b801854ee41be72d33db9542735df754 and the related update of the ffmpeg dependency to version 5.1.我认为这已通过提交https://github.com/MusicPlayerDaemon/MPD/commit/59792cb0b801854ee41be72d33db9542735df754和 Z7BED46C5C61C0AC625CEBF8A992.2 依赖项版本的相关更新得到修复
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.