Page 1 of 2

love2d and lua installation on windows 10

Posted: Sun May 23, 2021 1:12 pm
by deb75
Hello,

I retrieved love2d 11.3 on windows 10 and it runs well.

On windows 10, I also have the full msys2 / mingw64 system which brings lua 5.4 (native windows build - mingw64) and luaJIT.

I do not understand well yet how love2d interacts with the mingw64 lua installation :
- does love2d needs either lua5.4 or luaJIT executables at run time ? but it seems love2d only supports lua 5.1
- how to do when I need a special lua package ? I configured luarocks to install for lua 5.4

Regards

Re: love2d and lua installation on windows 10

Posted: Sun May 23, 2021 4:03 pm
by GVovkiv
Love already have anything you need inside it's folder
it don't need external dependencies

Re: love2d and lua installation on windows 10

Posted: Sun May 23, 2021 4:22 pm
by Suttebun
@GVovkiv He's probably trying to do something special.

"Love already has everything you need inside it's folder.
It doesn't need external dependencies." ☆
(If you want help with english, I'm really into teaching! I'm trying to make games for it.)

@Deb75 are you wanting to use Luarocks to manage LUA MODULES for your LOVE project?
Theres a chance that LOVE2D doesn't interact with your mingw64 lua installation, and instead uses an embedded version of LUA like GVovkiv said.

Re: love2d and lua installation on windows 10

Posted: Sun May 23, 2021 5:21 pm
by GVovkiv
Suttebun wrote: Sun May 23, 2021 4:22 pm @GVovkiv He's probably trying to do something special.

"Love already has everything you need inside it's folder.
It doesn't need external dependencies." ☆
(If you want help with english, I'm really into teaching! I'm trying to make games for it.)

@Deb75 are you wanting to use Luarocks to manage LUA MODULES for your LOVE project?
Theres a chance that LOVE2D doesn't interact with your mingw64 lua installation, and instead uses an embedded version of LUA like GVovkiv said.
bro...
ok

Re: love2d and lua installation on windows 10

Posted: Sun May 23, 2021 7:17 pm
by deb75
Thanks all for your kind answeers.

It seems indeed lua embeds lua 5.1. In the zip archive of lua 11.3 there is the lua51.dll file.

I was wondering how to use an external package, e.g. luasocket (but this one seems already available within love2d), with love2d.

Regards

Re: love2d and lua installation on windows 10

Posted: Sun May 23, 2021 7:53 pm
by Suttebun
@GVovkiv Because if you don't talk right, you mess other people up.

Good thing Deb75, have fun.

Re: love2d and lua installation on windows 10

Posted: Sun May 23, 2021 9:30 pm
by togFox
Love 2D has lua socket already but you need to REQUIRE it like you would for any external module.

Re: love2d and lua installation on windows 10

Posted: Tue May 25, 2021 5:32 pm
by AuahDark
It's often discouraged to use LuaRocks module in LOVE due to portability reasons. If you can find LuaJIT FFI binding equivalent of certain libraries then you can use that instead.

Or if it's something trivial then it's easy to write your own.

Re: love2d and lua installation on windows 10

Posted: Fri May 28, 2021 3:38 pm
by GVovkiv
Suttebun wrote: Sun May 23, 2021 7:53 pm @GVovkiv Because if you don't talk right, you mess other people up.

Good thing Deb75, have fun.
OK BROOO

Re: love2d and lua installation on windows 10

Posted: Fri May 28, 2021 5:34 pm
by tomxp411
GVovkiv wrote: Fri May 28, 2021 3:38 pm
Suttebun wrote: Sun May 23, 2021 7:53 pm @GVovkiv Because if you don't talk right, you mess other people up.

Good thing Deb75, have fun.
OK BROOO
Yeah, we all get he was being rude, but responding to his off-topic comments with more off-topic commends doesn't help the conversation. :)