Tuesday, December 31, 2013

How To Compile VLC for Android Using Mac OSX Mavericks


1.Download Eclipse IDE

2.Download Xcode 5 ,you will need it for gcc compiler .

3.Download Android SDK ,you can download ADT bundle and it takes out the need in Eclipse .
If you decided to use eclipse, then download SDK for existing IDE .

4.Download Android NDK 

5.Create your working folder and put there both the SDK and NDK ,it will be easier later .

6.Install NDK and SDK 

7.Download latest MacPorts and install them .

8.Download Brew (HomeBrew) (optional)

Use MacPorts or Brew to download this packages

For the next 3 steps, I don't remember the exact links but they are definitely some where on the net .

9.Install Git 

10.Install Fink

11.Install Ant

After those steps you are ready to Compile VLC for Android


Go to AndroidCompile Wikipedia page and use the manual ,place yourself in a folder with NDK and SDK, then only Git your source (Git will download to the folder, you in ) .
Now you will understand why SDK and NDK in the same folder ,it easier to state correct path to them.

If you succeeded to compile, you will see a message in terminal "Compile Success"

Without that message, you didn't compiled VLC !

12.Import the compiled project to Eclipse .

13.In eclipse on build path (press right button on project name and go to properties, there you will see a BuildPath) remove and add projects (change the mark from red to green by removing the projects at first and then adding them) .

14.Clean your project and enjoy .