在macOS 15.2(Sequoia)编译x265失败,求解决方案
在macOS 15.2(Sequoia)编译x265的问题求助
我尝试在macOS 15.2(Sequoia)系统上编译x265,按照维基上的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(2023年8月安装的macOS 13 Ventura)上成功编译x265,该版本信息如下:
% 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无法兼容x265编译?
内容的提问来源于stack exchange,提问作者William
相关产品推荐
相关产品推荐

