Ijkplayer: 编译armv7 error

Created on 17 Apr 2018  ·  6Comments  ·  Source: bilibili/ijkplayer

大家好,在./compile-ffmpeg.sh all时,出现下面的错误:


[*] configurate ffmpeg


[*] check OpenSSL


[*] configure

reuse configure


[*] compile ffmpeg

AS libavcodec/arm/aacpsdsp_neon.o
AS libavcodec/arm/ac3dsp_armv6.o
AS libavcodec/arm/ac3dsp_arm.o
./libavutil/arm/asm.S:50:9: ./libavutil/arm/asm.Serror: :50:unknown directive9:
./libavutil/arm/asm.S:error: 50: 9unknown directive :
error: unknown directive
. a r c h. a ar rc mh v 7a.-raamr
vc7h - aa
r m v 7 - a^

 ^ 
 ^

make: * [libavcodec/arm/ac3dsp_arm.o] Error 1
make:
Waiting for unfinished jobs....
make:
[libavcodec/arm/ac3dsp_armv6.o] Error 1
make: *
[libavcodec/arm/aacpsdsp_neon.o] Error 1

查看别人说的,是去掉armv7,之后就可以解决这个问题。但是我不想remove armv7,请问该如何解决呢?请问大家遇到这个问题了吗?

期待大家的回复!!!

Most helpful comment

do-compile-ffmeg.sh

`
CC="xcrun -sdk $FF_XCRUN_SDK clang"

if [ "$ARCH" = "arm64" ]
then
AS="gas-preprocessor.pl -arch aarch64 -- $CC"
else
AS="gas-preprocessor.pl -- $CC"
fi

cd $FF_BUILD_SOURCE
if [ -f "./config.h" ]; then
echo 'reuse configure'
else
echo "config: $FFMPEG_CFG_FLAGS $FF_XCRUN_CC"
./configure \
$FFMPEG_CFG_FLAGS \
--cc="$FF_XCRUN_CC" \
--as="$AS" \
$FFMPEG_CFG_CPU \
--extra-cflags="$FFMPEG_CFLAGS" \
--extra-cxxflags="$FFMPEG_CFLAGS" \
--extra-ldflags="$FFMPEG_LDFLAGS $FFMPEG_DEP_LIBS"
make clean
fi
`

All 6 comments

xcode降版本

问题解决了吗?xcode用那个版本可以呢?

降版本?不会吧

Xcode降版本也不可以的。我使用Xcode7和Xcode8都不行。😓

do-compile-ffmeg.sh

`
CC="xcrun -sdk $FF_XCRUN_SDK clang"

if [ "$ARCH" = "arm64" ]
then
AS="gas-preprocessor.pl -arch aarch64 -- $CC"
else
AS="gas-preprocessor.pl -- $CC"
fi

cd $FF_BUILD_SOURCE
if [ -f "./config.h" ]; then
echo 'reuse configure'
else
echo "config: $FFMPEG_CFG_FLAGS $FF_XCRUN_CC"
./configure \
$FFMPEG_CFG_FLAGS \
--cc="$FF_XCRUN_CC" \
--as="$AS" \
$FFMPEG_CFG_CPU \
--extra-cflags="$FFMPEG_CFLAGS" \
--extra-cxxflags="$FFMPEG_CFLAGS" \
--extra-ldflags="$FFMPEG_LDFLAGS $FFMPEG_DEP_LIBS"
make clean
fi
`

works with following changes.

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FloridaStream picture FloridaStream  ·  3Comments

launam picture launam  ·  3Comments

xiaogu-space picture xiaogu-space  ·  3Comments

xuluming picture xuluming  ·  4Comments

zhangkom picture zhangkom  ·  3Comments