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

运行

  1. Press Ctrl + Alt + F5 to leave the desktop and change to simple character terminal
  2. Type sudo su and type your password
  3. Stop your Display manager (on Ubuntu it’s lightdm): service lightdm stop Important: it will log you out, so all windows will be closed
  4. Write random data to the frame buffer device: cat /dev/urandom > /dev/fb0 You should see random colored pixels on the whole screen.
  5. To go back to the normal Graphical User Interface: service lightdm start

 按 ctrl + alt + f2 重新回到桌面端。

cd /build
./main

 

posted @ 2024-04-16 21:04  流水灯  阅读(213)  评论(0编辑  收藏  举报