How Do I Update An Existing App's Lua Libraries?

274 Views Asked by At

I've been working on updating an old app that uses Lua 5.1 and IUP 2.5.1, and I want to update the versions of Lua and IUP it uses, but I'm a novice at this stuff, so I don't know how. I tried Googling for answers, but I had trouble understanding it.

How do you know which binaries to download? I'm using Windows 10 64x, but I'd like other people to be able to use the app, even if they don't have Lua/IUP. Where do you put the binaries? Is there a way I can edit the existing code to connect the library to the app?

If it helps, the files can be found here: https://sourceforge.net/projects/citybinder-for-homecoming/files/CityBinder_For_Homecoming_v0.1/ The main folder includes the files citybinder.c and Makefile, which set up requirements. Citybinder.c mentions a lot of .h files, but there are none in the folder. There's also an interpreter: iuplua5.exe.

1

There are 1 best solutions below

5
Antonio Scuri On

How do you know which binaries to download?

I suggest you to download the iup-3.30-Lua54_Win64_bin.zip package. That will include everything you need, but much more than that. Things can be removed if they are not being used if you need to reduce the distributed package size.

Where do you put the binaries?

You can unpack to any folder you like. You can use an installer, for instance Inno Setup, to build a setup for your files.

Is there a way I can edit the existing code to connect the library to the app?

The iuplua54.exe and the wlua54.exe accept a Lua file in the command line, so you can skip the default iuplua54.exe interface.

You can take a look at the IUP documentation in Guide / Lua Binding section to learn how to inicialize Lua and IUP libraries from C.