OpenGL ES emulation on Debian guest VM running on Windows 7 host

Here are the instructions to emulating OpenGL ES programs on a Debian (wheezy) VM (using VMware Player) running on a Windows 7 host.

  1. Set up a Debian wheezy VM on VMWare Player. That’s pretty basic stuff so I’m not going through that.
  2. Enable “Accelerate 3D graphics” option in the settings of the VM. This setting is done using VMware Player and it needs to be done with the Debian wheezy VM turned off.
  3. Download the OpenGL ES 2.0 Emulator from http://malideveloper.arm.com/develop-for-mali/tools/opengl-es-2-0-emulator/ (obviously download the one for linux!)
  4. Copy that file into the VM and extract it.
  5. You will find the “bin” folder with the three “so” files inside. Copy these files into /usr/lib.
  6. Run ldconfig (not sure if this is required but do it anyway)

Now you have the required libraries for OpenGL ES emulation. If you want to test it, follow these instructions:

Example 1

(go into the OpenGL ES emulator folder, the one you downloaded in Step 3 above)

cd ARM
cd Mali_Developer_Tools
cd OpenGL_ES_Emulator_1.3.1
cd examples
cd OpenGLES_20
cd cubes
make
./cube

You should be a nice spinning cube! 🙂

Example 2

mkdir glus
cd glus
wget --no-check-certificate https://github.com/benosteen/opengles-book-samples/tarball/master
tar -xvzf master
cd benosteen-opengles-book-samples-186d0ab
cd LinuxX11
make
cd Chapter_2
cd Hello_Triangle
./CH02_HelloTriangle

You should see a nice red triangle! 🙂

Advertisements

5 thoughts on “OpenGL ES emulation on Debian guest VM running on Windows 7 host

  1. Excellent website you have here but I was wanting to know if you knew of any
    discussion boards that cover the same topics talked about in this article?
    I’d really love to be a part of group where I can get comments from other experienced people that share the same interest. If you have any suggestions, please let me know. Bless you!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s