merge all .dll file into single exe

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Vrx8
Prole
Posts: 19
Joined: Sat Jun 17, 2017 5:35 am

merge all .dll file into single exe

Post by Vrx8 » Sat Sep 16, 2017 10:38 am

is it possible and allowed ?

grump
Party member
Posts: 121
Joined: Sat Jul 22, 2017 7:43 pm

Re: merge all .dll file into single exe

Post by grump » Sat Sep 16, 2017 11:22 am

Not easily possible. You could compile LÖVE and all dependencies yourself and use static instead of dynamic linking to get a single executable. It's not an easy task though, I don't recommend to attempt this if you're not an experienced programmer with prior knowledge about this stuff.

I think there are no dependencies that wouldn't legally allow static linking.

Vrx8
Prole
Posts: 19
Joined: Sat Jun 17, 2017 5:35 am

Re: merge all .dll file into single exe

Post by Vrx8 » Sat Sep 16, 2017 11:26 am

alright

User avatar
bartbes
Sex machine
Posts: 4838
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: merge all .dll file into single exe

Post by bartbes » Sat Sep 16, 2017 1:00 pm

There are no dependencies that don't legally allow static linking if your game has a license compatible with the LGPL (I am not a lawyer, please check all licenses).

There are 4 reasons for a library to be shipped as a dll in the official windows builds:
  • It's LGPL.
  • Dynamic linking provides an important technical benefit: This is true for lua.dll and the vc++ redistributable. They need to be dynamically linked if you want to dynamically load other lua libraries.
  • You might want to swap it out.
  • It's love.dll. This is useful if you want to use love from another lua interpreter, and means love.exe and lovec.exe don't each include their own copy.
Cowardly acts and the eating of birds must not be the deeds of a Hero of Storms.

Post Reply

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests