Page 2 of 2
Re: Building LÖVE - Windows
Posted: Wed Oct 17, 2012 5:58 pm
by Nixola
Oh, ok.
...how?
Re: Building LÖVE - Windows
Posted: Wed Oct 17, 2012 6:19 pm
by Boolsheet
Nixola wrote:...how?
How to link against the import library or how to rebuild everything?
For the first, get a Lua DLL with import library. Place the .lib in 'platform/msvc2010/lib' and the .dll in 'platform/msvc2010'. In Visual Studio, open the project properties and, in the left list, select "Linker" -> "Input". On the right side you have now "Additional Dependencies" at the top. Edit its value where you remove lua.lib and add the name of your Lua import library.
If you want to build everything yourself, rude made a
megasource package that includes the source code of all necessary dependencies. I don't remember at what version the included LÖVE is or what configuration it offers.
Re: Building LÖVE - Windows
Posted: Wed Oct 17, 2012 8:41 pm
by Nixola
Could I switch rapidly between lua and luaJit if I link it dynamically this way?
Re: Building LÖVE - Windows
Posted: Thu Oct 18, 2012 7:23 am
by Boolsheet
I would not use the word rapidly, but it is possible to drop-in a LuaJIT DLL, given they are compatible. One incompatibility could be the calling convention, but msvc defaults to cdecl so that shouldn't be a problem. Another thing could be a different data structure alignment, but I don't know how vulnerable Lua is to that.
I'd say it's faster to just have two separate executables, one for each Lua.