-
building in target borad: cmake . make
-
building in cross-compiling env cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./aarch64_linux_gnu.cmake make (also you can run build.sh)
- libdrm.so (libdrm-rockchip)
- libmali.so (libmali.so_gbm_opencl_r13p0_aarch64)
You can find more infomation as below:
http://stackoverflow.com/questions/23139886/how-to-create-opengl-context-via-drm-linux
Here is another sample:
https://github.com/robclark/kmscube.git
And anothre:
https://github.com/glmark2/glmark2