Whats the best procedure to cross compile lua and libs (luasockets, orbit, etc) for an embedded arm device.
Im able to succesfully cross compile lua interpreter, but from there im a little bit lost.
Whats the best procedure to cross compile lua and libs (luasockets, orbit, etc) for an embedded arm device.
Im able to succesfully cross compile lua interpreter, but from there im a little bit lost.
I started using this repo as a base some years ago: https://github.com/johnhw/luajitpi
The whole process depends on what OS your device is running and how POSIX-ish it is. If your system provides a BSD-like-socket API the process should be trivial.
The same applies for pthreads and other APIs your OS should provide. We're running eCos for example, which has a small POSIX layer so the porting of libs like luasocket was easy.