-
I'm trying to compile the SpaceInvaders game for the Olimex ESP32-SBC-FabGL and getting multiple errors. I was about to paste them in, then read the fix of using v2.0.17 in discussion #389 - so now I'm getting different errors and unfortunately, the ESP32-SBC-FabGL is no longer in the list of boards, because that wasn't supported in v2.0.17, apparently. I'm a bit lost here. The ESP32-SBC-FabGL comes with SpaceInvaders installed, so I know it exists, but the code I found doesn't compile under the most recent ESP32 support in the Boards Manager (v3.0.2) and the board doesn't exist under v2.0.17. I took the source code from https://github.com/fdivitto/FabGL/tree/master/examples/VGA/SpaceInvaders Is this the version it's shipped with? If so, which version of ESP32 support was used to compile it? Maybe I should start an issue but it seems this is probably just a failure of knowing what to do, or finding the right documentation on how to build it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Here are the error messages using Espressif ESP32 v.3.02, from the Boards Manager, starting with the last non-error line:
|
Beta Was this translation helpful? Give feedback.
-
Apparently these errors relate to the change from Espressif ESP32 2.0.x to 3.0.x. There have been a lot of changes which break existing code. There is a newer version of SpaceInvaders.ino in a pending pull request #338 which is specifically for the ESP32-SBC-FabGL. I can't currently get that to compiler either, but this version only produces a single error:
|
Beta Was this translation helpful? Give feedback.
-
Update/solution: It turns out the compilation problems were caused by using the current version of Espressif ESP32 boards support for Arduino (v3.0.2), which breaks compatibility with software written for v2.0.x. Both fdivitto/FabGL and Olimex's fork of FabGL apparently need v2.0.x, and Olimex were using v2.0.11. The board type (Tools->Board) should be set to: Olimex has their own fork of FabGL, specifically for the ESP32_SBC_FabGL, it seems best to just use that: https://github.com/OLIMEX/FabGL There's also this other repo for other things relating to that board, which relies on their FabGL fork: |
Beta Was this translation helpful? Give feedback.
Update/solution: It turns out the compilation problems were caused by using the current version of Espressif ESP32 boards support for Arduino (v3.0.2), which breaks compatibility with software written for v2.0.x. Both fdivitto/FabGL and Olimex's fork of FabGL apparently need v2.0.x, and Olimex were using v2.0.11.
The board type (Tools->Board) should be set to:
ESP32 Dev Module
Olimex has their own fork of FabGL, specifically for the ESP32_SBC_FabGL, it seems best to just use that:
https://github.com/OLIMEX/FabGL
There's also this other repo for other things relating to that board, which relies on their FabGL fork:
https://github.com/OLIMEX/ESP32-SBC-FabGL