Jul 11, 2012

Setup Hardware OpenGL for Linux Android x86 VirtualBox (also runs ARM apps)


As the post title, this Android x86 VirtualBox image runs ARM apps like Angry Birds games with OpenGL hardware acceleration. OpenGL is a standard specification cross-platform graphics API for 2D and 3D graphics processing hardware. The video below shows how the OpenGL performing with Angry Birds Space:


Click here to read the rest.

Here's how I setup Hardware OpenGL for Linux Android x86:
First of all, your computer must have graphics chipset with OpenGL hardware acceleration enabled. During this guide, I will setup this VirtualBox image on my HP mini 210 Ubuntu 12.04 Operating System. You'll need an Android x86 OVA file and buildroid_renderer package which can be download here.

  1. Install VirtualBox from Ubuntu Software Center.
  2. Open VirtualBox, click File > Import Appliance... to import the Android OVA. After import, don't start the Android Virtual Machine yet.
  3. If you already have libGL.so in /usr/lib/i386-linux-gnu/ directory, ignore this step. If you don't have it, please install libgl1-mesa-dev package (sudo apt-get install libgl1-mesa-dev) and you should have libGL.so in that directory.
  4. Extract the buildroid_renderer package. (tar -xvzf buildroid_renderer_XXXXXXXX.tgz)
  5. Open Terminal and navigate to buildroid_renderer package location and execute buildroid.sh (./buildroid.sh) and a blank window appear.
  6. Now start your Android Virtual Machine in VirtualBox. Wait for awhile the blank window will show up the Android 4.0.4 ICS user interface.


You can change the window size while executing buildroid.sh For example,./buildroid.sh -width 640 -height 480 the window size will open in 640 x 480 size.

No comments:

Post a Comment

Usahakan Komen pake Bahasa yang Sopan, Jgn yang aneh-aneh ;)