gpt4 book ai didi

linux - 在 Linux 中编译 x264 时出错

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:11:10 26 4
gpt4 key购买 nike

大家好我正在尝试在 linux (x64) 下编译 x264。但它一直给我一个错误。我用谷歌搜索但一无所获。这是命令行历史:

spin@around:~/x264$ git clone git://git.videolan.org/x264.gitCloning into x264...remote: Counting objects: 13539, done.remote: Compressing objects: 100% (4416/4416), done.remote: Total 13539 (delta 11005), reused 11225 (delta 9082)Receiving objects: 100% (13539/13539), 3.29 MiB | 2.79 MiB/s, done.Resolving deltas: 100% (11005/11005), done.spin@around:~/x264/x264$ ./configureFound no assemblerMinimum version is yasm-0.7.0If you really want to compile without asm, configure with --disable-asm.spin@around:~/x264/x264$ ./configure --disable-asmPlatform:   X86_64System:     LINUXasm:        noavs:        nolavf:       noffms:       nogpac:       nogpl:        yesthread:     posixfilters:    crop select_everydebug:      nogprof:      noPIC:        noshared:     novisualize:  nobit depth:  8You can run 'make' or 'make fprofiled' now.spin@around:~/x264/x264$ makegcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -s -fomit-frame-pointer -fno-tree-vectorize   -c -o x264.o x264.cIn file included from common/common.h:864,                 from x264.c:33:common/rectangle.h: In function āx264_macroblock_cache_rectā:common/rectangle.h:84: error: āv4siā undeclared (first use in this function)common/rectangle.h:84: error: (Each undeclared identifier is reported only oncecommon/rectangle.h:84: error: for each function it appears in.)common/rectangle.h:84: error: expected ā;ā before āv16ācommon/rectangle.h:86: error: ā__m128ā undeclared (first use in this function)common/rectangle.h:86: error: expected ā;ā before āv16ācommon/rectangle.h:87: error: expected ā;ā before āv16ācommon/rectangle.h:89: error: expected ā;ā before āv16ācommon/rectangle.h:90: error: expected ā;ā before āv16āmake: *** [x264.o] Error 1spin@around:~/x264/x264$

这是文件,从第 83 行到第 91 行:

#if HAVE_VECTOREXT && defined(__SSE__)        v4si v16 = {v,v,v,v};        M128( d+s*0+0 ) = (__m128)v16;        M128( d+s*1+0 ) = (__m128)v16;        if( h == 2 ) return;        M128( d+s*2+0 ) = (__m128)v16;        M128( d+s*3+0 ) = (__m128)v16;#else

最佳答案

v4si 是一个 SSE 标识符,它只在 -msse 传递给 gcc 时存在。向上游报告错误。

关于linux - 在 Linux 中编译 x264 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5667045/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com