如何在MACOS下使用lvgl模拟器
1.安装必要环境
brew install sdl2
查看sdl2安装位置:
(base) ➜ ~ brew list sdl2
/opt/homebrew/Cellar/sdl2/2.30.1/bin/sdl2-config
/opt/homebrew/Cellar/sdl2/2.30.1/include/SDL2/ (78 files)
/opt/homebrew/Cellar/sdl2/2.30.1/lib/libSDL2-2.0.0.dylib
/opt/homebrew/Cellar/sdl2/2.30.1/lib/cmake/ (2 files)
/opt/homebrew/Cellar/sdl2/2.30.1/lib/pkgconfig/sdl2.pc
/opt/homebrew/Cellar/sdl2/2.30.1/lib/ (4 other files

本文详细介绍了如何在MacOS系统中安装必要的SDL2环境,并指导用户如何克隆和配置lvgl的PCVSCode模拟器,包括修改Makefile以链接SDL2库,最终实现编译和运行示例程序。
最低0.47元/天 解锁文章
4141

被折叠的 条评论
为什么被折叠?



