Where do I get luac.cross from and how do I install it?
You gave the answer in the quote from the documentation you posted. Specifically this
NodeMCU firmware build now automatically generates a luac.cross image...
So, if you build the NodeMCU manually on your platform the build process will also create a lua.cross
for your platform. That's the reason you cannot download or install lua.cross
- it has to fit your platform i.e. OS et.al.
The logical next question would then be: how do I manually build NodeMCU on macOS?
I don't know the answer to that as I build with the Docker image (from yours truly) on macOS. Running the Docker build creates a luac.cross
in the firmware root directory. However, as macOS is just the host OS for Docker in this setup luac.cross
is for Linux rather than native for macOS. To use it you would start the Docker container again and run bash
in it to get a shell to execute the Lua cross compilation: docker run --rm -ti -v
pwd:/opt/nodemcu-firmware marcelstoer/nodemcu-build bash
.
Straight lua code has overwhelmed the MakerFocus NodeMCU board resulting runtime panic with out of memory issue. Hoping compiled code will reduce RAM needs.
I hate to disillusion you, but if I had to bet I would expect that savings won't be significant enough to yield the expected results. As you already started reading documentation I'd like to point you to the relevant FAQ: How is NodeMCU Lua different to standard Lua? and Techniques for Reducing RAM
And maybe using LFS will be your life saver.