Macros

给我一支烟!请所有烦恼都能过往如云烟!

导航

VLC for android 编译

下载地址:

git clone https://code.videolan.org/videolan/vlc-android.git
cd vlc-android
sh compile.sh

sh compile.sh -a <ABI>
其中的可选值有:
* armeabi-v7a
* arm64-v8a
* x86
* x86_64
* MIPS
* MIPS64

vlc-android 编译过程中出现的问题:
问题描述:
1、编译FFmpeg 是出现:{standard input}:146: Error: unknown register alias 'GP'
解决:在vlc-android/vlc/contrib/src/ffmpeg/rules.mak中加入:--disable-asm
如:
FFMPEGCONF = \
--cc="$(CC)" \
--pkg-config="$(PKG_CONFIG)" \
--disable-doc \
--disable-asm \
--disable-encoder=vorbis \
--disable-decoder=opus \
.......

2、Can't exec "autopoint": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 345.
autoreconf: failed to run autopoint: No such file or directory
autoreconf: autopoint is needed because this package uses Gettext
先安装:brew install gettext 后,
修改 ~/.bash_profile:
加入一行 export PATH=${PATH}:/usr/local/opt/gettext/bin

3、 sha1sum: command not found
brew install md5sha1sum

4、Failed to find Build Tools revision 26.0.1
Error:(29, 3) 错误: 找不到符号
符号: 变量 O
位置: 类 VERSION_CODES
在Android Studio中安装26.0.1就可以了

posted on 2017-10-11 18:33  Macros  阅读(276)  评论(0)    收藏  举报