From c8cfbc355d3eea487b035ba6224891b436d3f769 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 14 Jan 2024 13:36:35 +0100 Subject: [PATCH 1/3] add sdl include comment --- platformio.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platformio.ini b/platformio.ini index e87f57b..e515483 100644 --- a/platformio.ini +++ b/platformio.ini @@ -49,6 +49,10 @@ build_flags = ; LVGL memory options, setup for the demo to run properly -D LV_MEM_CUSTOM=1 -D LV_MEM_SIZE="(128U * 1024U)" + + ; SDL2 includes, uncomment the next two lines on MAC OS if you intalled sdl via homebrew + ; !find /opt/homebrew/Cellar/sdl2 -name "include" | sed "s/^/-I /" + ; !find /opt/homebrew/Cellar/sdl2 -name "libSDL2.a" | xargs dirname | sed "s/^/-L /" lib_deps = ${env.lib_deps} From 879e967f4fa3adedfa0c6d146f035e8e3a886933 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 14 Jan 2024 13:38:18 +0100 Subject: [PATCH 2/3] added sdl include remark --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4dbf69f..47caeac 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,12 @@ Use [Homebrew](https://brew.sh/): ```sh brew install sdl2 ``` +Note: +On mac os you need to include (uncomment in provided example platformio.ini file) these lines in your platformio.ini file to import the drivers: +```; SDL2 includes + !find /opt/homebrew/Cellar/sdl2 -name "include" | sed "s/^/-I /" + !find /opt/homebrew/Cellar/sdl2 -name "libSDL2.a" | xargs dirname | sed "s/^/-L /" +``` **Windows** From 95f6f004cedf881f2e2c87c61876d8e2c5014ff8 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 14 Jan 2024 13:39:08 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 47caeac..4cd5db4 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,9 @@ Use [Homebrew](https://brew.sh/): brew install sdl2 ``` Note: -On mac os you need to include (uncomment in provided example platformio.ini file) these lines in your platformio.ini file to import the drivers: -```; SDL2 includes +On MacOS you need to include (uncomment in provided example platformio.ini file) these lines in your platformio.ini file to import the drivers: +``` + ; SDL2 includes !find /opt/homebrew/Cellar/sdl2 -name "include" | sed "s/^/-I /" !find /opt/homebrew/Cellar/sdl2 -name "libSDL2.a" | xargs dirname | sed "s/^/-L /" ```