[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] AbsTK – a widget toolkit for GUI and TUI applications
- From: Dr Eberhard Lisse <nospam@...>
- Date: Thu, 11 May 2017 11:15:23 +0100
but the fascination of this is that it can do curses AND gtk.
I have gtk+3 and gobject-introspection installed from Homebrew as they
are dependencies for stuff like gnumeric. I also had gtk+
I have noew removed gtk+ and reinstalled gtk+3, gobject-introspection
(through homebrew) and abstk (through luarocks).
libgirepository1.0-dev sounds like an APT package (ie ubuntu). Can't
find it in homebrew.
When running the example (t.lua)
local abstk = require 'abstk'
local scr = abstk.new_screen("My First AbsTK UI")
scr:add_label('hellow', "Hello, World!")
scr:add_label('msg1', "This is a minimal example to demonstrate AbsTK.")
scr:add_label('msg2', "The Screen is the main object of the toolkit. It
can run as standalone or added to a Wizard. Its routine consists in
creating it (line 2), populating it (lines 3 to 7) and running it (line
I get something like
lua t.lua gtk
lua: /usr/local/share/lua/5.2/abstk.lua:61: attempt to index upvalue
'AbsGtk' (a nil value)
/usr/local/share/lua/5.2/abstk.lua:61: in function 'new_screen'
t.lua:5: in main chunk
[C]: in ?
when I do this
lua t.lua curses
nothing seems to happen, but when I scoll back on the scrren I get the
blue window epected and this:
attempt to index upvalue 'utf8' (a nil value)
/usr/local/share/lua/5.2/abstk/AbsCurses.lua:200: in function 'new'
/usr/local/share/lua/5.2/abstk/AbsCurses.lua:947: in function
'create_widget' /usr/local/share/lua/5.2/abstk/AbsCurses.lua:955: in
/usr/local/share/lua/5.2/abstk.lua:77: in function 'add_label'
./t.lua:6: in main chunk
[C]: in ?
Anyone using homebrew out there?
On 10/05/2017 19:11, Pedro Alves Valentim wrote:
> I just updated it on both Github and LuaRocks. However, I don't think
> what Eberhard is looking for is managing it without GTK/lgi, but solve
> a bug about it.
> If that's what he wants, though, he can simply reinstall the package
> through LuaRocks ;)
> Pedro Alves Valentim
On 10/05/2017 18:08, Pedro Alves Valentim wrote:
>> I suspect lgi assumes gtk+3 is installed.
>> For Homebrew you could try:
>> brew install gtk+3
>> and if it's not installed automatically by Homebrew:
>> brew install gobject-introspection
>> Please let us know if that works for you. Or does anyone else have
>> AbsTK working on the Mac?
> Yep. Just as Doug stated, this lgi issue is probably due the missing
> of "gobject-introspection" package. I usually solve it by installing
> "libgirepository1.0-dev", though. I think you should install this one
> I mentioned and test. I'm pretty sure it does the job (installing
> "gobject-introspection" along the way).