安装

sudo apt-get install git g++ build-essential pkg-config
sudo apt-get install libx11-dev libgl1-mesa-dev
sudo apt-get install libjpeg-dev libpng-dev

cd ~/

git clone https://github.com/glmark2/glmark2.git

cd glmark2/

./waf configure —with-flavors=x11-glesv2

./waf build -j 4

sudo ./waf install

su linaro -c "DISPLAY=:0.0 /usr/local/bin/glmark2"

拷机

su linaro -c "DISPLAY=:0.0 glmark2-es2 —benchmark refract —run-forever —off-screen"