Page 1 of 1

Building with my own LuaJIT

Posted: Sat Sep 25, 2021 11:27 pm
by technomancy
Hello!

I recently got an arm64 laptop, and it's great. However, LuaJIT had some bugs which caused frequent segfaults on arm64. Luckily these bugs have been fixed in git, but they haven't yet made it to a release.

I can't figure out how to recompile Love to use the version of LuaJIT which has the fixes applied. Could anyone point me in the right direction? I'm very unfamiliar with autotools etc.

Re: Building with my own LuaJIT

Posted: Sun Sep 26, 2021 12:45 pm
by darkfrei
Not sure bur maybe the replacing of lua51.dll

Re: Building with my own LuaJIT

Posted: Sun Sep 26, 2021 1:11 pm
by pgimeno
Have you tried to build the development version?

Re: Building with my own LuaJIT

Posted: Mon Sep 27, 2021 11:17 am
by AuahDark
You don't specify OS. In Linux, you probably have to recompile everything so it uses /usr/local paths. In Windows, it's not possible to compile LuaJIT for Windows ARM64 yet.

Re: Building with my own LuaJIT

Posted: Wed Nov 17, 2021 5:30 pm
by technomancy
Ah right; forgot that Windows was a thing. Yes, I'm building on Linux. I was hoping to be able to point love to my luajit that exists in my home dir without any sudo shenanigans, but I guess if putting it in /usr/local is the way to go I can do that; thanks. =)

Re: Building with my own LuaJIT

Posted: Wed Nov 17, 2021 5:44 pm
by grump
technomancy wrote: Wed Nov 17, 2021 5:30 pm Ah right; forgot that Windows was a thing. Yes, I'm building on Linux. I was hoping to be able to point love to my luajit that exists in my home dir without any sudo shenanigans, but I guess if putting it in /usr/local is the way to go I can do that; thanks. =)

Code: Select all

$ LD_PRELOAD=/path/to/my/luajit.so love game.love