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 重新回到桌面端。
./bin/main
标签:
LVGL 图形库
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 写一个简单的SQL生成工具
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)