简体   繁体   English

在 Mac arm64 架构 (M1) 上使用 ffmpeg 的 mpd 编译错误不清楚

[英]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.

相关问题 架构 arm64 的未定义符号:m1 mac - Undefined symbols for architecture arm64: m1 mac cmake 在 Mac 上使用 ARM M1 正在运行 linker 使用 x86_64 架构而不是 arm64 - cmake on Mac with ARM M1 is running linker with x86_64 architecture instead of arm64 如何解决 M1 Mac 中的“未找到架构 arm64 的符号” - How to solve the "symbol(s) not found for architecture arm64" in M1 Mac “架构 arm64 的未定义符号”使用 g++-12 在 M1 mac 上构建基本 SFML 项目 - "Undefined symbols for architecture arm64" building basic SFML project on M1 mac with g++-12 OpenCV C++ 在 Macbook M1 芯片中给出架构 arm64 错误 - OpenCV C++ give architecture arm64 error in Macbook M1 chip 在 M1 Mac 上从 C++ 链接到 curl - arm64 的未定义符号 - Linking to curl from C++ on M1 Mac - undefined symbols for arm64 获取架构 arm64 错误的未定义符号 - Getting undefined symbols for architecture arm64 error SDL2 M1 Mac - 链接和嵌入式框架“SDL2_image.framework”缺少此目标所需的一个或多个架构:arm64 - SDL2 M1 Mac - The linked and embedded framework 'SDL2_image.framework' is missing one or more architectures required by this target: arm64 C++ 找不到 arm64 的 Boost 库符号 | M1 笔记本电脑 - C++ Boost Library Symbols not found for arm64 | M1 Macbook MacOS 中架构 arm64 的未定义符号 - Undefined symbols for architecture arm64 in MacOS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM