Hello!
Since we need to recompile the whole firmware to add new apps for now, I’m trying to add a Lua interpreter. The goal is to run Lua scripts placed directly on the SD Card to prototype new apps and potentially add small features, without the need of recompile and reinstall the firmware everytime.
I’m not really experienced in C though, and I encounter some errors (see the following screenshot). These errors happen at the end of firmware compilation. The Lua source headers are included correctly, so it seem to be linking issue, as I understand it. But I don’t have any clue about how to resolve it in that environment
That being said, I have two questions:
- What do you think about integrating Lua for quick app prototyping and avoid recompiling the whole firmware?
- Does anyone understand the errors and can help me with this?
Thanks in advance for any help or advice!
Here is my custom firmware repository: https://github.com/hubertgdev/flipperzero-firmware
=> See the wip/lua
branch to see the integration attempt and reproduce the errors
Lua sources are in lua-5.4.4
, and I created a test app in applications/lua_test