Re: Interested in lua2exe ?

  • From: QuentinC <webmaster@xxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 19 Jul 2012 18:22:19 +0200

I have just found the solution to modify all those libraries which require lua5.1.dll unstead of lua51.dll. For example, it works with luasocket but not with wxlua. Be careful, dirty hacking.

local file ='something.dll', 'rb')
local data = file:read('*a')
file ='someting2.dll', 'wb')
file:write(data:gsub('lua5.1.dll', 'lua51.dll\0'))

Windows don't see any problem with that modification if the DLL isn't signed (of course it invalidates the signature if any). A chance that "lua51.dll" is shorter than "lua5.1.dll" !

Ah, a question, in fact: why having chosen lua51.dll and not lua5.1.dll when building luajit by default ? Luajit is the only one to have chosen lua51.dll, or even in the lua 5.1.5 community the name of the DLL was not completely clear at the time luajit was created ?

Other related posts: