Add initial support for Nanox graphics backend for Lua#12
Conversation
|
@rafael2k is the master branch the correct one to add new functionality and the one used by the ELKS' automatic builds? |
|
@ghaerr I want to compile lua (which is compiled with owcc) together with libnano-X.a, but libnano-X.a is compiled with gcc ia 16. So is this actually possible? |
Files compiled with OWCC can't be combined/linked with IA16 objects, and vice versa; the object files themselves as well as the function calling conventions are incompatible. A few options might be either an OWCC version of the Nano-X client library (libnano-X.lib) or an ia16-elf-gcc version of LUA. The Nano-X client library communicates with the Nano-X server via a UNIX socket, so only the client library files (microwindows/src/nanox/{client.c,nxproto.c,nxutil.c,osdep.c) need to be compiled and linked with the application object files. This may not be a big deal, but would require changes to Makefile.elks on the Nano-X repo, or compiling those files along with the LUA build. The other method would compiling LUA in small model using ia16-elf-gcc. Is there a reason why LUA must be compiled large model? It would seem the cubes demo itself shouldn't require more than 64K code or data, but I haven't looked at the LUA engine to determine that. |
Yes - I chose the large model for compiling Lua for a reason. |
|
Actually the idea was to have it working from nxdsktop as a nice demo. But progress is made!!!!!!!!!!!!!!!!!!! |
|
@ghaerr I tried these in the Lua makefile: but it did not enable Maybe the fork that is done when calling it like this |


Hi @rafael2k
The idea is to have 2 graphical backends: VGA and Nanox.
I would like to see my rotating cube running in Nano-X :)
How do we integrate the nanox lib file into the build?
And we add a flag into the makefile to switch to Nanox like this:
?
It is work in progress.