Page 2 of 2

Re: How to use a LuaRocks project with a LÖVE one?

Posted: Sun Nov 12, 2023 5:35 pm
by ohthepain
I just realised that I necroposted, sorry.

I am still struggling with how to use external libraries. Can somebody let me know how to install loverocks on macOS? Or give me some other solution for incorporating external libraries into a love project?

Re: How to use a LuaRocks project with a LÖVE one?

Posted: Sun Nov 12, 2023 6:12 pm
by zorg
ohthepain wrote: Sun Nov 12, 2023 5:35 pm I just realised that I necroposted, sorry.

I am still struggling with how to use external libraries. Can somebody let me know how to install loverocks on macOS? Or give me some other solution for incorporating external libraries into a love project?
Most people are deathly allergic to anything luarocks, so we just download the library, and put it in a library folder in our project manually.
No need to overcomplicate things. And any decent library will support relative paths if they are made up of multiple files, so fitting them in your project is usually not a problem.

By the way, löve uses luaJIT, so that'd be lua version 5.1 mostly, not 5.4.

Re: How to use a LuaRocks project with a LÖVE one?

Posted: Sun Nov 12, 2023 7:16 pm
by kikonen
I simply used git submodules to insert some external libs. Sue that approach is not everyone but worked for me :)