<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mik</id>
	<title>VideoLAN Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mik"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Mik/"/>
	<updated>2026-11-04T16:26:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=AndroidCompile&amp;diff=26953</id>
		<title>AndroidCompile</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=AndroidCompile&amp;diff=26953"/>
		<updated>2014-08-09T13:48:38Z</updated>

		<summary type="html">&lt;p&gt;Mik: maintain notice of known error while correcting false guidance posted earlier&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is an introduction to the compilation of &#039;&#039;&#039;VLC for Android&#039;&#039;&#039; on Linux. &lt;br /&gt;
&lt;br /&gt;
==Eclipse, SDK and NDK installation==&lt;br /&gt;
&lt;br /&gt;
=== Requirements  ===&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; be on Linux (or OSX if you know what you are doing), and a recent one.&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; have installed: &#039;&#039;apache-ant&#039;&#039; (or &#039;&#039;ant&#039;&#039;), &#039;&#039;autoconf&#039;&#039;, &#039;&#039;automake&#039;&#039;, &#039;&#039;autopoint&#039;&#039;, &#039;&#039;cmake&#039;&#039;, &#039;&#039;gawk&#039;&#039; (or &#039;&#039;nawk&#039;&#039;), &#039;&#039;gcc&#039;&#039;, &#039;&#039;g++&#039;&#039;, &#039;&#039;libtool&#039;&#039;, &#039;&#039;m4&#039;&#039;, &#039;&#039;patch&#039;&#039;, &#039;&#039;pkg-config&#039;&#039;, &#039;&#039;ragel&#039;&#039;, &#039;&#039;subversion&#039;&#039;, &#039;&#039;unzip&#039;&#039;, and very up-to-date versions of those tools.&lt;br /&gt;
** Special note: Additionally, if you are compiling for an Android-x86 device, you should install &#039;&#039;yasm&#039;&#039;.&lt;br /&gt;
** &amp;lt;span style=&amp;quot;color: #ff0000&amp;quot;&amp;gt;&#039;&#039;&#039;64-bit users&#039;&#039;&#039;&amp;lt;/span&amp;gt;: You must install these 32-bit libs as specified here: [[AndroidCompile#Can.27t_run_aapt_or_adb_on_Linux_64-bit]]&lt;br /&gt;
** Optional: &#039;&#039;7z&#039;&#039; (for SDK package generation)&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; install: &#039;&#039;git&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Android SDK===&lt;br /&gt;
# Create a working directory &#039;&#039;android&#039;&#039;. &lt;br /&gt;
# Go to [http://developer.android.com/sdk/index.html Android SDK page] and download the latest SDK for linux. &lt;br /&gt;
# Decompress into &#039;&#039;android&#039;&#039; folder. &lt;br /&gt;
# Run &#039;&#039;tools/android&#039;&#039; (from the command line you can also run: &amp;quot;tools/android update sdk -u -t platform,platform-tool,extra&amp;quot;) &lt;br /&gt;
# In the tool, install &#039;&#039;&#039;&amp;quot;SDK Platform Android 4.4.2, API 19&amp;quot;&#039;&#039;&#039;, and follow the instructions.&lt;br /&gt;
&lt;br /&gt;
You can have [http://developer.android.com/sdk/installing.html more details], if needed.&lt;br /&gt;
&lt;br /&gt;
===Android NDK===&lt;br /&gt;
# Check that the SDK installation is correct. &lt;br /&gt;
# Go to the [http://developer.android.com/sdk/ndk/index.html Android NDK page] and download the &#039;&#039;&#039;NDK r9&#039;&#039;&#039; for Linux. &lt;br /&gt;
# Decompress it into the &#039;&#039;android&#039;&#039; folder, next to your android-sdk-linux folder.&lt;br /&gt;
&lt;br /&gt;
===Eclipse===&lt;br /&gt;
As used by your distribution, install Eclipse with your package manager: &lt;br /&gt;
&lt;br /&gt;
 apt-get install eclipse (debian)&lt;br /&gt;
 yum install eclipse (Fedora)&lt;br /&gt;
 pacman -S eclipse (Arch)&lt;br /&gt;
 emerge -av eclipse-sdk (Gentoo)&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And run it, at least once, and then quit eclipse. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; On Debian-based distributions it is better to download Eclipse indigo builds from the official website: http://www.eclipse.org/downloads/, otherwise it can lead to an error when importing the ADT plugin (see following).&lt;br /&gt;
&lt;br /&gt;
====ADT====&lt;br /&gt;
The &#039;&#039;&#039;ADT&#039;&#039;&#039; plugin is required to compile on Android. &lt;br /&gt;
&lt;br /&gt;
#Go to [http://developer.android.com/sdk/eclipse-adt.html#installing ADT page]. &lt;br /&gt;
#Start Eclipse, then select Help &amp;amp;gt; Install New Software.... &lt;br /&gt;
#Add the &amp;quot;ADT Plugin&amp;quot; repository with https://dl-ssl.google.com/android/eclipse/ as &#039;&#039;&#039;URL&#039;&#039;&#039; &lt;br /&gt;
#Validate and select the checkbox next to Developer Tools and click Next, Next, Finish. &lt;br /&gt;
#Restart Eclipse. &lt;br /&gt;
#Go to &#039;&#039;Menu&#039;&#039; &amp;amp;gt; &#039;&#039;Window&#039;&#039; &amp;amp;gt; &#039;&#039;Preferences...&#039;&#039; and then &#039;&#039;Android&#039;&#039; from the left pane. &lt;br /&gt;
#Point the SDK Location in to your downloaded SDK directory. &lt;br /&gt;
#Ok, and quit Eclipse.&lt;br /&gt;
&lt;br /&gt;
See [http://developer.android.com/sdk/eclipse-adt.html#troubleshooting extra information here].&lt;br /&gt;
&lt;br /&gt;
== Environment setup  ==&lt;br /&gt;
Set $ANDROID_SDK to point to your Android SDK directory &lt;br /&gt;
&lt;br /&gt;
 export ANDROID_SDK=/path/to/android-sdk&lt;br /&gt;
&lt;br /&gt;
Set $ANDROID_NDK to point to your Android NDK directory &lt;br /&gt;
&lt;br /&gt;
 export ANDROID_NDK=/path/to/android-ndk&lt;br /&gt;
&lt;br /&gt;
Add some useful binaries to your $PATH &lt;br /&gt;
&lt;br /&gt;
 export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools&lt;br /&gt;
&lt;br /&gt;
=== Devices ===&lt;br /&gt;
&lt;br /&gt;
You need to export the ABI for your device. &amp;lt;code&amp;gt;armeabi-v7a&amp;lt;/code&amp;gt; is for devices with ARMv7 or above (regardless of [[wikipedia:ARM_architecture#Advanced_SIMD_.28NEON.29|NEON]]), any other ARM device uses &amp;lt;code&amp;gt;armeabi&amp;lt;/code&amp;gt;, x86/Intel devices use &amp;lt;code&amp;gt;x86&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
or&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
&lt;br /&gt;
For a build that will run on x86 Android devices (e.g. certain Intel Android smartphones):&lt;br /&gt;
 export ANDROID_ABI=x86&lt;br /&gt;
&lt;br /&gt;
For a build that will run on MIPS devices (i.e. Ainol Novo tablets):&lt;br /&gt;
 export ANDROID_ABI=mips&lt;br /&gt;
&lt;br /&gt;
The following flags (NEON, FPU, ARMV6) are relevant only for the &#039;&#039;armeabi&#039;&#039; ABI:&lt;br /&gt;
&lt;br /&gt;
If you plan to use an armeabi device that does not support FPU, you need a build without FPU&lt;br /&gt;
 export NO_FPU=1&lt;br /&gt;
&lt;br /&gt;
If you plan to use an ARMv5 armeabi device (read: Android Emulator), you need a build without ARMv6&lt;br /&gt;
 export NO_ARMV6=1&lt;br /&gt;
&lt;br /&gt;
==== Examples====&lt;br /&gt;
* For a normal (2012 consumer phone or tablet), like Cortex-A8 or Cortex-A9&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
* For a Tegra2 device&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
* For an ARMv6 device&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
* For an ARMv6 device without FPU&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
 export NO_FPU=1&lt;br /&gt;
* For an ARMv5 device or the emulator&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
 export NO_ARMV6=1&lt;br /&gt;
* For a x86 device (e.g. Android-x86, Google TV, Logitech TV, etc)&lt;br /&gt;
 export ANDROID_ABI=x86&lt;br /&gt;
* For a MIPS device (i.e. Ainol Novo tablets):&lt;br /&gt;
 export ANDROID_ABI=mips&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Those exports must be set at all times, notably for the contribs and the configure.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Building ==&lt;br /&gt;
=== Get VLC Source ===&lt;br /&gt;
Clone the source from the VLC git!&lt;br /&gt;
&lt;br /&gt;
In your &#039;&#039;android&#039;&#039; folder, run: &lt;br /&gt;
&lt;br /&gt;
 git clone git://git.videolan.org/vlc-ports/android.git&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Compile ====&lt;br /&gt;
&#039;&#039;&#039;Read&#039;&#039;&#039; compile.sh first, as it contains some very useful and important information. Then run it:&lt;br /&gt;
 sh compile.sh&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; At this point, you will get an autogenerated debug apk in the bin/ folder, signed with a debug key.&lt;br /&gt;
&lt;br /&gt;
In order to build a non-debug package:&lt;br /&gt;
 sh compile.sh release&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; At this point, you will get an unsigned release apk in the bin/ folder, which you will have to sign and [http://developer.android.com/tools/help/zipalign.html zipalign].&lt;br /&gt;
&lt;br /&gt;
==== Package in Eclipse [optional] ====&lt;br /&gt;
# In Eclipse, create a &#039;&#039;new Android Project from existing source&#039;&#039; by importing from the &#039;&#039;vlc-android&#039;&#039; path.&lt;br /&gt;
# Import the three projects from the &#039;&#039;java-libs&#039;&#039; folder.&lt;br /&gt;
# Export unsigned/signed apk.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Building against JDK6 is recommended for optimal compatibility (Set &#039;&#039;Java Compiler Compliance&#039;&#039; to 1.6).&lt;br /&gt;
&lt;br /&gt;
=== Run ===&lt;br /&gt;
Run it and enjoy!&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
Here are some helpful links if you wish to debug VLC on Android:&lt;br /&gt;
* [http://developer.android.com/guide/developing/debugging/ddms.html DDMS] &lt;br /&gt;
* [http://developer.android.com/guide/developing/tools/logcat.html Logcat]&lt;br /&gt;
&lt;br /&gt;
===Native debugging===&lt;br /&gt;
If you run VLC Android and you get a crash that looks something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
I/DEBUG   (  958): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***&lt;br /&gt;
I/DEBUG   (  958): Build fingerprint: &#039;MOTO/MBTCA/sesame/XT300:2.1-update1/SESLA_U3_01.71.0/110110:user/release-keys&#039;&lt;br /&gt;
I/DEBUG   (  958): pid: 1733, tid: 1733 &amp;gt;&amp;gt;&amp;gt; org.videolan.vlc &amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
I/DEBUG   (  958): signal 11 (SIGSEGV), fault addr 4237be3c&lt;br /&gt;
I/DEBUG   (  958):  r0 423640a0  r1 7ece77ac  r2 42bccdac  r3 4237be38&lt;br /&gt;
I/DEBUG   (  958):  r4 00000000  r5 42bccdac  r6 002ed088  r7 002ed018&lt;br /&gt;
I/DEBUG   (  958):  r8 7ece78e8  r9 2bafa844  10 0000000e  fp 7ece794c&lt;br /&gt;
I/DEBUG   (  958):  ip 00002ba0  sp 7ece7784  lr 423652e4  pc 4237be3c  cpsr 60000010&lt;br /&gt;
I/DEBUG   (  958):          #00  pc 0037be3c  /data/data/org.videolan.vlc/lib/libvlcjni.so&lt;br /&gt;
I/DEBUG   (  958):          #01  lr 423652e4  /data/data/org.videolan.vlc/lib/libvlcjni.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have a &#039;&#039;&#039;native crash&#039;&#039;&#039;. To debug it, you need to have compiled VLC as above and installed it on your device. Once your compiled VLC build is on your device, you can find the &#039;&#039;&#039;backtrace&#039;&#039;&#039; as follows:&lt;br /&gt;
&lt;br /&gt;
# Make sure you are in the directory that you checked out VLC-Android in.&lt;br /&gt;
# cd vlc-android&lt;br /&gt;
# $ANDROID_NDK/ndk-gdb --verbose --force --start&lt;br /&gt;
At this point, lots of stuff will appear:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Android NDK installation path: /opt/android-ndk-r8c&lt;br /&gt;
Using default adb command: /opt/android-sdk-linux_x86/platform-tools/adb&lt;br /&gt;
ADB version found: Android Debug Bridge version 1.0.29&lt;br /&gt;
Using ADB flags: &lt;br /&gt;
Using auto-detected project path: .&lt;br /&gt;
Found package name: org.videolan.vlc&lt;br /&gt;
...bunch of stuff skipped...&lt;br /&gt;
GNU gdb (GDB) 7.3.1-gg2&lt;br /&gt;
Copyright (C) 2011 Free Software Foundation, Inc.&lt;br /&gt;
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;&lt;br /&gt;
This is free software: you are free to change and redistribute it.&lt;br /&gt;
There is NO WARRANTY, to the extent permitted by law.  Type &amp;quot;show copying&amp;quot;&lt;br /&gt;
and &amp;quot;show warranty&amp;quot; for details.&lt;br /&gt;
This GDB was configured as &amp;quot;--host=x86_64-linux-gnu --target=arm-linux-android&amp;quot;.&lt;br /&gt;
For bug reporting instructions, please see:&lt;br /&gt;
&amp;lt;http://www.gnu.org/software/gdb/bugs/&amp;gt;.&lt;br /&gt;
Remote debugging from host 0.0.0.0&lt;br /&gt;
...bunch of stuff skipped...&lt;br /&gt;
libthread_db:td_ta_new: Victory: We can debug theads!&lt;br /&gt;
warning: Breakpoint address adjusted from 0x400deaa5 to 0x400deaa4.&lt;br /&gt;
0x40107a40 in epoll_wait () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
(gdb)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;At this point, type in &amp;quot;continue&amp;quot; and press Enter.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Perform the actions you did to make it crash. It will spit out something like this:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;
0x401120ae in ?? () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now, just type in &amp;quot;&#039;&#039;&#039;bt full&#039;&#039;&#039;&amp;quot; (excluding the quotation marks) and press Enter. That is your backtrace that you should give to the developers when they ask for it (possibly on a [http://paste.kde.org/ pastebin], too).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(gdb) bt full&lt;br /&gt;
#0  0x401120ae in ?? () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#1  0x40107bd8 in abort () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#2  0x40118e6a in __assert2 () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#3  0x5e0cdfdc in var_SetChecked (p_this=0x40134b94, psz_name=0x5ea2fcb8 &amp;quot;rate&amp;quot;, expected_type=80, val=...) at ../../src/misc/variables.c:711&lt;br /&gt;
        i_ret = 0&lt;br /&gt;
        p_var = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
        oldval = {i_int = 4742037487051810480, b_bool = 176, f_float = 2.27765068e+14, psz_string = 0x574f26b0 &amp;quot;X\270|B\001\001&amp;quot;, p_address = 0x574f26b0, &lt;br /&gt;
          p_object = 0x574f26b0, p_list = 0x574f26b0, i_time = 4742037487051810480, coords = {x = 1464805040, y = 1104091640}}&lt;br /&gt;
        __func__ = &amp;quot;var_SetChecked&amp;quot;&lt;br /&gt;
        p_priv = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#4  0x5e06dd9c in var_SetFloat (f=1.41421354, psz_name=0x5ea2fcb8 &amp;quot;rate____sample_backtrace&amp;quot;, p_obj=0x0) at ../../include/vlc_variables.h:262&lt;br /&gt;
        val = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#5  libvlc_media_player_set_rate (p_mi=0x0, rate=1.41421354) at ../../lib/media_player.c:1252&lt;br /&gt;
        p_input_thread = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#6  0x5de7bd18 in Java_org_videolan_vlc_LibVLC_setRate (env=0x41cf0470, thiz=0x8ab00021, rate=1.41421354) at jni/libvlcjni.c:678&lt;br /&gt;
        mp = 0x0&lt;br /&gt;
#7  0x4076de34 in ?? ()&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#8  0x4076de34 in ?? ()&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
Backtrace stopped: previous frame identical to this frame (corrupt stack?)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Outdated Awk ===&lt;br /&gt;
If you receive the error message while building:&lt;br /&gt;
&lt;br /&gt;
 Android NDK: Host &#039;awk&#039; tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !    &lt;br /&gt;
&lt;br /&gt;
The prebuilt version of Awk that comes with the Android NDK is outdated. Defining HOST_AWK in your environment does nothing as the system still tries to just the one that comes with the Android NDK. To get around this issue, simply rename or delete the Awk binary that comes with the Android NDK. For example to move it:&lt;br /&gt;
&lt;br /&gt;
 mv $ANDROID_NDK/prebuilt/linux-x86/bin/awk $ANDROID_NDK/prebuilt/linux-x86/bin/awk.old&lt;br /&gt;
&lt;br /&gt;
=== Can&#039;t find Ant ===&lt;br /&gt;
If you&#039;re new to Ant, please be aware that some Linux distributions don&#039;t install it in the usual spot as with other programs. Try checking to see if the directory /usr/share/java/apache-ant/bin exists and add it to your path.&lt;br /&gt;
&lt;br /&gt;
===Outdated autotools-dev===&lt;br /&gt;
If you get the following error message you may have have an outdated version of autotools-dev:&lt;br /&gt;
  Invalid configuration `arm-linux-androideabi&#039;: system `androideabi&#039; not recognized&lt;br /&gt;
You may first want to check if your distribution has any available updates for this package.  Alternatively, you can manually update your config.guess and config.sub files from here: [http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree].  These files are typically located in /usr/share/misc on Debian based distributions.&lt;br /&gt;
&lt;br /&gt;
===autoreconf: automake failed with exit status: 1===&lt;br /&gt;
 automake: warnings are treated as errors&lt;br /&gt;
 configure.ac:41: warning: The &#039;AM_PROG_MKDIR_P&#039; macro is deprecated, and will soon be removed.&lt;br /&gt;
 configure.ac:41: You should use the Autoconf-provided &#039;AC_PROG_MKDIR_P&#039; macro instead,&lt;br /&gt;
 configure.ac:41: and use &#039;$(MKDIR_P)&#039; instead of &#039;$(mkdir_p)&#039;in your Makefile.am files.&lt;br /&gt;
&lt;br /&gt;
If you are using Automake 1.13 or higher, you must remove -Werror from vlc/contrib/android/gnutls/configure.ac to continue. (First reported in [http://forum.videolan.org/viewtopic.php?f=35&amp;amp;t=108927])&lt;br /&gt;
&lt;br /&gt;
===autoreconf: automake failed with exit status: 1 ===&lt;br /&gt;
 make: *** [dvdnav] Error 1&lt;br /&gt;
 ...&lt;br /&gt;
 ... error: possibly undefined macro: AM_PROG_LIBTOOL&lt;br /&gt;
&lt;br /&gt;
This error may occur when compiling with an older Linux distribution, such as Ubuntu 12.04, that doesn&#039;t meet bootstrap prerequisites. As of 2014-08-09, the master branch for vlc-ports/android.git [http://git.videolan.org/?p=vlc-ports/android.git;a=summary] lacks patch 5199 [https://patches.videolan.org/patch/5199/]. Without the patch, compile.sh builds out dated automake and autoconf that may not access libtool despite presence of a current libtool binary amongst supporting tools and a similar or more recent binary present as part of the OS.&lt;br /&gt;
&lt;br /&gt;
To work around this error, patch the master branch or update the prerequisites. For Ubuntu 12.04, upgrade autoconf, automake, and cmake as dictated by vlc/extras/tools/bootstrap.&lt;br /&gt;
&lt;br /&gt;
===Can&#039;t run aapt or adb on Linux 64-bit===&lt;br /&gt;
You must install the 32-bit libraries of the following libraries, as the precompiled Google binaries depend on them: &#039;&#039;libc6&#039;&#039;, &#039;&#039;libstdc++6&#039;&#039;, and &#039;&#039;zlib&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
New versions of Debian and/or Ubuntu require you to install i386 versions of packages:&lt;br /&gt;
 sudo dpkg --add-architecture i386&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install zlib1g:i386 libstdc++6:i386 libc6:i386&lt;br /&gt;
&lt;br /&gt;
If you are under &#039;&#039;old versions&#039;&#039; of Ubuntu, install ia32-libs can help you solve this issue.&lt;br /&gt;
 sudo apt-get install ia32-libs&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Android Report bugs]] - Bug reporting guide for VLC-Android.&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]] [[Category:Android]]&lt;/div&gt;</summary>
		<author><name>Mik</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=AndroidCompile&amp;diff=26952</id>
		<title>AndroidCompile</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=AndroidCompile&amp;diff=26952"/>
		<updated>2014-08-09T10:36:25Z</updated>

		<summary type="html">&lt;p&gt;Mik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is an introduction to the compilation of &#039;&#039;&#039;VLC for Android&#039;&#039;&#039; on Linux. &lt;br /&gt;
&lt;br /&gt;
==Eclipse, SDK and NDK installation==&lt;br /&gt;
&lt;br /&gt;
=== Requirements  ===&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; be on Linux (or OSX if you know what you are doing), and a recent one.&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; have installed: &#039;&#039;apache-ant&#039;&#039; (or &#039;&#039;ant&#039;&#039;), &#039;&#039;autoconf&#039;&#039;, &#039;&#039;automake&#039;&#039;, &#039;&#039;autopoint&#039;&#039;, &#039;&#039;cmake&#039;&#039;, &#039;&#039;gawk&#039;&#039; (or &#039;&#039;nawk&#039;&#039;), &#039;&#039;gcc&#039;&#039;, &#039;&#039;g++&#039;&#039;, &#039;&#039;libtool&#039;&#039;, &#039;&#039;m4&#039;&#039;, &#039;&#039;patch&#039;&#039;, &#039;&#039;pkg-config&#039;&#039;, &#039;&#039;ragel&#039;&#039;, &#039;&#039;subversion&#039;&#039;, &#039;&#039;unzip&#039;&#039;, and very up-to-date versions of those tools.&lt;br /&gt;
** Special note: Additionally, if you are compiling for an Android-x86 device, you should install &#039;&#039;yasm&#039;&#039;.&lt;br /&gt;
** &amp;lt;span style=&amp;quot;color: #ff0000&amp;quot;&amp;gt;&#039;&#039;&#039;64-bit users&#039;&#039;&#039;&amp;lt;/span&amp;gt;: You must install these 32-bit libs as specified here: [[AndroidCompile#Can.27t_run_aapt_or_adb_on_Linux_64-bit]]&lt;br /&gt;
** Optional: &#039;&#039;7z&#039;&#039; (for SDK package generation)&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; install: &#039;&#039;git&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Android SDK===&lt;br /&gt;
# Create a working directory &#039;&#039;android&#039;&#039;. &lt;br /&gt;
# Go to [http://developer.android.com/sdk/index.html Android SDK page] and download the latest SDK for linux. &lt;br /&gt;
# Decompress into &#039;&#039;android&#039;&#039; folder. &lt;br /&gt;
# Run &#039;&#039;tools/android&#039;&#039; (from the command line you can also run: &amp;quot;tools/android update sdk -u -t platform,platform-tool,extra&amp;quot;) &lt;br /&gt;
# In the tool, install &#039;&#039;&#039;&amp;quot;SDK Platform Android 4.4.2, API 19&amp;quot;&#039;&#039;&#039;, and follow the instructions.&lt;br /&gt;
&lt;br /&gt;
You can have [http://developer.android.com/sdk/installing.html more details], if needed.&lt;br /&gt;
&lt;br /&gt;
===Android NDK===&lt;br /&gt;
# Check that the SDK installation is correct. &lt;br /&gt;
# Go to the [http://developer.android.com/sdk/ndk/index.html Android NDK page] and download the &#039;&#039;&#039;NDK r9&#039;&#039;&#039; for Linux. &lt;br /&gt;
# Decompress it into the &#039;&#039;android&#039;&#039; folder, next to your android-sdk-linux folder.&lt;br /&gt;
&lt;br /&gt;
===Eclipse===&lt;br /&gt;
As used by your distribution, install Eclipse with your package manager: &lt;br /&gt;
&lt;br /&gt;
 apt-get install eclipse (debian)&lt;br /&gt;
 yum install eclipse (Fedora)&lt;br /&gt;
 pacman -S eclipse (Arch)&lt;br /&gt;
 emerge -av eclipse-sdk (Gentoo)&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And run it, at least once, and then quit eclipse. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; On Debian-based distributions it is better to download Eclipse indigo builds from the official website: http://www.eclipse.org/downloads/, otherwise it can lead to an error when importing the ADT plugin (see following).&lt;br /&gt;
&lt;br /&gt;
====ADT====&lt;br /&gt;
The &#039;&#039;&#039;ADT&#039;&#039;&#039; plugin is required to compile on Android. &lt;br /&gt;
&lt;br /&gt;
#Go to [http://developer.android.com/sdk/eclipse-adt.html#installing ADT page]. &lt;br /&gt;
#Start Eclipse, then select Help &amp;amp;gt; Install New Software.... &lt;br /&gt;
#Add the &amp;quot;ADT Plugin&amp;quot; repository with https://dl-ssl.google.com/android/eclipse/ as &#039;&#039;&#039;URL&#039;&#039;&#039; &lt;br /&gt;
#Validate and select the checkbox next to Developer Tools and click Next, Next, Finish. &lt;br /&gt;
#Restart Eclipse. &lt;br /&gt;
#Go to &#039;&#039;Menu&#039;&#039; &amp;amp;gt; &#039;&#039;Window&#039;&#039; &amp;amp;gt; &#039;&#039;Preferences...&#039;&#039; and then &#039;&#039;Android&#039;&#039; from the left pane. &lt;br /&gt;
#Point the SDK Location in to your downloaded SDK directory. &lt;br /&gt;
#Ok, and quit Eclipse.&lt;br /&gt;
&lt;br /&gt;
See [http://developer.android.com/sdk/eclipse-adt.html#troubleshooting extra information here].&lt;br /&gt;
&lt;br /&gt;
== Environment setup  ==&lt;br /&gt;
Set $ANDROID_SDK to point to your Android SDK directory &lt;br /&gt;
&lt;br /&gt;
 export ANDROID_SDK=/path/to/android-sdk&lt;br /&gt;
&lt;br /&gt;
Set $ANDROID_NDK to point to your Android NDK directory &lt;br /&gt;
&lt;br /&gt;
 export ANDROID_NDK=/path/to/android-ndk&lt;br /&gt;
&lt;br /&gt;
Add some useful binaries to your $PATH &lt;br /&gt;
&lt;br /&gt;
 export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools&lt;br /&gt;
&lt;br /&gt;
=== Devices ===&lt;br /&gt;
&lt;br /&gt;
You need to export the ABI for your device. &amp;lt;code&amp;gt;armeabi-v7a&amp;lt;/code&amp;gt; is for devices with ARMv7 or above (regardless of [[wikipedia:ARM_architecture#Advanced_SIMD_.28NEON.29|NEON]]), any other ARM device uses &amp;lt;code&amp;gt;armeabi&amp;lt;/code&amp;gt;, x86/Intel devices use &amp;lt;code&amp;gt;x86&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
or&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
&lt;br /&gt;
For a build that will run on x86 Android devices (e.g. certain Intel Android smartphones):&lt;br /&gt;
 export ANDROID_ABI=x86&lt;br /&gt;
&lt;br /&gt;
For a build that will run on MIPS devices (i.e. Ainol Novo tablets):&lt;br /&gt;
 export ANDROID_ABI=mips&lt;br /&gt;
&lt;br /&gt;
The following flags (NEON, FPU, ARMV6) are relevant only for the &#039;&#039;armeabi&#039;&#039; ABI:&lt;br /&gt;
&lt;br /&gt;
If you plan to use an armeabi device that does not support FPU, you need a build without FPU&lt;br /&gt;
 export NO_FPU=1&lt;br /&gt;
&lt;br /&gt;
If you plan to use an ARMv5 armeabi device (read: Android Emulator), you need a build without ARMv6&lt;br /&gt;
 export NO_ARMV6=1&lt;br /&gt;
&lt;br /&gt;
==== Examples====&lt;br /&gt;
* For a normal (2012 consumer phone or tablet), like Cortex-A8 or Cortex-A9&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
* For a Tegra2 device&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
* For an ARMv6 device&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
* For an ARMv6 device without FPU&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
 export NO_FPU=1&lt;br /&gt;
* For an ARMv5 device or the emulator&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
 export NO_ARMV6=1&lt;br /&gt;
* For a x86 device (e.g. Android-x86, Google TV, Logitech TV, etc)&lt;br /&gt;
 export ANDROID_ABI=x86&lt;br /&gt;
* For a MIPS device (i.e. Ainol Novo tablets):&lt;br /&gt;
 export ANDROID_ABI=mips&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Those exports must be set at all times, notably for the contribs and the configure.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Building ==&lt;br /&gt;
=== Get VLC Source ===&lt;br /&gt;
Clone the source from the VLC git!&lt;br /&gt;
&lt;br /&gt;
In your &#039;&#039;android&#039;&#039; folder, run: &lt;br /&gt;
&lt;br /&gt;
 git clone git://git.videolan.org/vlc-ports/android.git&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Compile ====&lt;br /&gt;
&#039;&#039;&#039;Read&#039;&#039;&#039; compile.sh first, as it contains some very useful and important information. Then run it:&lt;br /&gt;
 sh compile.sh&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; At this point, you will get an autogenerated debug apk in the bin/ folder, signed with a debug key.&lt;br /&gt;
&lt;br /&gt;
In order to build a non-debug package:&lt;br /&gt;
 sh compile.sh release&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; At this point, you will get an unsigned release apk in the bin/ folder, which you will have to sign and [http://developer.android.com/tools/help/zipalign.html zipalign].&lt;br /&gt;
&lt;br /&gt;
==== Package in Eclipse [optional] ====&lt;br /&gt;
# In Eclipse, create a &#039;&#039;new Android Project from existing source&#039;&#039; by importing from the &#039;&#039;vlc-android&#039;&#039; path.&lt;br /&gt;
# Import the three projects from the &#039;&#039;java-libs&#039;&#039; folder.&lt;br /&gt;
# Export unsigned/signed apk.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Building against JDK6 is recommended for optimal compatibility (Set &#039;&#039;Java Compiler Compliance&#039;&#039; to 1.6).&lt;br /&gt;
&lt;br /&gt;
=== Run ===&lt;br /&gt;
Run it and enjoy!&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
Here are some helpful links if you wish to debug VLC on Android:&lt;br /&gt;
* [http://developer.android.com/guide/developing/debugging/ddms.html DDMS] &lt;br /&gt;
* [http://developer.android.com/guide/developing/tools/logcat.html Logcat]&lt;br /&gt;
&lt;br /&gt;
===Native debugging===&lt;br /&gt;
If you run VLC Android and you get a crash that looks something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
I/DEBUG   (  958): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***&lt;br /&gt;
I/DEBUG   (  958): Build fingerprint: &#039;MOTO/MBTCA/sesame/XT300:2.1-update1/SESLA_U3_01.71.0/110110:user/release-keys&#039;&lt;br /&gt;
I/DEBUG   (  958): pid: 1733, tid: 1733 &amp;gt;&amp;gt;&amp;gt; org.videolan.vlc &amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
I/DEBUG   (  958): signal 11 (SIGSEGV), fault addr 4237be3c&lt;br /&gt;
I/DEBUG   (  958):  r0 423640a0  r1 7ece77ac  r2 42bccdac  r3 4237be38&lt;br /&gt;
I/DEBUG   (  958):  r4 00000000  r5 42bccdac  r6 002ed088  r7 002ed018&lt;br /&gt;
I/DEBUG   (  958):  r8 7ece78e8  r9 2bafa844  10 0000000e  fp 7ece794c&lt;br /&gt;
I/DEBUG   (  958):  ip 00002ba0  sp 7ece7784  lr 423652e4  pc 4237be3c  cpsr 60000010&lt;br /&gt;
I/DEBUG   (  958):          #00  pc 0037be3c  /data/data/org.videolan.vlc/lib/libvlcjni.so&lt;br /&gt;
I/DEBUG   (  958):          #01  lr 423652e4  /data/data/org.videolan.vlc/lib/libvlcjni.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have a &#039;&#039;&#039;native crash&#039;&#039;&#039;. To debug it, you need to have compiled VLC as above and installed it on your device. Once your compiled VLC build is on your device, you can find the &#039;&#039;&#039;backtrace&#039;&#039;&#039; as follows:&lt;br /&gt;
&lt;br /&gt;
# Make sure you are in the directory that you checked out VLC-Android in.&lt;br /&gt;
# cd vlc-android&lt;br /&gt;
# $ANDROID_NDK/ndk-gdb --verbose --force --start&lt;br /&gt;
At this point, lots of stuff will appear:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Android NDK installation path: /opt/android-ndk-r8c&lt;br /&gt;
Using default adb command: /opt/android-sdk-linux_x86/platform-tools/adb&lt;br /&gt;
ADB version found: Android Debug Bridge version 1.0.29&lt;br /&gt;
Using ADB flags: &lt;br /&gt;
Using auto-detected project path: .&lt;br /&gt;
Found package name: org.videolan.vlc&lt;br /&gt;
...bunch of stuff skipped...&lt;br /&gt;
GNU gdb (GDB) 7.3.1-gg2&lt;br /&gt;
Copyright (C) 2011 Free Software Foundation, Inc.&lt;br /&gt;
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;&lt;br /&gt;
This is free software: you are free to change and redistribute it.&lt;br /&gt;
There is NO WARRANTY, to the extent permitted by law.  Type &amp;quot;show copying&amp;quot;&lt;br /&gt;
and &amp;quot;show warranty&amp;quot; for details.&lt;br /&gt;
This GDB was configured as &amp;quot;--host=x86_64-linux-gnu --target=arm-linux-android&amp;quot;.&lt;br /&gt;
For bug reporting instructions, please see:&lt;br /&gt;
&amp;lt;http://www.gnu.org/software/gdb/bugs/&amp;gt;.&lt;br /&gt;
Remote debugging from host 0.0.0.0&lt;br /&gt;
...bunch of stuff skipped...&lt;br /&gt;
libthread_db:td_ta_new: Victory: We can debug theads!&lt;br /&gt;
warning: Breakpoint address adjusted from 0x400deaa5 to 0x400deaa4.&lt;br /&gt;
0x40107a40 in epoll_wait () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
(gdb)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;At this point, type in &amp;quot;continue&amp;quot; and press Enter.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Perform the actions you did to make it crash. It will spit out something like this:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;
0x401120ae in ?? () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now, just type in &amp;quot;&#039;&#039;&#039;bt full&#039;&#039;&#039;&amp;quot; (excluding the quotation marks) and press Enter. That is your backtrace that you should give to the developers when they ask for it (possibly on a [http://paste.kde.org/ pastebin], too).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(gdb) bt full&lt;br /&gt;
#0  0x401120ae in ?? () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#1  0x40107bd8 in abort () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#2  0x40118e6a in __assert2 () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#3  0x5e0cdfdc in var_SetChecked (p_this=0x40134b94, psz_name=0x5ea2fcb8 &amp;quot;rate&amp;quot;, expected_type=80, val=...) at ../../src/misc/variables.c:711&lt;br /&gt;
        i_ret = 0&lt;br /&gt;
        p_var = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
        oldval = {i_int = 4742037487051810480, b_bool = 176, f_float = 2.27765068e+14, psz_string = 0x574f26b0 &amp;quot;X\270|B\001\001&amp;quot;, p_address = 0x574f26b0, &lt;br /&gt;
          p_object = 0x574f26b0, p_list = 0x574f26b0, i_time = 4742037487051810480, coords = {x = 1464805040, y = 1104091640}}&lt;br /&gt;
        __func__ = &amp;quot;var_SetChecked&amp;quot;&lt;br /&gt;
        p_priv = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#4  0x5e06dd9c in var_SetFloat (f=1.41421354, psz_name=0x5ea2fcb8 &amp;quot;rate____sample_backtrace&amp;quot;, p_obj=0x0) at ../../include/vlc_variables.h:262&lt;br /&gt;
        val = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#5  libvlc_media_player_set_rate (p_mi=0x0, rate=1.41421354) at ../../lib/media_player.c:1252&lt;br /&gt;
        p_input_thread = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#6  0x5de7bd18 in Java_org_videolan_vlc_LibVLC_setRate (env=0x41cf0470, thiz=0x8ab00021, rate=1.41421354) at jni/libvlcjni.c:678&lt;br /&gt;
        mp = 0x0&lt;br /&gt;
#7  0x4076de34 in ?? ()&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#8  0x4076de34 in ?? ()&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
Backtrace stopped: previous frame identical to this frame (corrupt stack?)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Outdated Awk ===&lt;br /&gt;
If you receive the error message while building:&lt;br /&gt;
&lt;br /&gt;
 Android NDK: Host &#039;awk&#039; tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !    &lt;br /&gt;
&lt;br /&gt;
The prebuilt version of Awk that comes with the Android NDK is outdated. Defining HOST_AWK in your environment does nothing as the system still tries to just the one that comes with the Android NDK. To get around this issue, simply rename or delete the Awk binary that comes with the Android NDK. For example to move it:&lt;br /&gt;
&lt;br /&gt;
 mv $ANDROID_NDK/prebuilt/linux-x86/bin/awk $ANDROID_NDK/prebuilt/linux-x86/bin/awk.old&lt;br /&gt;
&lt;br /&gt;
=== Can&#039;t find Ant ===&lt;br /&gt;
If you&#039;re new to Ant, please be aware that some Linux distributions don&#039;t install it in the usual spot as with other programs. Try checking to see if the directory /usr/share/java/apache-ant/bin exists and add it to your path.&lt;br /&gt;
&lt;br /&gt;
===Outdated autotools-dev===&lt;br /&gt;
If you get the following error message you may have have an outdated version of autotools-dev:&lt;br /&gt;
  Invalid configuration `arm-linux-androideabi&#039;: system `androideabi&#039; not recognized&lt;br /&gt;
You may first want to check if your distribution has any available updates for this package.  Alternatively, you can manually update your config.guess and config.sub files from here: [http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree].  These files are typically located in /usr/share/misc on Debian based distributions.&lt;br /&gt;
&lt;br /&gt;
===autoreconf: automake failed with exit status: 1===&lt;br /&gt;
 automake: warnings are treated as errors&lt;br /&gt;
 configure.ac:41: warning: The &#039;AM_PROG_MKDIR_P&#039; macro is deprecated, and will soon be removed.&lt;br /&gt;
 configure.ac:41: You should use the Autoconf-provided &#039;AC_PROG_MKDIR_P&#039; macro instead,&lt;br /&gt;
 configure.ac:41: and use &#039;$(MKDIR_P)&#039; instead of &#039;$(mkdir_p)&#039;in your Makefile.am files.&lt;br /&gt;
&lt;br /&gt;
If you are using Automake 1.13 or higher, you must remove -Werror from vlc/contrib/android/gnutls/configure.ac to continue. (First reported in [http://forum.videolan.org/viewtopic.php?f=35&amp;amp;t=108927])&lt;br /&gt;
&lt;br /&gt;
===autoreconf: automake failed with exit status: 1 ===&lt;br /&gt;
 make: *** [dvdnav] Error 1&lt;br /&gt;
&lt;br /&gt;
You might be able to workaround this error by forcing libtool definition as follows.&lt;br /&gt;
 export top_builddir=&amp;lt;build directory&amp;gt;/vlc/extras/tools/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Can&#039;t run aapt or adb on Linux 64-bit===&lt;br /&gt;
You must install the 32-bit libraries of the following libraries, as the precompiled Google binaries depend on them: &#039;&#039;libc6&#039;&#039;, &#039;&#039;libstdc++6&#039;&#039;, and &#039;&#039;zlib&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
New versions of Debian and/or Ubuntu require you to install i386 versions of packages:&lt;br /&gt;
 sudo dpkg --add-architecture i386&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install zlib1g:i386 libstdc++6:i386 libc6:i386&lt;br /&gt;
&lt;br /&gt;
If you are under &#039;&#039;old versions&#039;&#039; of Ubuntu, install ia32-libs can help you solve this issue.&lt;br /&gt;
 sudo apt-get install ia32-libs&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Android Report bugs]] - Bug reporting guide for VLC-Android.&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]] [[Category:Android]]&lt;/div&gt;</summary>
		<author><name>Mik</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=AndroidCompile&amp;diff=26951</id>
		<title>AndroidCompile</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=AndroidCompile&amp;diff=26951"/>
		<updated>2014-08-09T10:34:24Z</updated>

		<summary type="html">&lt;p&gt;Mik: reflect workaround used under ubuntu 12.04 x64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is an introduction to the compilation of &#039;&#039;&#039;VLC for Android&#039;&#039;&#039; on Linux. &lt;br /&gt;
&lt;br /&gt;
==Eclipse, SDK and NDK installation==&lt;br /&gt;
&lt;br /&gt;
=== Requirements  ===&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; be on Linux (or OSX if you know what you are doing), and a recent one.&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; have installed: &#039;&#039;apache-ant&#039;&#039; (or &#039;&#039;ant&#039;&#039;), &#039;&#039;autoconf&#039;&#039;, &#039;&#039;automake&#039;&#039;, &#039;&#039;autopoint&#039;&#039;, &#039;&#039;cmake&#039;&#039;, &#039;&#039;gawk&#039;&#039; (or &#039;&#039;nawk&#039;&#039;), &#039;&#039;gcc&#039;&#039;, &#039;&#039;g++&#039;&#039;, &#039;&#039;libtool&#039;&#039;, &#039;&#039;m4&#039;&#039;, &#039;&#039;patch&#039;&#039;, &#039;&#039;pkg-config&#039;&#039;, &#039;&#039;ragel&#039;&#039;, &#039;&#039;subversion&#039;&#039;, &#039;&#039;unzip&#039;&#039;, and very up-to-date versions of those tools.&lt;br /&gt;
** Special note: Additionally, if you are compiling for an Android-x86 device, you should install &#039;&#039;yasm&#039;&#039;.&lt;br /&gt;
** &amp;lt;span style=&amp;quot;color: #ff0000&amp;quot;&amp;gt;&#039;&#039;&#039;64-bit users&#039;&#039;&#039;&amp;lt;/span&amp;gt;: You must install these 32-bit libs as specified here: [[AndroidCompile#Can.27t_run_aapt_or_adb_on_Linux_64-bit]]&lt;br /&gt;
** Optional: &#039;&#039;7z&#039;&#039; (for SDK package generation)&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; install: &#039;&#039;git&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Android SDK===&lt;br /&gt;
# Create a working directory &#039;&#039;android&#039;&#039;. &lt;br /&gt;
# Go to [http://developer.android.com/sdk/index.html Android SDK page] and download the latest SDK for linux. &lt;br /&gt;
# Decompress into &#039;&#039;android&#039;&#039; folder. &lt;br /&gt;
# Run &#039;&#039;tools/android&#039;&#039; (from the command line you can also run: &amp;quot;tools/android update sdk -u -t platform,platform-tool,extra&amp;quot;) &lt;br /&gt;
# In the tool, install &#039;&#039;&#039;&amp;quot;SDK Platform Android 4.4.2, API 19&amp;quot;&#039;&#039;&#039;, and follow the instructions.&lt;br /&gt;
&lt;br /&gt;
You can have [http://developer.android.com/sdk/installing.html more details], if needed.&lt;br /&gt;
&lt;br /&gt;
===Android NDK===&lt;br /&gt;
# Check that the SDK installation is correct. &lt;br /&gt;
# Go to the [http://developer.android.com/sdk/ndk/index.html Android NDK page] and download the &#039;&#039;&#039;NDK r9&#039;&#039;&#039; for Linux. &lt;br /&gt;
# Decompress it into the &#039;&#039;android&#039;&#039; folder, next to your android-sdk-linux folder.&lt;br /&gt;
&lt;br /&gt;
===Eclipse===&lt;br /&gt;
As used by your distribution, install Eclipse with your package manager: &lt;br /&gt;
&lt;br /&gt;
 apt-get install eclipse (debian)&lt;br /&gt;
 yum install eclipse (Fedora)&lt;br /&gt;
 pacman -S eclipse (Arch)&lt;br /&gt;
 emerge -av eclipse-sdk (Gentoo)&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And run it, at least once, and then quit eclipse. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; On Debian-based distributions it is better to download Eclipse indigo builds from the official website: http://www.eclipse.org/downloads/, otherwise it can lead to an error when importing the ADT plugin (see following).&lt;br /&gt;
&lt;br /&gt;
====ADT====&lt;br /&gt;
The &#039;&#039;&#039;ADT&#039;&#039;&#039; plugin is required to compile on Android. &lt;br /&gt;
&lt;br /&gt;
#Go to [http://developer.android.com/sdk/eclipse-adt.html#installing ADT page]. &lt;br /&gt;
#Start Eclipse, then select Help &amp;amp;gt; Install New Software.... &lt;br /&gt;
#Add the &amp;quot;ADT Plugin&amp;quot; repository with https://dl-ssl.google.com/android/eclipse/ as &#039;&#039;&#039;URL&#039;&#039;&#039; &lt;br /&gt;
#Validate and select the checkbox next to Developer Tools and click Next, Next, Finish. &lt;br /&gt;
#Restart Eclipse. &lt;br /&gt;
#Go to &#039;&#039;Menu&#039;&#039; &amp;amp;gt; &#039;&#039;Window&#039;&#039; &amp;amp;gt; &#039;&#039;Preferences...&#039;&#039; and then &#039;&#039;Android&#039;&#039; from the left pane. &lt;br /&gt;
#Point the SDK Location in to your downloaded SDK directory. &lt;br /&gt;
#Ok, and quit Eclipse.&lt;br /&gt;
&lt;br /&gt;
See [http://developer.android.com/sdk/eclipse-adt.html#troubleshooting extra information here].&lt;br /&gt;
&lt;br /&gt;
== Environment setup  ==&lt;br /&gt;
Set $ANDROID_SDK to point to your Android SDK directory &lt;br /&gt;
&lt;br /&gt;
 export ANDROID_SDK=/path/to/android-sdk&lt;br /&gt;
&lt;br /&gt;
Set $ANDROID_NDK to point to your Android NDK directory &lt;br /&gt;
&lt;br /&gt;
 export ANDROID_NDK=/path/to/android-ndk&lt;br /&gt;
&lt;br /&gt;
Add some useful binaries to your $PATH &lt;br /&gt;
&lt;br /&gt;
 export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools&lt;br /&gt;
&lt;br /&gt;
=== Devices ===&lt;br /&gt;
&lt;br /&gt;
You need to export the ABI for your device. &amp;lt;code&amp;gt;armeabi-v7a&amp;lt;/code&amp;gt; is for devices with ARMv7 or above (regardless of [[wikipedia:ARM_architecture#Advanced_SIMD_.28NEON.29|NEON]]), any other ARM device uses &amp;lt;code&amp;gt;armeabi&amp;lt;/code&amp;gt;, x86/Intel devices use &amp;lt;code&amp;gt;x86&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
or&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
&lt;br /&gt;
For a build that will run on x86 Android devices (e.g. certain Intel Android smartphones):&lt;br /&gt;
 export ANDROID_ABI=x86&lt;br /&gt;
&lt;br /&gt;
For a build that will run on MIPS devices (i.e. Ainol Novo tablets):&lt;br /&gt;
 export ANDROID_ABI=mips&lt;br /&gt;
&lt;br /&gt;
The following flags (NEON, FPU, ARMV6) are relevant only for the &#039;&#039;armeabi&#039;&#039; ABI:&lt;br /&gt;
&lt;br /&gt;
If you plan to use an armeabi device that does not support FPU, you need a build without FPU&lt;br /&gt;
 export NO_FPU=1&lt;br /&gt;
&lt;br /&gt;
If you plan to use an ARMv5 armeabi device (read: Android Emulator), you need a build without ARMv6&lt;br /&gt;
 export NO_ARMV6=1&lt;br /&gt;
&lt;br /&gt;
==== Examples====&lt;br /&gt;
* For a normal (2012 consumer phone or tablet), like Cortex-A8 or Cortex-A9&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
* For a Tegra2 device&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
* For an ARMv6 device&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
* For an ARMv6 device without FPU&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
 export NO_FPU=1&lt;br /&gt;
* For an ARMv5 device or the emulator&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
 export NO_ARMV6=1&lt;br /&gt;
* For a x86 device (e.g. Android-x86, Google TV, Logitech TV, etc)&lt;br /&gt;
 export ANDROID_ABI=x86&lt;br /&gt;
* For a MIPS device (i.e. Ainol Novo tablets):&lt;br /&gt;
 export ANDROID_ABI=mips&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Those exports must be set at all times, notably for the contribs and the configure.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Building ==&lt;br /&gt;
=== Get VLC Source ===&lt;br /&gt;
Clone the source from the VLC git!&lt;br /&gt;
&lt;br /&gt;
In your &#039;&#039;android&#039;&#039; folder, run: &lt;br /&gt;
&lt;br /&gt;
 git clone git://git.videolan.org/vlc-ports/android.git&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Compile ====&lt;br /&gt;
&#039;&#039;&#039;Read&#039;&#039;&#039; compile.sh first, as it contains some very useful and important information. Then run it:&lt;br /&gt;
 sh compile.sh&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; At this point, you will get an autogenerated debug apk in the bin/ folder, signed with a debug key.&lt;br /&gt;
&lt;br /&gt;
In order to build a non-debug package:&lt;br /&gt;
 sh compile.sh release&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; At this point, you will get an unsigned release apk in the bin/ folder, which you will have to sign and [http://developer.android.com/tools/help/zipalign.html zipalign].&lt;br /&gt;
&lt;br /&gt;
==== Package in Eclipse [optional] ====&lt;br /&gt;
# In Eclipse, create a &#039;&#039;new Android Project from existing source&#039;&#039; by importing from the &#039;&#039;vlc-android&#039;&#039; path.&lt;br /&gt;
# Import the three projects from the &#039;&#039;java-libs&#039;&#039; folder.&lt;br /&gt;
# Export unsigned/signed apk.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Building against JDK6 is recommended for optimal compatibility (Set &#039;&#039;Java Compiler Compliance&#039;&#039; to 1.6).&lt;br /&gt;
&lt;br /&gt;
=== Run ===&lt;br /&gt;
Run it and enjoy!&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
Here are some helpful links if you wish to debug VLC on Android:&lt;br /&gt;
* [http://developer.android.com/guide/developing/debugging/ddms.html DDMS] &lt;br /&gt;
* [http://developer.android.com/guide/developing/tools/logcat.html Logcat]&lt;br /&gt;
&lt;br /&gt;
===Native debugging===&lt;br /&gt;
If you run VLC Android and you get a crash that looks something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
I/DEBUG   (  958): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***&lt;br /&gt;
I/DEBUG   (  958): Build fingerprint: &#039;MOTO/MBTCA/sesame/XT300:2.1-update1/SESLA_U3_01.71.0/110110:user/release-keys&#039;&lt;br /&gt;
I/DEBUG   (  958): pid: 1733, tid: 1733 &amp;gt;&amp;gt;&amp;gt; org.videolan.vlc &amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
I/DEBUG   (  958): signal 11 (SIGSEGV), fault addr 4237be3c&lt;br /&gt;
I/DEBUG   (  958):  r0 423640a0  r1 7ece77ac  r2 42bccdac  r3 4237be38&lt;br /&gt;
I/DEBUG   (  958):  r4 00000000  r5 42bccdac  r6 002ed088  r7 002ed018&lt;br /&gt;
I/DEBUG   (  958):  r8 7ece78e8  r9 2bafa844  10 0000000e  fp 7ece794c&lt;br /&gt;
I/DEBUG   (  958):  ip 00002ba0  sp 7ece7784  lr 423652e4  pc 4237be3c  cpsr 60000010&lt;br /&gt;
I/DEBUG   (  958):          #00  pc 0037be3c  /data/data/org.videolan.vlc/lib/libvlcjni.so&lt;br /&gt;
I/DEBUG   (  958):          #01  lr 423652e4  /data/data/org.videolan.vlc/lib/libvlcjni.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have a &#039;&#039;&#039;native crash&#039;&#039;&#039;. To debug it, you need to have compiled VLC as above and installed it on your device. Once your compiled VLC build is on your device, you can find the &#039;&#039;&#039;backtrace&#039;&#039;&#039; as follows:&lt;br /&gt;
&lt;br /&gt;
# Make sure you are in the directory that you checked out VLC-Android in.&lt;br /&gt;
# cd vlc-android&lt;br /&gt;
# $ANDROID_NDK/ndk-gdb --verbose --force --start&lt;br /&gt;
At this point, lots of stuff will appear:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Android NDK installation path: /opt/android-ndk-r8c&lt;br /&gt;
Using default adb command: /opt/android-sdk-linux_x86/platform-tools/adb&lt;br /&gt;
ADB version found: Android Debug Bridge version 1.0.29&lt;br /&gt;
Using ADB flags: &lt;br /&gt;
Using auto-detected project path: .&lt;br /&gt;
Found package name: org.videolan.vlc&lt;br /&gt;
...bunch of stuff skipped...&lt;br /&gt;
GNU gdb (GDB) 7.3.1-gg2&lt;br /&gt;
Copyright (C) 2011 Free Software Foundation, Inc.&lt;br /&gt;
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;&lt;br /&gt;
This is free software: you are free to change and redistribute it.&lt;br /&gt;
There is NO WARRANTY, to the extent permitted by law.  Type &amp;quot;show copying&amp;quot;&lt;br /&gt;
and &amp;quot;show warranty&amp;quot; for details.&lt;br /&gt;
This GDB was configured as &amp;quot;--host=x86_64-linux-gnu --target=arm-linux-android&amp;quot;.&lt;br /&gt;
For bug reporting instructions, please see:&lt;br /&gt;
&amp;lt;http://www.gnu.org/software/gdb/bugs/&amp;gt;.&lt;br /&gt;
Remote debugging from host 0.0.0.0&lt;br /&gt;
...bunch of stuff skipped...&lt;br /&gt;
libthread_db:td_ta_new: Victory: We can debug theads!&lt;br /&gt;
warning: Breakpoint address adjusted from 0x400deaa5 to 0x400deaa4.&lt;br /&gt;
0x40107a40 in epoll_wait () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
(gdb)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;At this point, type in &amp;quot;continue&amp;quot; and press Enter.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Perform the actions you did to make it crash. It will spit out something like this:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;
0x401120ae in ?? () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now, just type in &amp;quot;&#039;&#039;&#039;bt full&#039;&#039;&#039;&amp;quot; (excluding the quotation marks) and press Enter. That is your backtrace that you should give to the developers when they ask for it (possibly on a [http://paste.kde.org/ pastebin], too).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(gdb) bt full&lt;br /&gt;
#0  0x401120ae in ?? () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#1  0x40107bd8 in abort () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#2  0x40118e6a in __assert2 () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#3  0x5e0cdfdc in var_SetChecked (p_this=0x40134b94, psz_name=0x5ea2fcb8 &amp;quot;rate&amp;quot;, expected_type=80, val=...) at ../../src/misc/variables.c:711&lt;br /&gt;
        i_ret = 0&lt;br /&gt;
        p_var = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
        oldval = {i_int = 4742037487051810480, b_bool = 176, f_float = 2.27765068e+14, psz_string = 0x574f26b0 &amp;quot;X\270|B\001\001&amp;quot;, p_address = 0x574f26b0, &lt;br /&gt;
          p_object = 0x574f26b0, p_list = 0x574f26b0, i_time = 4742037487051810480, coords = {x = 1464805040, y = 1104091640}}&lt;br /&gt;
        __func__ = &amp;quot;var_SetChecked&amp;quot;&lt;br /&gt;
        p_priv = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#4  0x5e06dd9c in var_SetFloat (f=1.41421354, psz_name=0x5ea2fcb8 &amp;quot;rate____sample_backtrace&amp;quot;, p_obj=0x0) at ../../include/vlc_variables.h:262&lt;br /&gt;
        val = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#5  libvlc_media_player_set_rate (p_mi=0x0, rate=1.41421354) at ../../lib/media_player.c:1252&lt;br /&gt;
        p_input_thread = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#6  0x5de7bd18 in Java_org_videolan_vlc_LibVLC_setRate (env=0x41cf0470, thiz=0x8ab00021, rate=1.41421354) at jni/libvlcjni.c:678&lt;br /&gt;
        mp = 0x0&lt;br /&gt;
#7  0x4076de34 in ?? ()&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#8  0x4076de34 in ?? ()&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
Backtrace stopped: previous frame identical to this frame (corrupt stack?)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Outdated Awk ===&lt;br /&gt;
If you receive the error message while building:&lt;br /&gt;
&lt;br /&gt;
 Android NDK: Host &#039;awk&#039; tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !    &lt;br /&gt;
&lt;br /&gt;
The prebuilt version of Awk that comes with the Android NDK is outdated. Defining HOST_AWK in your environment does nothing as the system still tries to just the one that comes with the Android NDK. To get around this issue, simply rename or delete the Awk binary that comes with the Android NDK. For example to move it:&lt;br /&gt;
&lt;br /&gt;
 mv $ANDROID_NDK/prebuilt/linux-x86/bin/awk $ANDROID_NDK/prebuilt/linux-x86/bin/awk.old&lt;br /&gt;
&lt;br /&gt;
=== Can&#039;t find Ant ===&lt;br /&gt;
If you&#039;re new to Ant, please be aware that some Linux distributions don&#039;t install it in the usual spot as with other programs. Try checking to see if the directory /usr/share/java/apache-ant/bin exists and add it to your path.&lt;br /&gt;
&lt;br /&gt;
===Outdated autotools-dev===&lt;br /&gt;
If you get the following error message you may have have an outdated version of autotools-dev:&lt;br /&gt;
  Invalid configuration `arm-linux-androideabi&#039;: system `androideabi&#039; not recognized&lt;br /&gt;
You may first want to check if your distribution has any available updates for this package.  Alternatively, you can manually update your config.guess and config.sub files from here: [http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree].  These files are typically located in /usr/share/misc on Debian based distributions.&lt;br /&gt;
&lt;br /&gt;
===autoreconf: automake failed with exit status: 1===&lt;br /&gt;
 automake: warnings are treated as errors&lt;br /&gt;
 configure.ac:41: warning: The &#039;AM_PROG_MKDIR_P&#039; macro is deprecated, and will soon be removed.&lt;br /&gt;
 configure.ac:41: You should use the Autoconf-provided &#039;AC_PROG_MKDIR_P&#039; macro instead,&lt;br /&gt;
 configure.ac:41: and use &#039;$(MKDIR_P)&#039; instead of &#039;$(mkdir_p)&#039;in your Makefile.am files.&lt;br /&gt;
&lt;br /&gt;
If you are using Automake 1.13 or higher, you must remove -Werror from vlc/contrib/android/gnutls/configure.ac to continue. (First reported in [http://forum.videolan.org/viewtopic.php?f=35&amp;amp;t=108927])&lt;br /&gt;
&lt;br /&gt;
===autoreconf: automake failed with exit status ===&lt;br /&gt;
 make: *** [dvdnav] Error 1&lt;br /&gt;
&lt;br /&gt;
You might be able to workaround this error by forcing libtool definition as follows.&lt;br /&gt;
 export top_builddir=&amp;lt;build directory&amp;gt;/vlc/extras/tools/pkgconfig&lt;br /&gt;
&lt;br /&gt;
===Can&#039;t run aapt or adb on Linux 64-bit===&lt;br /&gt;
You must install the 32-bit libraries of the following libraries, as the precompiled Google binaries depend on them: &#039;&#039;libc6&#039;&#039;, &#039;&#039;libstdc++6&#039;&#039;, and &#039;&#039;zlib&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
New versions of Debian and/or Ubuntu require you to install i386 versions of packages:&lt;br /&gt;
 sudo dpkg --add-architecture i386&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install zlib1g:i386 libstdc++6:i386 libc6:i386&lt;br /&gt;
&lt;br /&gt;
If you are under &#039;&#039;old versions&#039;&#039; of Ubuntu, install ia32-libs can help you solve this issue.&lt;br /&gt;
 sudo apt-get install ia32-libs&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Android Report bugs]] - Bug reporting guide for VLC-Android.&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]] [[Category:Android]]&lt;/div&gt;</summary>
		<author><name>Mik</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=AndroidCompile&amp;diff=26950</id>
		<title>AndroidCompile</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=AndroidCompile&amp;diff=26950"/>
		<updated>2014-08-09T10:25:56Z</updated>

		<summary type="html">&lt;p&gt;Mik: On or before 2014-08-09, the build required API 19.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is an introduction to the compilation of &#039;&#039;&#039;VLC for Android&#039;&#039;&#039; on Linux. &lt;br /&gt;
&lt;br /&gt;
==Eclipse, SDK and NDK installation==&lt;br /&gt;
&lt;br /&gt;
=== Requirements  ===&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; be on Linux (or OSX if you know what you are doing), and a recent one.&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; have installed: &#039;&#039;apache-ant&#039;&#039; (or &#039;&#039;ant&#039;&#039;), &#039;&#039;autoconf&#039;&#039;, &#039;&#039;automake&#039;&#039;, &#039;&#039;autopoint&#039;&#039;, &#039;&#039;cmake&#039;&#039;, &#039;&#039;gawk&#039;&#039; (or &#039;&#039;nawk&#039;&#039;), &#039;&#039;gcc&#039;&#039;, &#039;&#039;g++&#039;&#039;, &#039;&#039;libtool&#039;&#039;, &#039;&#039;m4&#039;&#039;, &#039;&#039;patch&#039;&#039;, &#039;&#039;pkg-config&#039;&#039;, &#039;&#039;ragel&#039;&#039;, &#039;&#039;subversion&#039;&#039;, &#039;&#039;unzip&#039;&#039;, and very up-to-date versions of those tools.&lt;br /&gt;
** Special note: Additionally, if you are compiling for an Android-x86 device, you should install &#039;&#039;yasm&#039;&#039;.&lt;br /&gt;
** &amp;lt;span style=&amp;quot;color: #ff0000&amp;quot;&amp;gt;&#039;&#039;&#039;64-bit users&#039;&#039;&#039;&amp;lt;/span&amp;gt;: You must install these 32-bit libs as specified here: [[AndroidCompile#Can.27t_run_aapt_or_adb_on_Linux_64-bit]]&lt;br /&gt;
** Optional: &#039;&#039;7z&#039;&#039; (for SDK package generation)&lt;br /&gt;
* You &#039;&#039;&#039;MUST&#039;&#039;&#039; install: &#039;&#039;git&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Android SDK===&lt;br /&gt;
# Create a working directory &#039;&#039;android&#039;&#039;. &lt;br /&gt;
# Go to [http://developer.android.com/sdk/index.html Android SDK page] and download the latest SDK for linux. &lt;br /&gt;
# Decompress into &#039;&#039;android&#039;&#039; folder. &lt;br /&gt;
# Run &#039;&#039;tools/android&#039;&#039; (from the command line you can also run: &amp;quot;tools/android update sdk -u -t platform,platform-tool,extra&amp;quot;) &lt;br /&gt;
# In the tool, install &#039;&#039;&#039;&amp;quot;SDK Platform Android 4.4.2, API 19&amp;quot;&#039;&#039;&#039;, and follow the instructions.&lt;br /&gt;
&lt;br /&gt;
You can have [http://developer.android.com/sdk/installing.html more details], if needed.&lt;br /&gt;
&lt;br /&gt;
===Android NDK===&lt;br /&gt;
# Check that the SDK installation is correct. &lt;br /&gt;
# Go to the [http://developer.android.com/sdk/ndk/index.html Android NDK page] and download the &#039;&#039;&#039;NDK r9&#039;&#039;&#039; for Linux. &lt;br /&gt;
# Decompress it into the &#039;&#039;android&#039;&#039; folder, next to your android-sdk-linux folder.&lt;br /&gt;
&lt;br /&gt;
===Eclipse===&lt;br /&gt;
As used by your distribution, install Eclipse with your package manager: &lt;br /&gt;
&lt;br /&gt;
 apt-get install eclipse (debian)&lt;br /&gt;
 yum install eclipse (Fedora)&lt;br /&gt;
 pacman -S eclipse (Arch)&lt;br /&gt;
 emerge -av eclipse-sdk (Gentoo)&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And run it, at least once, and then quit eclipse. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; On Debian-based distributions it is better to download Eclipse indigo builds from the official website: http://www.eclipse.org/downloads/, otherwise it can lead to an error when importing the ADT plugin (see following).&lt;br /&gt;
&lt;br /&gt;
====ADT====&lt;br /&gt;
The &#039;&#039;&#039;ADT&#039;&#039;&#039; plugin is required to compile on Android. &lt;br /&gt;
&lt;br /&gt;
#Go to [http://developer.android.com/sdk/eclipse-adt.html#installing ADT page]. &lt;br /&gt;
#Start Eclipse, then select Help &amp;amp;gt; Install New Software.... &lt;br /&gt;
#Add the &amp;quot;ADT Plugin&amp;quot; repository with https://dl-ssl.google.com/android/eclipse/ as &#039;&#039;&#039;URL&#039;&#039;&#039; &lt;br /&gt;
#Validate and select the checkbox next to Developer Tools and click Next, Next, Finish. &lt;br /&gt;
#Restart Eclipse. &lt;br /&gt;
#Go to &#039;&#039;Menu&#039;&#039; &amp;amp;gt; &#039;&#039;Window&#039;&#039; &amp;amp;gt; &#039;&#039;Preferences...&#039;&#039; and then &#039;&#039;Android&#039;&#039; from the left pane. &lt;br /&gt;
#Point the SDK Location in to your downloaded SDK directory. &lt;br /&gt;
#Ok, and quit Eclipse.&lt;br /&gt;
&lt;br /&gt;
See [http://developer.android.com/sdk/eclipse-adt.html#troubleshooting extra information here].&lt;br /&gt;
&lt;br /&gt;
== Environment setup  ==&lt;br /&gt;
Set $ANDROID_SDK to point to your Android SDK directory &lt;br /&gt;
&lt;br /&gt;
 export ANDROID_SDK=/path/to/android-sdk&lt;br /&gt;
&lt;br /&gt;
Set $ANDROID_NDK to point to your Android NDK directory &lt;br /&gt;
&lt;br /&gt;
 export ANDROID_NDK=/path/to/android-ndk&lt;br /&gt;
&lt;br /&gt;
Add some useful binaries to your $PATH &lt;br /&gt;
&lt;br /&gt;
 export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools&lt;br /&gt;
&lt;br /&gt;
=== Devices ===&lt;br /&gt;
&lt;br /&gt;
You need to export the ABI for your device. &amp;lt;code&amp;gt;armeabi-v7a&amp;lt;/code&amp;gt; is for devices with ARMv7 or above (regardless of [[wikipedia:ARM_architecture#Advanced_SIMD_.28NEON.29|NEON]]), any other ARM device uses &amp;lt;code&amp;gt;armeabi&amp;lt;/code&amp;gt;, x86/Intel devices use &amp;lt;code&amp;gt;x86&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
or&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
&lt;br /&gt;
For a build that will run on x86 Android devices (e.g. certain Intel Android smartphones):&lt;br /&gt;
 export ANDROID_ABI=x86&lt;br /&gt;
&lt;br /&gt;
For a build that will run on MIPS devices (i.e. Ainol Novo tablets):&lt;br /&gt;
 export ANDROID_ABI=mips&lt;br /&gt;
&lt;br /&gt;
The following flags (NEON, FPU, ARMV6) are relevant only for the &#039;&#039;armeabi&#039;&#039; ABI:&lt;br /&gt;
&lt;br /&gt;
If you plan to use an armeabi device that does not support FPU, you need a build without FPU&lt;br /&gt;
 export NO_FPU=1&lt;br /&gt;
&lt;br /&gt;
If you plan to use an ARMv5 armeabi device (read: Android Emulator), you need a build without ARMv6&lt;br /&gt;
 export NO_ARMV6=1&lt;br /&gt;
&lt;br /&gt;
==== Examples====&lt;br /&gt;
* For a normal (2012 consumer phone or tablet), like Cortex-A8 or Cortex-A9&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
* For a Tegra2 device&lt;br /&gt;
 export ANDROID_ABI=armeabi-v7a&lt;br /&gt;
* For an ARMv6 device&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
* For an ARMv6 device without FPU&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
 export NO_FPU=1&lt;br /&gt;
* For an ARMv5 device or the emulator&lt;br /&gt;
 export ANDROID_ABI=armeabi&lt;br /&gt;
 export NO_ARMV6=1&lt;br /&gt;
* For a x86 device (e.g. Android-x86, Google TV, Logitech TV, etc)&lt;br /&gt;
 export ANDROID_ABI=x86&lt;br /&gt;
* For a MIPS device (i.e. Ainol Novo tablets):&lt;br /&gt;
 export ANDROID_ABI=mips&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Those exports must be set at all times, notably for the contribs and the configure.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Building ==&lt;br /&gt;
=== Get VLC Source ===&lt;br /&gt;
Clone the source from the VLC git!&lt;br /&gt;
&lt;br /&gt;
In your &#039;&#039;android&#039;&#039; folder, run: &lt;br /&gt;
&lt;br /&gt;
 git clone git://git.videolan.org/vlc-ports/android.git&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Compile ====&lt;br /&gt;
&#039;&#039;&#039;Read&#039;&#039;&#039; compile.sh first, as it contains some very useful and important information. Then run it:&lt;br /&gt;
 sh compile.sh&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; At this point, you will get an autogenerated debug apk in the bin/ folder, signed with a debug key.&lt;br /&gt;
&lt;br /&gt;
In order to build a non-debug package:&lt;br /&gt;
 sh compile.sh release&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; At this point, you will get an unsigned release apk in the bin/ folder, which you will have to sign and [http://developer.android.com/tools/help/zipalign.html zipalign].&lt;br /&gt;
&lt;br /&gt;
==== Package in Eclipse [optional] ====&lt;br /&gt;
# In Eclipse, create a &#039;&#039;new Android Project from existing source&#039;&#039; by importing from the &#039;&#039;vlc-android&#039;&#039; path.&lt;br /&gt;
# Import the three projects from the &#039;&#039;java-libs&#039;&#039; folder.&lt;br /&gt;
# Export unsigned/signed apk.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Building against JDK6 is recommended for optimal compatibility (Set &#039;&#039;Java Compiler Compliance&#039;&#039; to 1.6).&lt;br /&gt;
&lt;br /&gt;
=== Run ===&lt;br /&gt;
Run it and enjoy!&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
Here are some helpful links if you wish to debug VLC on Android:&lt;br /&gt;
* [http://developer.android.com/guide/developing/debugging/ddms.html DDMS] &lt;br /&gt;
* [http://developer.android.com/guide/developing/tools/logcat.html Logcat]&lt;br /&gt;
&lt;br /&gt;
===Native debugging===&lt;br /&gt;
If you run VLC Android and you get a crash that looks something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
I/DEBUG   (  958): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***&lt;br /&gt;
I/DEBUG   (  958): Build fingerprint: &#039;MOTO/MBTCA/sesame/XT300:2.1-update1/SESLA_U3_01.71.0/110110:user/release-keys&#039;&lt;br /&gt;
I/DEBUG   (  958): pid: 1733, tid: 1733 &amp;gt;&amp;gt;&amp;gt; org.videolan.vlc &amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
I/DEBUG   (  958): signal 11 (SIGSEGV), fault addr 4237be3c&lt;br /&gt;
I/DEBUG   (  958):  r0 423640a0  r1 7ece77ac  r2 42bccdac  r3 4237be38&lt;br /&gt;
I/DEBUG   (  958):  r4 00000000  r5 42bccdac  r6 002ed088  r7 002ed018&lt;br /&gt;
I/DEBUG   (  958):  r8 7ece78e8  r9 2bafa844  10 0000000e  fp 7ece794c&lt;br /&gt;
I/DEBUG   (  958):  ip 00002ba0  sp 7ece7784  lr 423652e4  pc 4237be3c  cpsr 60000010&lt;br /&gt;
I/DEBUG   (  958):          #00  pc 0037be3c  /data/data/org.videolan.vlc/lib/libvlcjni.so&lt;br /&gt;
I/DEBUG   (  958):          #01  lr 423652e4  /data/data/org.videolan.vlc/lib/libvlcjni.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have a &#039;&#039;&#039;native crash&#039;&#039;&#039;. To debug it, you need to have compiled VLC as above and installed it on your device. Once your compiled VLC build is on your device, you can find the &#039;&#039;&#039;backtrace&#039;&#039;&#039; as follows:&lt;br /&gt;
&lt;br /&gt;
# Make sure you are in the directory that you checked out VLC-Android in.&lt;br /&gt;
# cd vlc-android&lt;br /&gt;
# $ANDROID_NDK/ndk-gdb --verbose --force --start&lt;br /&gt;
At this point, lots of stuff will appear:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Android NDK installation path: /opt/android-ndk-r8c&lt;br /&gt;
Using default adb command: /opt/android-sdk-linux_x86/platform-tools/adb&lt;br /&gt;
ADB version found: Android Debug Bridge version 1.0.29&lt;br /&gt;
Using ADB flags: &lt;br /&gt;
Using auto-detected project path: .&lt;br /&gt;
Found package name: org.videolan.vlc&lt;br /&gt;
...bunch of stuff skipped...&lt;br /&gt;
GNU gdb (GDB) 7.3.1-gg2&lt;br /&gt;
Copyright (C) 2011 Free Software Foundation, Inc.&lt;br /&gt;
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;&lt;br /&gt;
This is free software: you are free to change and redistribute it.&lt;br /&gt;
There is NO WARRANTY, to the extent permitted by law.  Type &amp;quot;show copying&amp;quot;&lt;br /&gt;
and &amp;quot;show warranty&amp;quot; for details.&lt;br /&gt;
This GDB was configured as &amp;quot;--host=x86_64-linux-gnu --target=arm-linux-android&amp;quot;.&lt;br /&gt;
For bug reporting instructions, please see:&lt;br /&gt;
&amp;lt;http://www.gnu.org/software/gdb/bugs/&amp;gt;.&lt;br /&gt;
Remote debugging from host 0.0.0.0&lt;br /&gt;
...bunch of stuff skipped...&lt;br /&gt;
libthread_db:td_ta_new: Victory: We can debug theads!&lt;br /&gt;
warning: Breakpoint address adjusted from 0x400deaa5 to 0x400deaa4.&lt;br /&gt;
0x40107a40 in epoll_wait () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
(gdb)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;At this point, type in &amp;quot;continue&amp;quot; and press Enter.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Perform the actions you did to make it crash. It will spit out something like this:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;
0x401120ae in ?? () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;6&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now, just type in &amp;quot;&#039;&#039;&#039;bt full&#039;&#039;&#039;&amp;quot; (excluding the quotation marks) and press Enter. That is your backtrace that you should give to the developers when they ask for it (possibly on a [http://paste.kde.org/ pastebin], too).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(gdb) bt full&lt;br /&gt;
#0  0x401120ae in ?? () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#1  0x40107bd8 in abort () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#2  0x40118e6a in __assert2 () from /media/data/vlc_android/vlc-android/obj/local/armeabi/libc.so&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#3  0x5e0cdfdc in var_SetChecked (p_this=0x40134b94, psz_name=0x5ea2fcb8 &amp;quot;rate&amp;quot;, expected_type=80, val=...) at ../../src/misc/variables.c:711&lt;br /&gt;
        i_ret = 0&lt;br /&gt;
        p_var = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
        oldval = {i_int = 4742037487051810480, b_bool = 176, f_float = 2.27765068e+14, psz_string = 0x574f26b0 &amp;quot;X\270|B\001\001&amp;quot;, p_address = 0x574f26b0, &lt;br /&gt;
          p_object = 0x574f26b0, p_list = 0x574f26b0, i_time = 4742037487051810480, coords = {x = 1464805040, y = 1104091640}}&lt;br /&gt;
        __func__ = &amp;quot;var_SetChecked&amp;quot;&lt;br /&gt;
        p_priv = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#4  0x5e06dd9c in var_SetFloat (f=1.41421354, psz_name=0x5ea2fcb8 &amp;quot;rate____sample_backtrace&amp;quot;, p_obj=0x0) at ../../include/vlc_variables.h:262&lt;br /&gt;
        val = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#5  libvlc_media_player_set_rate (p_mi=0x0, rate=1.41421354) at ../../lib/media_player.c:1252&lt;br /&gt;
        p_input_thread = &amp;lt;optimized out&amp;gt;&lt;br /&gt;
#6  0x5de7bd18 in Java_org_videolan_vlc_LibVLC_setRate (env=0x41cf0470, thiz=0x8ab00021, rate=1.41421354) at jni/libvlcjni.c:678&lt;br /&gt;
        mp = 0x0&lt;br /&gt;
#7  0x4076de34 in ?? ()&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
#8  0x4076de34 in ?? ()&lt;br /&gt;
No symbol table info available.&lt;br /&gt;
Backtrace stopped: previous frame identical to this frame (corrupt stack?)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Outdated Awk ===&lt;br /&gt;
If you receive the error message while building:&lt;br /&gt;
&lt;br /&gt;
 Android NDK: Host &#039;awk&#039; tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !    &lt;br /&gt;
&lt;br /&gt;
The prebuilt version of Awk that comes with the Android NDK is outdated. Defining HOST_AWK in your environment does nothing as the system still tries to just the one that comes with the Android NDK. To get around this issue, simply rename or delete the Awk binary that comes with the Android NDK. For example to move it:&lt;br /&gt;
&lt;br /&gt;
 mv $ANDROID_NDK/prebuilt/linux-x86/bin/awk $ANDROID_NDK/prebuilt/linux-x86/bin/awk.old&lt;br /&gt;
&lt;br /&gt;
=== Can&#039;t find Ant ===&lt;br /&gt;
If you&#039;re new to Ant, please be aware that some Linux distributions don&#039;t install it in the usual spot as with other programs. Try checking to see if the directory /usr/share/java/apache-ant/bin exists and add it to your path.&lt;br /&gt;
&lt;br /&gt;
===Outdated autotools-dev===&lt;br /&gt;
If you get the following error message you may have have an outdated version of autotools-dev:&lt;br /&gt;
  Invalid configuration `arm-linux-androideabi&#039;: system `androideabi&#039; not recognized&lt;br /&gt;
You may first want to check if your distribution has any available updates for this package.  Alternatively, you can manually update your config.guess and config.sub files from here: [http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree].  These files are typically located in /usr/share/misc on Debian based distributions.&lt;br /&gt;
&lt;br /&gt;
===autoreconf: automake failed with exit status: 1===&lt;br /&gt;
 automake: warnings are treated as errors&lt;br /&gt;
 configure.ac:41: warning: The &#039;AM_PROG_MKDIR_P&#039; macro is deprecated, and will soon be removed.&lt;br /&gt;
 configure.ac:41: You should use the Autoconf-provided &#039;AC_PROG_MKDIR_P&#039; macro instead,&lt;br /&gt;
 configure.ac:41: and use &#039;$(MKDIR_P)&#039; instead of &#039;$(mkdir_p)&#039;in your Makefile.am files.&lt;br /&gt;
&lt;br /&gt;
If you are using Automake 1.13 or higher, you must remove -Werror from vlc/contrib/android/gnutls/configure.ac to continue. (First reported in [http://forum.videolan.org/viewtopic.php?f=35&amp;amp;t=108927])&lt;br /&gt;
&lt;br /&gt;
===Can&#039;t run aapt or adb on Linux 64-bit===&lt;br /&gt;
You must install the 32-bit libraries of the following libraries, as the precompiled Google binaries depend on them: &#039;&#039;libc6&#039;&#039;, &#039;&#039;libstdc++6&#039;&#039;, and &#039;&#039;zlib&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
New versions of Debian and/or Ubuntu require you to install i386 versions of packages:&lt;br /&gt;
 sudo dpkg --add-architecture i386&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install zlib1g:i386 libstdc++6:i386 libc6:i386&lt;br /&gt;
&lt;br /&gt;
If you are under &#039;&#039;old versions&#039;&#039; of Ubuntu, install ia32-libs can help you solve this issue.&lt;br /&gt;
 sudo apt-get install ia32-libs&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Android Report bugs]] - Bug reporting guide for VLC-Android.&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]] [[Category:Android]]&lt;/div&gt;</summary>
		<author><name>Mik</name></author>
	</entry>
</feed>