LuaSDL is a binding to the famous libSDL 1.2 multimedia library. LuaSDL provides an interface not only to libSDL itself but also to the SDL_image, SDL_mixer, SDL_net, SDL_ttf, and SDL_gfx libraries.
The LuaSDL module depends on many external libraries. To make the module preparation easier, there's a LuaSDL project repository at GitHub with support for the CMake building system. This project repository contains all the necessary external libraries, which make module building process a breeze.
You'll need to have the following software installed to successfully build the LuaSDL module:
The building process of LuaSDL is the same on both Windows and Linux operating systems with minor differences:
git
command:git clone --recursive https://github.com/soulik/LuaSDL.git
mkdir LuaSDL/build cd LuaSDL/build
CMake
building tool to prepare the project files or to make further changes to the building configuration:cmake ..
luasdl.sln
filemake
commandbin
and lib
directories.Note that Microsoft Visual Studio will generate the .dll binary files in the bin directory, whereas, Linux users will find the same binary files in the lib directory. You can copy all the binary files into one directory where your Lua application resides. This will ensure that the Lua interpreter finds all the necessary binary modules.
LuaSDL uses libSDL 1.2, which is more than 5 years old. Despite being no longer maintained, the LuaSDL package is considered as stable.
LuaSDL2 is being developed at the time of writing. You can access the source code from GitHub at https://github.com/soulik/LuaSDL-2.0.git.
18.225.235.144