Out of curiosity, did you run into something that requires to you use 5.3? The current recommended process using misc/setup-ext-libs.bash should be completely self contained without dependency on system installed Lua.
Nearly half of the gui_live.lua / gtk_gui_live.lua code does not depend on the GUI system being used.This new patch splits out that code to a new file gui_live_common.lua which the other files can use.There is probably a better way to do this - let me know if you prefer some other method.
Should I create a branch in SVN for this?
The simplest way would be to just do Code: [Select]m=require'gui_live_common'and then add your additional fields / functions to m. This would also give the option of making more things generic, so for example the logic of redraw_canvas could be common, calling implementation specific functions to do the drawing.
There are a bunch of other packages that are required (cairo, pango, gobject-introspection, etc).The dependency list is quite long - I am not sure it would be good to download/build all of that as well.
(chdkptp:6193): Lgi-WARNING **: 22:12:32.923: Error raised while calling 'lgi.cbk (function: 0x560c78df39f0): GObject': /home/reyalp/chdkptp/lua/gtk_gui.lua:232: attempt to index upvalue 'console_view' (a nil value)