From 2c84ecacacdeaa2ccb0a7de826b8ecc6acb09999 Mon Sep 17 00:00:00 2001 From: Ethan Zhang Date: Wed, 20 Mar 2024 19:22:25 +0800 Subject: [PATCH 1/2] Update README.md Add troubleshooting guidance for M-chip Mac. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 4cd5db4..8df1d8d 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,16 @@ On MacOS you need to include (uncomment in provided example platformio.ini file) !find /opt/homebrew/Cellar/sdl2 -name "libSDL2.a" | xargs dirname | sed "s/^/-L /" ``` +If you get the following error on M-chip mac with VSC, you can add `-arch arm64` to `build_flags` in platformio.ini or just run `pio run—e emulator_64bits—t execute` in the system Python environment (you should install platformio in system Python first). +``` +ld: warning: ignoring file '/opt/homebrew/Cellar/sdl2/2.30.1/lib/libSDL2-2.0.0.dylib': found architecture 'arm64', required architecture 'x86_64' +ld: Undefined symbols: + _SDL_CreateRenderer, referenced from: + _window_create in sdl.o +... +``` + + **Windows** Use [MSYS2](https://www.msys2.org/) From 2e327d6adc5ab13263b6e0c050ad63c79ed6c0de Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 25 Mar 2024 19:56:44 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8df1d8d..2336f83 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ On MacOS you need to include (uncomment in provided example platformio.ini file) !find /opt/homebrew/Cellar/sdl2 -name "libSDL2.a" | xargs dirname | sed "s/^/-L /" ``` -If you get the following error on M-chip mac with VSC, you can add `-arch arm64` to `build_flags` in platformio.ini or just run `pio run—e emulator_64bits—t execute` in the system Python environment (you should install platformio in system Python first). +If you get the following error on M-chip Mac with VSCode, you can add `-arch arm64` to `build_flags` in `platformio.ini` or just run `pio run -e emulator_64bits -t execute` in the system Python environment. (`pio` should be installed in system Python first). ``` ld: warning: ignoring file '/opt/homebrew/Cellar/sdl2/2.30.1/lib/libSDL2-2.0.0.dylib': found architecture 'arm64', required architecture 'x86_64' ld: Undefined symbols: