Comments (6)
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.
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.
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.
Did you do sudo apt build-dev lua-lgi
?
from lgi.
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.
Closing as "reporter vanished".
from lgi.
Related Issues (20)
- Segmentation fault in Gio.File.copy_async HOT 7
- API reference such as https://lazka.github.io/pgi-docs/? HOT 2
- Misaligned memory accesses in marshal_2c_int and marshal_2lua_int HOT 2
- Building in Windows with meson is looking for luajit-5.1.lib HOT 3
- GtkContainer.child SIGSEGVs on access HOT 5
- How to connect signal on derived class of GstBin? HOT 5
- Segmentation fault when using netwok manager HOT 1
- Segmentation fault when using upower and playerctl interfaces HOT 1
- push to luarocks HOT 14
- Fails to install on fedora 36, Lua 5.4-1 HOT 5
- install error HOT 3
- _resolve can cause luajit to segmentation fault
- Cannot import Glib HOT 1
- Makefile doesn't work on systems with multiple lua versions? HOT 5
- `GLib.Variant: no 'n'` when using `GLib.Variant("(av)", ...)`
- Cairo Native Interop? HOT 3
- Porting lgi for Lua5.4 HOT 3
- Passing GType as an argument HOT 6
- Installation error HOT 2
- Documentation for lgi HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lgi.