From 36a0faeaa29bff378352a05db40ad48ecd52bd84 Mon Sep 17 00:00:00 2001 From: Tinyu Date: Fri, 11 Jul 2025 19:21:32 +0800 Subject: [PATCH] Update README-LVGL.md (#98) --- README-LVGL.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README-LVGL.md b/README-LVGL.md index 6f2a3fc60..d94bb5de0 100644 --- a/README-LVGL.md +++ b/README-LVGL.md @@ -72,17 +72,18 @@ Python 3 is required, but you can install some other version of python3 instead ## Unix (MAC OS) port 1. `brew install sdl2 pkg-config` -2. `git clone https://github.com/lvgl/lv_micropython.git` -3. `cd lv_micropython` -4. `git submodule update --init --recursive user_modules/lv_binding_micropython` -5. `sudo mkdir -p /usr/local/lib/` -6. `sudo cp /opt/homebrew/Cellar/sdl2/2.24.0/lib/libSDL2.dylib /usr/local/lib/` -7. `sudo cp -r /opt/homebrew/Cellar/sdl2/2.24.0/include /usr/local/` -8. `sed -i '' 's/ -Werror//' ports/unix/Makefile mpy-cross/Makefile` Remove -Werror from compiler parameters as Mac fails compilation otherwise -9. `make -C mpy-cross` -10. `make -C ports/unix submodules` -11. `make -C ports/unix` -12. `./ports/unix/build-lvgl/micropython` +2. `sdl2-config --version` Get the sdl2 version +3. `git clone https://github.com/lvgl/lv_micropython.git` +4. `cd lv_micropython` +5. `git submodule update --init --recursive user_modules/lv_binding_micropython` +6. `sudo mkdir -p /usr/local/lib/` +7. `sudo cp /opt/homebrew/Cellar/sdl2//lib/libSDL2.dylib /usr/local/lib/` +8. `sudo cp -r /opt/homebrew/Cellar/sdl2//include /usr/local/` +9. `sed -i '' 's/ -Werror//' ports/unix/Makefile mpy-cross/Makefile` Remove -Werror from compiler parameters as Mac fails compilation otherwise +10. `make -C mpy-cross` +11. `make -C ports/unix submodules` +12. `make -C ports/unix VARIANT=lvgl` +13. `./ports/unix/build-lvgl/micropython` ### ESP32 port @@ -233,4 +234,4 @@ More info about lvgl Micropython bindings: Discussions about the Micropython binding: https://github.com/lvgl/lvgl/issues/557 -More info about the unix port: https://github.com/micropython/micropython/wiki/Getting-Started#debian-ubuntu-mint-and-variants \ No newline at end of file +More info about the unix port: https://github.com/micropython/micropython/wiki/Getting-Started#debian-ubuntu-mint-and-variants