0.前置条件,保证电脑已经安装cmake,sdl2.
1. 下载仿真器代码::
git clone https://github.com/lvgl/lv_sim_vscode_sdl.git
2. 因为上面的仓库默认是没有lvgl源码,故cd 到lv_sim_vscode_sdl目录下,再下载lvgl
git clone https://github.com/lvgl/lvgl.git
3.新建build文件夹,然后 cmake, makefile,run
mkdir build
cd build
cmake ..
make run