lvgl / lv_platformio

PlatformIO project example for LVGL
MIT License
250 stars 91 forks source link

CI: force use more fresh compiler for `native` on OSX #29

Open puzrin opened 3 years ago

puzrin commented 3 years ago

Problem:

As a result, when you try to use some modern libs like ETL, build will fail. See https://github.com/puzrin/dispenser/blob/master/.github/workflows/ci.yml#L52-L54


I consider this as bug of PIO, but problem still exists.

andrew-elsayeh commented 2 years ago

Yes, this is a good point!

There is no gcc port for the Apple Silicone Macs (M1, M1 Pro and M1 Max)

puzrin commented 2 years ago

Do PR, if you know how to fix https://github.com/lvgl/lv_platformio/blob/master/.github/workflows/ci.yml#L56-L76

bobwolff68 commented 2 years ago

After lots of gyrations, I did manage to compile and execute this project on a Mac M1. The change was simple. Add a few items to build_flags in platformio.ini -arch arm64 -I /opt/homebrew/include -L /opt/homebrew/lib