VLC android support ARMv6

VLC for Android and Chrome OS specific usage questions
oneking
New Cone
New Cone
Posts: 2
Joined: 05 Feb 2013 13:17

VLC android support ARMv6

Postby oneking » 05 Feb 2013 19:19

I would like do a vlc application compatible with ARMv6.

I followed this tutorial http://wiki.videolan.org/AndroidCompile

In the terminal linux, I executed the next code:

Code: Select all

linux@linux-VirtualBox:~$ ANDROID_SDK=/home/linux/android-sdk linux@linux-VirtualBox:~$ ANDROID_NDK=/home/linux/android-ndk linux@linux-VirtualBox:~$ export ANDROID_SDK=/home/linux/android-sdk linux@linux-VirtualBox:~$ export ANDROID_NDK=/home/linux/android-ndk linux@linux-VirtualBox:~$ export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools linux@linux-VirtualBox:~$ export ANDROID_ABI=armeabi linux@linux-VirtualBox:~$ export NO_FPU=1 linux@linux-VirtualBox:~$ git clone git://git.videolan.org/vlc-ports/android.gitCloning into 'android'... remote: Counting objects: 16129, done. remote: Compressing objects: 100% (5066/5066), done. remote: Total 16129 (delta 9612), reused 13643 (delta 7993) Receiving objects: 100% (16129/16129), 4.15 MiB | 2.23 MiB/s, done. Resolving deltas: 100% (9612/9612), done. linux@linux-VirtualBox:~$ ANDROID_SDK=/home/linux/android-sdk linux@linux-VirtualBox:~$ ANDROID_NDK=/home/linux/android-ndk linux@linux-VirtualBox:~$ export ANDROID_SDK=/home/linux/android-sdk linux@linux-VirtualBox:~$ export ANDROID_NDK=/home/linux/android-ndk linux@linux-VirtualBox:~$ export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools linux@linux-VirtualBox:~$ export ANDROID_ABI=armeabi linux@linux-VirtualBox:~$ export NO_FPU=1 linux@linux-VirtualBox:~$ sh /home/linux/android/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: 396293, done. remote: Compressing objects: 100% (80760/80760), done. remote: Total 396293 (delta 319387), reused 389424 (delta 313672) Receiving objects: 100% (396293/396293), 203.83 MiB | 3.88 MiB/s, done. Resolving deltas: 100% (319387/319387), done. Switched to a new branch 'android' Applying the patches /usr/lib/git-core/git-am: 203: /usr/lib/git-core/git-am: cannot open ../patches/*.patch: No such file
When completed, the terminal has created a folder called "vlc", containing these folders:

Image

How i make to create the android vlc project supports ARMv6?

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: VLC android support ARMv6

Postby edwardw » 06 Feb 2013 05:02

Do a

Code: Select all

cd android
before

Code: Select all

sh compile.sh
.

oneking
New Cone
New Cone
Posts: 2
Joined: 05 Feb 2013 13:17

Re: VLC android support ARMv6

Postby oneking » 06 Feb 2013 18:12

Do a

Code: Select all

cd android
before

Code: Select all

sh compile.sh
.
Thanks for the solution,But I have a new problem:

configure:3472: error: in `/home/linux/android/vlc/contrib/android/a52dec'
configure:3474: error: C compiler cannot create executables See `config.log' for more details


this is the config.log:

Code: Select all

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --prefix=/home/linux/android/vlc/contrib/arm-linux-androideabi --build=i686-linux-gnu --host=arm-linux-androideabi --target=arm-linux-androideabi --program-prefix= --enable-static --disable-shared --disable-dependency-tracking --with-pic ## --------- ## ## Platform. ## ## --------- ## hostname = linux-VirtualBox uname -m = i686 uname -r = 3.5.0-17-generic uname -s = Linux uname -v = #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/linux/android/vlc/contrib/arm-linux-androideabi/bin PATH: /home/linux/android/vlc/extras/tools/build/bin PATH: /home/linux/android-ndk/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin PATH: /usr/lib/lightdm/lightdm PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games PATH: /home/linux/android-sdk/sdk/tools PATH: /home/linux/android-sdk PATH: /home/linux/android-sdk/platform-tools PATH: /home/linux/android-sdk/tools PATH: /home/linux/android-sdk/platform-tools PATH: /home/linux/android-sdk/tools ## ----------- ## ## Core tests. ## ## ----------- ## configure:2500: checking for a BSD-compatible install configure:2568: result: /usr/bin/install -c configure:2579: checking whether build environment is sane configure:2629: result: yes configure:2678: checking for arm-linux-androideabi-strip configure:2705: result: arm-linux-androideabi-strip configure:2770: checking for a thread-safe mkdir -p configure:2809: result: /bin/mkdir -p configure:2822: checking for gawk configure:2852: result: no configure:2822: checking for mawk configure:2838: found /usr/bin/mawk configure:2849: result: mawk configure:2860: checking whether make sets $(MAKE) configure:2882: result: yes configure:2965: checking whether to enable maintainer-specific portions of Makefiles configure:2974: result: no configure:2991: checking build system type configure:3005: result: i686-pc-linux-gnu configure:3025: checking host system type configure:3038: result: arm-unknown-linux-androideabi configure:3067: checking for arm-linux-androideabi-gcc configure:3094: result: arm-linux-androideabi-gcc --sysroot=/home/linux/android-ndk/platforms/android-9/arch-arm configure:3363: checking for C compiler version configure:3372: arm-linux-androideabi-gcc --sysroot=/home/linux/android-ndk/platforms/android-9/arch-arm --version >&5 arm-linux-androideabi-gcc (GCC) 4.7 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3383: $? = 0 configure:3372: arm-linux-androideabi-gcc --sysroot=/home/linux/android-ndk/platforms/android-9/arch-arm -v >&5 Using built-in specs. COLLECT_GCC=arm-linux-androideabi-gcc COLLECT_LTO_WRAPPER=/home/linux/android-ndk/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/../libexec/gcc/arm-linux-androideabi/4.7/lto-wrapper Target: arm-linux-androideabi Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.7/configure --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --target=arm-linux-androideabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpc=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --without-ppl --without-cloog --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --enable-initfini-array --disable-nls --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot --with-binutils-version=2.22 --with-mpfr-version=2.4.1 --with-mpc-version=0.8.1 --with-gmp-version=5.0.5 --with-gcc-version=4.7 --with-gdb-version=7.3.x --with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.7 --with-bugurl=http://source.android.com/source/report-bugs.html --disable-bootstrap --disable-libquadmath --disable-plugin --enable-gold --with-arch=armv5te --program-transform-name='s&^&arm-linux-androideabi-&' --enable-gold=default Thread model: posix gcc version 4.7 (GCC) configure:3383: $? = 0 configure:3372: arm-linux-androideabi-gcc --sysroot=/home/linux/android-ndk/platforms/android-9/arch-arm -V >&5 arm-linux-androideabi-gcc: error: unrecognized command line option '-V' arm-linux-androideabi-gcc: fatal error: no input files compilation terminated. configure:3383: $? = 1 configure:3372: arm-linux-androideabi-gcc --sysroot=/home/linux/android-ndk/platforms/android-9/arch-arm -qversion >&5 arm-linux-androideabi-gcc: error: unrecognized command line option '-qversion' arm-linux-androideabi-gcc: fatal error: no input files compilation terminated. configure:3383: $? = 1 configure:3403: checking whether the C compiler works configure:3425: arm-linux-androideabi-gcc --sysroot=/home/linux/android-ndk/platforms/android-9/arch-arm -g -march=armv6j -mtune=arm1136j-s -msoft-float -O2 -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/include -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include -I/home/linux/android/vlc/contrib/arm-linux-androideabi/include -g -g -march=armv6j -mtune=arm1136j-s -msoft-float -O2 -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/include -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include -I/home/linux/android/vlc/contrib/arm-linux-androideabi/include -L/home/linux/android/vlc/contrib/arm-linux-androideabi/lib conftest.c >&5 Assembler messages: Fatal error: invalid -march= option: `armv6j' configure:3429: $? = 1 configure:3467: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "a52dec" | #define VERSION "0.7.4" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3472: error: in `/home/linux/android/vlc/contrib/android/a52dec': configure:3474: error: C compiler cannot create executables See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i686-pc-linux-gnu ac_cv_env_CC_set=set ac_cv_env_CC_value='arm-linux-androideabi-gcc --sysroot=/home/linux/android-ndk/platforms/android-9/arch-arm' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value=' -g -march=armv6j -mtune=arm1136j-s -msoft-float -O2 -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/include -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include -I/home/linux/android/vlc/contrib/arm-linux-androideabi/include -g' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=' -g -march=armv6j -mtune=arm1136j-s -msoft-float -O2 -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/include -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include -I/home/linux/android/vlc/contrib/arm-linux-androideabi/include' ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value=' -L/home/linux/android/vlc/contrib/arm-linux-androideabi/lib' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=i686-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=arm-linux-androideabi ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=arm-linux-androideabi ac_cv_host=arm-unknown-linux-androideabi ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=mawk ac_cv_prog_CC='arm-linux-androideabi-gcc --sysroot=/home/linux/android-ndk/platforms/android-9/arch-arm' ac_cv_prog_STRIP=arm-linux-androideabi-strip ac_cv_prog_make_make_set=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## A52DEC_CFLAGS='' ACLOCAL='${SHELL} /home/linux/android/vlc/contrib/android/a52dec/autotools/missing --run aclocal-1.11' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AR='arm-linux-androideabi-ar' AS='' AUTOCONF='${SHELL} /home/linux/android/vlc/contrib/android/a52dec/autotools/missing --run autoconf' AUTOHEADER='${SHELL} /home/linux/android/vlc/contrib/android/a52dec/autotools/missing --run autoheader' AUTOMAKE='${SHELL} /home/linux/android/vlc/contrib/android/a52dec/autotools/missing --run automake-1.11' AWK='mawk' CC='arm-linux-androideabi-gcc --sysroot=/home/linux/android-ndk/platforms/android-9/arch-arm' CCDEPMODE='' CFLAGS=' -g -march=armv6j -mtune=arm1136j-s -msoft-float -O2 -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/include -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include -I/home/linux/android/vlc/contrib/arm-linux-androideabi/include -g' CPP='' CPPFLAGS=' -g -march=armv6j -mtune=arm1136j-s -msoft-float -O2 -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/include -I/home/linux/android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include -I/home/linux/android/vlc/contrib/arm-linux-androideabi/include' CYGPATH_W='echo' DEFS='' DEPDIR='' DLLTOOL='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' FGREP='' GREP='' INCLUDES='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='arm-linux-androideabi-ld' LDFLAGS=' -L/home/linux/android/vlc/contrib/arm-linux-androideabi/lib' LIBA52_CFLAGS='' LIBA52_LIBS='' LIBAO_LIBS='' LIBOBJS='' LIBS='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /home/linux/android/vlc/contrib/android/a52dec/autotools/missing --run makeinfo' MANIFEST_TOOL='' MKDIR_P='/bin/mkdir -p' NM='' NMEDIT='' OBJDUMP='' OBJEXT='' OTOOL64='' OTOOL='' PACKAGE='a52dec' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' RANLIB='arm-linux-androideabi-ranlib' SED='' SET_MAKE='' SHELL='/bin/bash' STRIP='arm-linux-androideabi-strip' VERSION='0.7.4' ac_ct_AR='' ac_ct_CC='' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__include='' am__isrc='' am__leading_dot='.' am__nodep='' am__quote='' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' bindir='${exec_prefix}/bin' build='i686-pc-linux-gnu' build_alias='i686-linux-gnu' build_cpu='i686' build_os='linux-gnu' build_vendor='pc' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='NONE' host='arm-unknown-linux-androideabi' host_alias='arm-linux-androideabi' host_cpu='arm' host_os='linux-androideabi' host_vendor='unknown' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/linux/android/vlc/contrib/android/a52dec/autotools/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='/bin/mkdir -p' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/home/linux/android/vlc/contrib/arm-linux-androideabi' program_transform_name='s&^&&' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='arm-linux-androideabi' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "a52dec" #define VERSION "0.7.4" configure: exit 77
How to fix the problem?

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: VLC android support ARMv6

Postby edwardw » 08 Feb 2013 17:00

What is the output of:

Code: Select all

$ANDROID_NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -march=armv6j --sysroot=$ANDROID_NDK/platforms/android-9/arch-arm hello.c -o hello-android -v
followed by

Code: Select all

file hello-android
?

---
hello.c is just any simple C program, like this:

Code: Select all

#include <stdio.h> int main() { puts("Hello World!"); return 0; }


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 14 guests