lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

So I'm investingating different solution to use GTK with Lua. But I'm facing some difficulties to install lgi.

As per the document, I have object-introspection-1.30.0 installed and did the installation by
luarocks install lgi
as per the documentation.
The problem is I got error when trying to use GTK :

laurent@chose ~ $ lua /usr/local/lib/luarocks/rocks/lgi/0.6.2-1/samples/gtkhello.lua
lua: /usr/local/share/lua/5.1/lgi/namespace.lua:149: Typelib file for namespace 'Gtk' (any version) not found
stack traceback:
    [C]: in function 'assert'
    /usr/local/share/lua/5.1/lgi/namespace.lua:149: in function </usr/local/share/lua/5.1/lgi/namespace.lua:146>
    (tail call): ?
    .../lib/luarocks/rocks/lgi/0.6.2-1/samples/gtkhello.lua:10: in main chunk
    [C]: ?

What I missed ?

Laurent