源码:https://github.com/rainlab-inc/lvgl-opengl
下载:
$ git clone https://github.com/rainlab-inc/lvgl-opengl
$ cd lvgl-opengl
$ git submodule update --init --remote --recursive
本站下载:lvgl-opengl.tar.7z (约100M)
编译:
$ mkdir build
$ cd build
$ cmake ..
$ make -j4
$ ./lvgl-opengl
运行:
离线
准备工作:
sudo apt-get install gcc git libepoxy-dev libegl1-mesa-dev libsdl2-dev -y
由于Ubuntu18.04自带的cmake是3.10.2,但是上面得源码需要3.14,所有得手动编译源码升级:
wget -O cmake.tar.gz https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3.tar.gz
tar xzf cmake.tar.gz
cd cmake-3.26.3
mkdir build
cd build
cmake ..
make
sudo make install
离线