LVGL --- 在ubuntu上跑
官方例程:https://github.com/lvgl/lv_port_linux_frame_buffer
看工程的 README.md
下载
git clone https://github.com/lvgl/lv_port_linux_frame_buffer.git cd lv_port_linux_frame_buffer/ git submodule update --init --recursive
编译步骤
mkdir build
cd build
cmake ..
make -j
运行
- Press Ctrl + Alt + F5 to leave the desktop and change to simple character terminal
- Type
sudo su
and type your password - Stop your Display manager (on Ubuntu it’s lightdm):
service lightdm stop
Important: it will log you out, so all windows will be closed - Write random data to the frame buffer device:
cat /dev/urandom > /dev/fb0
You should see random colored pixels on the whole screen. - To go back to the normal Graphical User Interface:
service lightdm start
按 ctrl + alt + f2 重新回到桌面端。
cd /build
./main