Hello, I met two issues following the compile procedure documented by wiki http://wiki.videolan.org/AndroidCompile .
One issue is the patch can't be applied. other issue is that configure check host failure. the failure is androideabi
Does any one know these two issues?
[windriver@wrlinux3 android]$ sh compile.sh
If you plan to use a device without NEON (e.g. the emulator), you need a build without NEON:
$ export NO_NEON=1
Make sure it is set throughout the entire process.
The script will attempt to automatically detect if you have NDK v7, but you can override this.
If you do not have NDK v7 or later:
export NO_NDK_V7=1
or if you are sure you have NDK v7:
export NO_NDK_V7=0
VLC source found, pulling from remote master
remote: Counting objects: 40, done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 27 (delta 23), reused 0 (delta 0)
Unpacking objects: 100% (27/27), done.
From git://git.videolan.org/vlc/vlc-2.0
* branch master -> FETCH_HEAD
Removing modules/codec/avcodec/avutil.h
Merge made by recursive.
modules/access/avio.c | 27 ++++++++++++++--
modules/codec/avcodec/Modules.am | 1 -
modules/codec/avcodec/avcodec.c | 2 -
modules/codec/avcodec/avutil.h | 60 --------------------------------------
modules/demux/avformat/mux.c | 3 --
po/POTFILES.in | 1 -
6 files changed, 23 insertions(+), 71 deletions(-)
delete mode 100644 modules/codec/avcodec/avutil.h
Applying the patches
Applying: Android: add compatibility pthread_cancel
error: compat/pthread_cancel.c: already exists in index
error: patch failed: configure.ac:483
error: configure.ac: patch does not apply
error: patch failed: include/vlc_fixups.h:330
error: include/vlc_fixups.h: patch does not apply
error: patch failed: lib/error.c:25
error: lib/error.c: patch does not apply
error: patch failed: src/posix/thread.c:146
error: src/posix/thread.c: patch does not apply
Patch failed at 0001 Android: add compatibility pthread_cancel
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
Building the contribs
mkdir: cannot create directory `contrib/android': File exists
Guessing build system... x86_64-redhat-linux
Creating configuration file... config.mak
Bootstrap 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 packages
make: Nothing to be done for `fetch'.
mkdir -p -- /opt/dev/myvlc/android/vlc/contrib/arm-linux-androideabi-4.4.3/share/aclocal && cd a52dec && autoreconf -fiv -I/opt/dev/myvlc/android/vlc/contrib/arm-linux-androideabi-4.4.3/share/aclocal
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.in: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `autotools'.
libtoolize: copying file `autotools/ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf --include=/opt/dev/myvlc/android/vlc/contrib/arm-linux-androideabi-4.4.3/share/aclocal --force
autoreconf: running: /usr/bin/autoheader --include=/opt/dev/myvlc/android/vlc/contrib/arm-linux-androideabi-4.4.3/share/aclocal --force
autoreconf: running: automake --add-missing --copy --force-missing
liba52/Makefile.am:1: `CFLAGS' is a user variable, you should not override it;
liba52/Makefile.am:1: use `AM_CFLAGS' instead.
src/Makefile.am:1: `CFLAGS' is a user variable, you should not override it;
src/Makefile.am:1: use `AM_CFLAGS' instead.
autoreconf: Leaving directory `.'
cd a52dec && CC="arm-linux-androideabi-4.4.3-gcc" CXX="arm-linux-androideabi-4.4.3-g++" LD="arm-linux-androideabi-4.4.3-ld" AR="arm-linux-androideabi-4.4.3-ar" RANLIB="arm-linux-androideabi-4.4.3-ranlib" STRIP="arm-linux-androideabi-4.4.3-strip" PATH="/opt/dev/myvlc/android/vlc/contrib/arm-linux-androideabi-4.4.3/bin:/opt/dev/myvlc/android/vlc/extras/tools/build/bin:/opt/dev/myvlc/ndk/android-ndk-r7b//toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/windriver/bin:/opt/dev/myvlc/sdk/android-sdk-linux//tools:/opt/dev/myvlc/sdk/android-sdk-linux//platform-tools:/opt/dev/myvlc/ndk/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/" CPPFLAGS=" -I/opt/dev/myvlc/android/vlc/contrib/arm-linux-androideabi-4.4.3/include" CFLAGS=" -I/opt/dev/myvlc/android/vlc/contrib/arm-linux-androideabi-4.4.3/include" CXXFLAGS=" -I/opt/dev/myvlc/android/vlc/contrib/arm-linux-androideabi-4.4.3/include" LDFLAGS=" -L/opt/dev/myvlc/android/vlc/contrib/arm-linux-androideabi-4.4.3/lib" ./configure --prefix="/opt/dev/myvlc/android/vlc/contrib/arm-linux-androideabi-4.4.3" --build="x86_64-redhat-linux" --host="arm-linux-androideabi-4.4.3" --target="arm-linux-androideabi-4.4.3" --program-prefix="" --enable-static --disable-shared --disable-dependency-tracking --with-pic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-androideabi-4.4.3-strip... arm-linux-androideabi-4.4.3-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-redhat-linux-gnu
checking host system type... Invalid configuration `arm-linux-androideabi-4.4.3': machine `arm-linux-androideabi' not recognized
configure: error: /bin/sh autotools/config.sub arm-linux-androideabi-4.4.3 failed
make: *** [.a52] Error 1
Configuring
checking build system type... x86_64-unknown-linux-gnu
checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized
configure: error: /bin/sh ../extras/package/android/../../../autotools/config.sub arm-linux-androideabi failed
Building
make: *** No targets specified and no makefile found. Stop.
Building Android
cd vlc-android && rm -rf gen libs obj bin vlc-android/bin/VLC-debug.apk
rm -f android-libs/*.so android-libs/*.c
rm -f vlc-android/libs/armeabi/libvlcjni.so vlc-android/jni/libvlcjni.h
Generating vlc-android/jni/libvlcjni.h
find: `vlc/android/modules': No such file or directory
No VLC modules found in vlc/android/modules
make: *** [vlc-android/jni/libvlcjni.h] Error 1
[windriver@wrlinux3 android]$