The use of external libraries that use C in löve: websockets-lua

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
radbuglet
Prole
Posts: 2
Joined: Fri Feb 23, 2018 10:09 pm

The use of external libraries that use C in löve: websockets-lua

Post by radbuglet »

Hello,
I was doing research on how to use a websocket server in conjunction with lua and found the library lua-websockets. However, this library requires a couple of modules that use C. How would I use this inside of a löve application (Especially for distribution)?

Note: I am only using macosx and windows as target platforms

Thanks in advance. :)
User avatar
radbuglet
Prole
Posts: 2
Joined: Fri Feb 23, 2018 10:09 pm

Re: The use of external libraries that use C in löve: websockets-lua

Post by radbuglet »

Solution: You can locally download modules on luarocks using the --tree flag.

Here is the full documentation for the luarocks command: https://github.com/luarocks/luarocks/wiki/luarocks
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests