<?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=Nactive</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=Nactive"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Nactive/"/>
	<updated>2026-11-04T18:37:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=AndroidCompile&amp;diff=20107</id>
		<title>AndroidCompile</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=AndroidCompile&amp;diff=20107"/>
		<updated>2011-11-23T13:40:40Z</updated>

		<summary type="html">&lt;p&gt;Nactive: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is an introduction to compilation of VLC for Android on Linux. &lt;br /&gt;
&lt;br /&gt;
= Eclipse, SDK and NDK installation  =&lt;br /&gt;
&lt;br /&gt;
== Android SDK  ==&lt;br /&gt;
&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 android-sdk_r10-linux_x86.tgz. &lt;br /&gt;
#Decompress into &#039;&#039;android&#039;&#039; folder. &lt;br /&gt;
#Run &#039;&#039;tools/android&#039;&#039;. &lt;br /&gt;
#In the tool, install &#039;&#039;&#039;&amp;quot;SDK Platform Android 2.3, API 10&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;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Android NDK  ==&lt;br /&gt;
&lt;br /&gt;
#Check that the SDK installation is correct. &lt;br /&gt;
#Go to [http://developer.android.com/sdk/ndk/index.html Android NDK page]. &lt;br /&gt;
#Download http://dl.google.com/android/ndk/android-ndk-r5b-linux-x86.tar.bz2. &lt;br /&gt;
#Decompress into &#039;&#039;android&#039;&#039; folder, next to your android-sdk-linux_x86 folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Eclipse  ==&lt;br /&gt;
&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;
=== ADT  ===&lt;br /&gt;
&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;
&lt;br /&gt;
=== Linux and autotools ===&lt;br /&gt;
&lt;br /&gt;
You &#039;&#039;&#039;MUST&#039;&#039;&#039; be on Linux, and a recent one.&lt;br /&gt;
&lt;br /&gt;
You &#039;&#039;&#039;MUST&#039;&#039;&#039; have installed: &#039;&#039;autoconf&#039;&#039;, &#039;&#039;automake&#039;&#039;, &#039;&#039;libtool&#039;&#039;, &#039;&#039;gcc&#039;&#039;, &#039;&#039;g++&#039;&#039;, &#039;&#039;pkg-config&#039;&#039;, &#039;&#039;cmake&#039;&#039;, &#039;&#039;patch&#039;&#039;, &#039;&#039;subversion&#039;&#039;. And very up-to-date versions of those tools.&lt;br /&gt;
&lt;br /&gt;
You &#039;&#039;&#039;MUST&#039;&#039;&#039; install: &#039;&#039;git&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
=== Environment ===&lt;br /&gt;
&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 in your path &lt;br /&gt;
&lt;br /&gt;
 export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools&lt;br /&gt;
&lt;br /&gt;
If you plan to use the emulator, you need a build without neon &lt;br /&gt;
&lt;br /&gt;
 export NO_NEON=1&lt;br /&gt;
&lt;br /&gt;
Those exports must be set at all times, notably for the contribs and the configure.&lt;br /&gt;
&lt;br /&gt;
= Get VLC Source  =&lt;br /&gt;
&lt;br /&gt;
Use the VLC git repository to get the source! &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;
&lt;br /&gt;
run&lt;br /&gt;
 sh install.sh&lt;br /&gt;
&lt;br /&gt;
=== Package in eclipse  ===&lt;br /&gt;
&lt;br /&gt;
#In Eclipse, create a new Android project from existing source by giving the extra/platform/android/vlc-android path. &lt;br /&gt;
#Compile your project using Eclipse.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Run  ==&lt;br /&gt;
&lt;br /&gt;
Run it and enjoy! &lt;br /&gt;
&lt;br /&gt;
== Debug&amp;lt;br&amp;gt;  ==&lt;br /&gt;
&lt;br /&gt;
[http://developer.android.com/guide/developing/debugging/ddms.html DDMS] &lt;br /&gt;
&lt;br /&gt;
[http://developer.android.com/guide/developing/tools/logcat.html Logcat]&lt;/div&gt;</summary>
		<author><name>Nactive</name></author>
	</entry>
</feed>