Here are the instructions to emulating OpenGL ES programs on a Debian (wheezy) VM (using VMware Player) running on a Windows 7 host.
- Set up a Debian wheezy VM on VMWare Player. That’s pretty basic stuff so I’m not going through that.
- 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.
- 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!)
- Copy that file into the VM and extract it.
- You will find the “bin” folder with the three “so” files inside. Copy these files into /usr/lib.
- 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:
(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! 🙂
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! 🙂