-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Porting lgi for Lua5.4 #318
Comments
Uhm... I think LGI just works with Lua 5.4. It is even checked in CI: Line 16 in 700fcda
But since this is Lua, it is of course not easy to get "things" to actually build against Lua 5.4. Sadly, I don't have any good suggestions on how to do that. Some things that I can suggest: Check which Lua version LGI was linked against:
Check where Lua is searching for
Check where Lua is searching for
All of this has to fit together. How to get things to fit depends on the specifics of the distro. Specific of which, it might make sense to look at how your distro builds lgi. For example, Google brought me to https://src.fedoraproject.org/rpms/lua-lgi/blob/rawhide/f/lua-lgi.spec where I read |
Warning These words I'm placing here is what I remember about GTK-related stuff (I might be mistaken, because I don't touch lgi / GTK in almost 2 years) Hello @definetly-not-carl . Judging by your last comment, the lgi library complaining about the typelib for GtkSource 3.0 is most likely due the fact that the file In the package, you can see in the filelist the expected entry Note I don't have any experience with Fedora. I'm mostly a Debian-based guy. |
DISCLAIMER: it's not a true issue cause I know this library isn't being developed for Lua5.4
So, I have been trying to compile this library for Lua5.4. I am using Fedora 40 and I was trying to see if this library worked with some minor changes. First of all, after having installed
lua-devel
andcompat-lua-devel
, I changed, inside the makefile in the lgi library , the version from5.1
to5.4
I tried to run the makefile (with sudo in front of it) and it "installed", then, after having tried to run it, nothing worked.I went back to the makefile (always inside lgi folder) and, I don't know why, but I had to change
PREFIX
from/usr/local
to/usr
and inLUA_LIBDIR
I changedlib
tolib64
.I then tried to run the makefile in the main folder again and, other than some compilation warnings, I didn't have any other problem. I then tried to run the
console.lua
program withlua console.lua
and it gave me errors withGtkSource
, so I thought it was a version problem and changed inside the lua file I was trying to runGtkSource
's version from3.0
to4.0
. I also tried to understand why it gave me problems withGtkSource
, but I really don't understand much about GTK, therefore I am writing this "adventure" in order to let people start from where I failed.Feel free to correct things I did wrong. Thanks for your attention!
The text was updated successfully, but these errors were encountered: