1.vlc for android? 已经发布了,开源的地址是:
?
http://wiki.videolan.org/AndroidCompile
?
这里面有详细的使用说明,
?
其中源码获取是:
?
git clone git://git.videolan.org/vlc-ports/android.git
?
再次感谢git这个伟大的工具。
?
?
2.源码编译:
?
? ????? 最新版的源码编译已经简化多了,不用从网上找pdf的文档了,那个已经不适用了。只要按照wiki上的说明操作即可。
?
运行到:
?
??????? sh compile.sh
?
之后会出现:
?
[email protected]:~/vlc_android/android$ sh compile.sh
For an ARMv6 device without FPU, you need a build without FPU:
$ export NO_FPU=1
For an ARMv5 device or the Android emulator, you need an ARMv5 build:
$ export NO_ARMV6=1
If you plan to use a release build, run 'compile.sh release'
VLC source not found, cloning
Cloning into 'vlc'...
remote: Counting objects: 389435, done.
remote: Compressing objects: 100% (77835/77835), done.
?
接下来会下载vlc的源码文件,就会在原有的git下载的目录下,再新建一个vlc的文件夹里面。估计是按照文档里面不同的编译
?
配置选项下载的不同的vlc的源码。比如,arm5或7,NEON和NONEON,等等。下载约202MB的东西。
?
编译过程输出:
?
Switched to a new branch 'android'Applying the patchesApplying: libavcodec: add NEON runtime autodetectionApplying: libvlc: add language and frame rate to libvlc_media_track_info_tBuilding the contribsGuessing build system... x86_64-linux-gnuCreating configuration file... config.makBootstrap completed.Run "make" to start compilation.Other targets: * make install same as "make" * make prebuilt fetch and install prebuilt binaries * make list list packages * make fetch fetch required source tarballs * make fetch-all fetch all source tarballs * make distclean clean everything and undo bootstrap * make mostlyclean clean everything except source tarballs * make clean clean everything * make package prepare prebuilt packagescurl -f -L -- "http://downloads.videolan.org/pub/videolan/testing/contrib/a52dec-0.7.4.tar.gz" > "../../contrib/tarballs/a52dec-0.7.4.tar.gz" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 235k 100 235k 0 0 9905 0 0:00:24 0:00:24 --:--:-- 18338grep -- " a52dec-0.7.4.tar.gz$" "../../contrib/src/a52/SHA512SUMS" && (cd ../../contrib/tarballs && sha512sum --check /dev/stdin) < "../../contrib/src/a52/SHA512SUMS"4b26fe9492f218b775fb190b76ecf06edaeb656adfe6dcbd24d0a0f86871c3ba917edb88a398eb12dccedaa1605b6f0a0be06b09f9fddd9a46e457b7dd244848 a52dec-0.7.4.tar.gza52dec-0.7.4.tar.gz: OKtouch .sum-a52curl -f -L -- "http://libass.googlecode.com/files/libass-0.10.1.tar.gz" > "../../contrib/tarballs/libass-0.10.1.tar.gz" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 368k 100 368k 0 0 20113 0 0:00:18 0:00:18 --:--:-- 15260grep -- " libass-0.10.1.tar.gz$" "../../contrib/src/ass/SHA512SUMS" && (cd ../../contrib/tarballs && sha512sum --check /dev/stdin) < "../../contrib/src/ass/SHA512SUMS"531b48a173f4d7bc50ea443ff71c8fe5c1287e8563c44a5dbf72b0a9e5fb16570fe2285ad2bac8ccdada6e6d195b4f451b1036dca17f2aa6de5803e8946cb9a3 libass-0.10.1.tar.gzlibass-0.10.1.tar.gz: OKtouch .sum-asscurl -f -L -- "http://downloads.videolan.org/pub/videolan/libdca/0.0.5/libdca-0.0.5.tar.bz2" > "../../contrib/tarballs/libdca-0.0.5.tar.bz2" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 384k 100 384k 0 0 10600 0 0:00:37 0:00:37 --:--:-- 15121grep -- " libdca-0.0.5.tar.bz2$" "../../contrib/src/dca/SHA512SUMS" && (cd ../../contrib/tarballs && sha512sum --check /dev/stdin) < "../../contrib/src/dca/SHA512SUMS"d9f0ed34efeb3f27af8424fcb3e6df56744c6735854a65b5709c02b42b4513b9c4618dcc19eb44293afa051bd95616651bda5fc3b49dfabe975d0babfb1bc287 libdca-0.0.5.tar.bz2libdca-0.0.5.tar.bz2: OKtouch .sum-dcacurl -f -L -- "http://downloads.videolan.org/pub/videolan/libdvbpsi/0.2.2/libdvbpsi-0.2.2.tar.bz2" > "../../contrib/tarballs/libdvbpsi-0.2.2.tar.bz2" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 322k 100 322k 0 0 14946 0 0:00:22 0:00:22 --:--:-- 21309grep -- " libdvbpsi-0.2.2.tar.bz2$" "../../contrib/src/dvbpsi/SHA512SUMS" && (cd ../../contrib/tarballs && sha512sum --check /dev/stdin) < "../../contrib/src/dvbpsi/SHA512SUMS"9077a87d31b6c142773d68a5679a5b864df1c063f66d8b405964127b5e2f0b6b8ab4c1c003f873c221ba5657022667bfdb19cc399211be52bbc94a227de262a7 libdvbpsi-0.2.2.tar.bz2libdvbpsi-0.2.2.tar.bz2: OKtouch .sum-dvbpsicurl -f -L -- "http://dl.matroska.org/downloads/libebml/libebml-1.2.2.tar.bz2" > "../../contrib/tarballs/libebml-1.2.2.tar.bz2" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 60802 100 60802 0 0 4941 0 0:00:12 0:00:12 --:--:-- 43121grep -- " libebml-1.2.2.tar.bz2$" "../../contrib/src/ebml/SHA512SUMS" && (cd ../../contrib/tarballs && sha512sum --check /dev/stdin) < "../../contrib/src/ebml/SHA512SUMS"aa9b446aadbfea6cd7031a08a8cd0251a764febb8ef43ee3ba44d066b945698311bda7db6bb2d983d5f0c1e24f108ae4cf1c6551b04337210b13daf7e2236135 libebml-1.2.2.tar.bz2libebml-1.2.2.tar.bz2: OKtouch .sum-ebmlcurl -f -L -- "http://git.libav.org/?p=libav.git;a=snapshot;h=1a8c6917f68f;sf=tgz" > "../../contrib/tarballs/ffmpeg-git.tar.gz" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 5577k 0 5577k 0 0 17615 0 --:--:-- 0:05:24 --:--:-- 12273../../contrib/src/ffmpeg/rules.mak:136: Not implemented.touch .sum-ffmpegcurl -f -L -- "http://heanet.dl.sourceforge.net/sourceforge/flac/flac-src/flac-1.2.1-src/flac-1.2.1.tar.gz" > "../../contrib/tarballs/flac-1.2.1.tar.gz" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 409 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:12 --:--:-- 0100 1962k 100 1962k 0 0 17063 0 0:01:57 0:01:57 --:--:-- 15064grep -- " flac-1.2.1.tar.gz$" "../../contrib/src/flac/SHA512SUMS" && (cd ../../contrib/tarballs && sha512sum --check /dev/stdin) < "../../contrib/src/flac/SHA512SUMS"39b216239341fbfe210c3a2fc0d0531ecae26c425365c4b6d4fc1081e44e6dc7a9aba8d4c79cc8025386d0a7bb0d25c413c9b64cf7da9ab04ca34a56d2699787 flac-1.2.1.tar.gzflac-1.2.1.tar.gz: OKtouch .sum-flaccurl -f -L -- "http://heanet.dl.sourceforge.net/sourceforge/freetype/freetype2/2.4.10/freetype-2.4.10.tar.gz" > "../../contrib/tarballs/freetype-2.4.10.tar.gz" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 411 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:13 --:--:-- 0100 1959k 100 1959k 0 0 15040 0 0:02:13 0:02:13 --:--:-- 21090grep -- " freetype-2.4.10.tar.gz$" "../../contrib/src/freetype2/SHA512SUMS" && (cd ../../contrib/tarballs && sha512sum --check /dev/stdin) < "../../contrib/src/freetype2/SHA512SUMS"507d1c03d394b695b5a96041ad7ee03b375964c89f007678db864a7e5bd2ee69d83e6c638f4aadaf348c921d37c16741a03ef9bee03196bda2b94ceea409b688 freetype-2.4.10.tar.gzfreetype-2.4.10.tar.gz: OKtouch .sum-freetype2curl -f -L -- "http://fribidi.org/download/fribidi-0.19.4.tar.bz2" > "../../contrib/tarballs/fribidi-0.19.4.tar.bz2" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 593k 100 593k 0 0 11802 0 0:00:51 0:00:51 --:--:-- 16848grep -- " fribidi-0.19.4.tar.bz2$" "../../contrib/src/fribidi/SHA512SUMS" && (cd ../../contrib/tarballs && sha512sum --check /dev/stdin) < "../../contrib/src/fribidi/SHA512SUMS"6095421de6652202f54ce008eba881e514059e4ac2fd84fdbaabad504f147b332e9c688982b1857cd4d04d6d0346ca9dd16e6a5a5d2ef5acd4d1c400e054968c fribidi-0.19.4.tar.bz2fribidi-0.19.4.tar.bz2: OKtouch .sum-fribidicurl -f -L -- "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2" > "../../contrib/tarballs/libgcrypt-1.5.0.tar.bz2"curl: (6) Couldn't resolve host 'ftp.gnupg.org'make: *** [../../contrib/tarballs/libgcrypt-1.5.0.tar.bz2] Error 6make: *** Deleting file `../../contrib/tarballs/libgcrypt-1.5.0.tar.bz2'?
编译出错了,Fuck!
?
3.待我解决之:
?
?
?
?
?
?
?
?
?
?
?