vlc-android 编译过程遇到的问题

http://blog.csdn.net/asircao/article/details/7734201
http://www.cnblogs.com/dwayne/archive/2012/12/21/vlc_android.html

我的编译环境:
Linux虚拟机
NDK r8e

 
编译过程中遇到问题:
1、
rl: (7) couldn't connect to host
make: *** [../../contrib/tarballs/libmpeg2-0.5.1.tar.gz] 错误 7
make: *** 正在删除文件“../../contrib/tarballs/libmpeg2-0.5.1.tar.gz”
解决访问:
http://www.linuxfromscratch.org/blfs/view/svn/multimedia/libmpeg2.html
 
2、
BUILD FAILED
/home/thinker/android/android/vlc-android/build.xml:91: Cannot find /home/thinker/android/android-sdk-linux/tools/ant/build.xml imported from /home/thinker/android/android/vlc-android/build.xml
 
Total time: 1 second
make: *** [vlc-android/bin/VLC-debug.apk] 错误 1
rm android-libs/libmedia.c android-libs/libutils.c android-libs/libstagefright.c android-libs/libbinder.c
 
问题原因是:
SDK中部分文件属性是root权限。
解决方案:
修改SDK的用户权限,修改为用户组就OK了。
 
终于编译成功了,嘿嘿……
BUILD SUCCESSFUL
Total time: 46 seconds
rm android-libs/libmedia.c android-libs/libutils.c android-libs/libstagefright.c android-libs/libbinder.c
Generating environment script.
This is a script that will export many of the variables used in this
script. It will allow you to compile parts of the build without having
to rebuild the entire build (e.g. recompile only the Java part).
 
To use it, include the script into your shell, like this:
    source env.sh
 
Now, you can use this command to build the Java portion:
    make -e
 
The file will be automatically regenerated by compile.sh, so if you change
your NDK/SDK locations or any build configurations, just re-run this
script (sh compile.sh) and it will automatically update the file.
 
测试网址:
http://pan.baidu.com/share/link?shareid=519081&uk=875286717

你可能感兴趣的:(vlc-android 编译过程遇到的问题)