在Mac上为Android构建VLC时出现“未知寄存器别名”错误

时间:2017-03-16 08:38:53

标签: android macos libvlc

我正在尝试在Mac上为Android构建VLC,但我收到了以下错误:

INSTALL libavformat/libavformat.a
{standard input}: Assembler messages:
{standard input}:146: Error: unknown register alias 'GP'
clang38: error: assembler command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libavcodec/arm/ac3dsp_armv6.o] Error 1
make[1]: *** Waiting for unfinished jobs....
{standard input}: Assembler messages:
{standard input}:446: Error: unknown register alias 'POUT'
{standard input}:448: Error: unknown register alias 'PIN'
{standard input}:450: Error: unknown register alias 'PCOEF'

有人告诉我应该修改.configure以禁用asm。我该怎么办?那不会破坏VLC的性能吗?

1 个答案:

答案 0 :(得分:1)

如何禁用asm: 1. vi vlc / contrib / src / ffmpeg / rules.mak 2.添加选项“disable-asm”

FYI

19 FFMPEGCONF = \
  20     --cc="$(CC)" \
  21     --pkg-config="$(PKG_CONFIG)" \
  22     --disable-doc \
  23     --disable-asm \
  24     --disable-encoder=vorbis \
  25     --disable-decoder=opus \
  26     --enable-libgsm \
  27     --enable-libopenjpeg \
  28     --disable-debug \
  29     --disable-avdevice \
  30     --disable-devices \
  31     --disable-avfilter \
  32     --disable-filters \
  33     --disable-protocol=concat \
  34     --disable-bsfs \
  35     --disable-bzlib \
  36     --disable-avresample
  37 
  38 ifdef USE_FFMPEG
  39 FFMPEGCONF += \
  40     --disable-swresample \
  41     --disable-iconv \
  42     --disable-avisynth \
  43     --disable-nvenc
  44 ifdef HAVE_DARWIN_OS
  45 FFMPEGCONF += \
 <rib/src/ffmpeg/rules.mak   CWD: ~/workspace/vlc-android   Line: 23
"vlc/contrib/src/ffmpeg/rules.mak" 239L, 4911C

19 FFMPEGCONF = \ 20 --cc="$(CC)" \ 21 --pkg-config="$(PKG_CONFIG)" \ 22 --disable-doc \ 23 --disable-asm \ 24 --disable-encoder=vorbis \ 25 --disable-decoder=opus \ 26 --enable-libgsm \ 27 --enable-libopenjpeg \ 28 --disable-debug \ 29 --disable-avdevice \ 30 --disable-devices \ 31 --disable-avfilter \ 32 --disable-filters \ 33 --disable-protocol=concat \ 34 --disable-bsfs \ 35 --disable-bzlib \ 36 --disable-avresample 37 38 ifdef USE_FFMPEG 39 FFMPEGCONF += \ 40 --disable-swresample \ 41 --disable-iconv \ 42 --disable-avisynth \ 43 --disable-nvenc 44 ifdef HAVE_DARWIN_OS 45 FFMPEGCONF += \ <rib/src/ffmpeg/rules.mak CWD: ~/workspace/vlc-android Line: 23 "vlc/contrib/src/ffmpeg/rules.mak" 239L, 4911C