标签 opengl 下的文章

sudo apt-get install cmake
sudo apt-get install libx11-dev

git clone https://github.com/ptitSeb/gl4es.git
git checkout v1.1.4

cd gl4es
mkdir build
cd build
cmake .. -DCHIP=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
//-j2不加了易报内存不够
make 

cd ../
cd lib/
sudo mv libGL.so.1 /usr/lib/arm-linux-gnueabihf/libGL.so.1.2.0

如果之前安装了xf86-video-fbturbo 请先禁用
sudo nano /etc/X11/xorg.conf

#Section "Device"
#        Identifier      "Allwinner A10/A13 FBDEV"
#        Driver          "fbturbo"
#        Option          "fbdev" "/dev/fb0" 
#        Option          "SwapbuffersWait" "true"
#EndSection

然后重启

sudo apt-get install mesa-utils
glxgears

如果是GUI版会看到下图,如果是home版可能看不到齿轮,因为窗口太大……
TIM图片20200414151753.jpg

相关地址
https://github.com/ptitSeb/gl4es
https://forum.armbian.com/topic/1420-opengl-on-mali-gpu-bananapi-orangepi-pc-etc/