@@ -72,17 +72,18 @@ Python 3 is required, but you can install some other version of python3 instead
7272## Unix (MAC OS) port
7373
74741 . ` brew install sdl2 pkg-config `
75- 2 . ` git clone https://github.com/lvgl/lv_micropython.git `
76- 3 . ` cd lv_micropython `
77- 4 . ` git submodule update --init --recursive user_modules/lv_binding_micropython `
78- 5 . ` sudo mkdir -p /usr/local/lib/ `
79- 6 . ` sudo cp /opt/homebrew/Cellar/sdl2/2.24.0/lib/libSDL2.dylib /usr/local/lib/ `
80- 7 . ` sudo cp -r /opt/homebrew/Cellar/sdl2/2.24.0/include /usr/local/ `
81- 8 . ` sed -i '' 's/ -Werror//' ports/unix/Makefile mpy-cross/Makefile ` Remove -Werror from compiler parameters as Mac fails compilation otherwise
82- 9 . ` make -C mpy-cross `
83- 10 . ` make -C ports/unix submodules `
84- 11 . ` make -C ports/unix `
85- 12 . ` ./ports/unix/build-lvgl/micropython `
75+ 2 . ` sdl2-config --version ` Get the sdl2 version
76+ 3 . ` git clone https://github.com/lvgl/lv_micropython.git `
77+ 4 . ` cd lv_micropython `
78+ 5 . ` git submodule update --init --recursive user_modules/lv_binding_micropython `
79+ 6 . ` sudo mkdir -p /usr/local/lib/ `
80+ 7 . ` sudo cp /opt/homebrew/Cellar/sdl2/<YOUR_SDL_VERSION>/lib/libSDL2.dylib /usr/local/lib/ `
81+ 8 . ` sudo cp -r /opt/homebrew/Cellar/sdl2/<YOUR_SDL_VERSION>/include /usr/local/ `
82+ 9 . ` sed -i '' 's/ -Werror//' ports/unix/Makefile mpy-cross/Makefile ` Remove -Werror from compiler parameters as Mac fails compilation otherwise
83+ 10 . ` make -C mpy-cross `
84+ 11 . ` make -C ports/unix submodules `
85+ 12 . ` make -C ports/unix VARIANT=lvgl `
86+ 13 . ` ./ports/unix/build-lvgl/micropython `
8687
8788### ESP32 port
8889
@@ -233,4 +234,4 @@ More info about lvgl Micropython bindings:
233234
234235Discussions about the Micropython binding: https://github.com/lvgl/lvgl/issues/557
235236
236- More info about the unix port: https://github.com/micropython/micropython/wiki/Getting-Started#debian-ubuntu-mint-and-variants
237+ More info about the unix port: https://github.com/micropython/micropython/wiki/Getting-Started#debian-ubuntu-mint-and-variants
0 commit comments