我正在尝试在 macOS 15.2 (Sequoia) 上构建 x265。我按照 wiki 上的 Linux 说明操作,但失败了(CMake 版本 3.31.4):
linux % make
[ 1%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/pixel-a.asm.o
[ 2%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/const-a.asm.o
[ 3%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/cpu-a.asm.o
/x265_git/source/common/x86/cpu-a.asm:181: error: symbol `..plt' not defined
/x265_git/source/common/../common/x86/x86inc.asm:1095: ... from macro `call' defined here
make[2]: *** [common/CMakeFiles/common.dir/x86/cpu-a.asm.o] Error 1
make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
make: *** [all] Error 2
我尝试运行build/xcode/make-project.sh
,但也失败了:
-- Configuring done (25.6s)
CMake Error in CMakeLists.txt:
The custom command generating
/x265_git/build/xcode/pixel-a.asm.o
is attached to multiple targets:
cli
x265-static
x265-shared
but none of these is a common dependency of the other(s). This is not
allowed by the Xcode "new build system".
-- Generating done (0.0s)
CMake Generate step failed. Build files cannot be regenerated correctly.
我已经在旧版本的 macOS 上成功构建了 x265。我在 2023 年 8 月安装的 macOS 13 (Ventura) 版本显示:
% x265 --version
x265 [info]: HEVC encoder version 3.5+103-8f18e3ad3
x265 [info]: build info [Mac OS X][clang 14.0.3][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
这完全超出了我的技术专长水平。我能做些什么来让它工作吗?还是说在这个版本的 macOS (15.2 Sequoia) 上根本无法实现?