Code Monkey home page Code Monkey logo

Comments (6)

psychon avatar psychon commented on September 25, 2024 1

How are you running the tests? The "right way" is make check. This builds some regression-testing library from gobject-introspection-1.0 called Regress. This library is then used to test some corner cases in the FFI.

Personally, I patch lgi/Makefile to add lua5.3 to GINAME and change -llua to -llua5.3 in LUA_LIB. Same for tests/Makefile, where I additionally change LUA = lua to lua5.3. With these changes, things "just" work on my Debian Testing system.

from lgi.

Elv13 avatar Elv13 commented on September 25, 2024

It doesn't support Lua 5.4 well, but it works fine with 5.3 and below. I have seen some bug report in AwesomeWM (which uses LGI) which were somehow built with Lua 5.4, but I am really not sure how they did it to the point they were capable of running AwesomeWM on Lua 5.4.

As for your install, I suspect something is messing up your Lua environment. Some frameworks or apps, like Lua Torch, are known to causes this type of problem. Can you reproduce the problem from a Docker container?

from lgi.

jradxl avatar jradxl commented on September 25, 2024

Thanks for your update.
I've installed a brand new Ubuntu Mate 21.10 in VirtualBox, and installed the packages from their repositories.
IE Luarocks, which requires lua 5.1
Trying to build shows a lack of gobject-introspection-1.0

Installing
gobject-introspection//impish,now 1.68.0-1build2 amd64 [installed]
Still doesn't build

root@u2110a:~# luarocks install lgi
Installing https://luarocks.org/lgi-0.9.2-1.src.rock
make -C lgi
make[1]: Entering directory '/tmp/luarocks_lgi-0.9.2-1-ilkXgq/lgi/lgi'
pkg-config --exists 'gobject-introspection-1.0 >= 0.10.8' --print-errors
Package gobject-introspection-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-introspection-1.0' found
make[1]: *** [Makefile:53: .depcheck] Error 1
make[1]: Leaving directory '/tmp/luarocks_lgi-0.9.2-1-ilkXgq/lgi/lgi'
make: *** [Makefile:16: all] Error 2

Error: Build error: Failed building.

So clearly Ubuntu has moved on, without lgi keeping up

from lgi.

Elv13 avatar Elv13 commented on September 25, 2024

Did you do sudo apt build-dev lua-lgi?

from lgi.

jradxl avatar jradxl commented on September 25, 2024

sudo apt build-dep lua-lgi
I hadn't
Thank you luarocks now installs lgi, using 5.1
With a bit of effort, I now have lgi-git building using 5.1
but the tests sort of run
there is a lot of

gireg   :  1:type_boolean                       FAIL
             /usr/local/share/lua/5.1/lgi/namespace.lua:158: Typelib file for namespace 'Regress' (any version) not found

Please can you tell me what I do with libregress.so and how I should run the tests
Thanks

from lgi.

psychon avatar psychon commented on September 25, 2024

Closing as "reporter vanished".

from lgi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.