A Lua graphics library based on SDL
cmake .
make
./install.lua
- MinGW may need type
cmake -G"MinGW Makefiles" .
- Windows may need type
lua install.lua
- Linux may need use
chmod
andsudo
- If you meet
/usr/bin/ld: /usr/local/lib/liblua.a : can not be used when making a shared object; recompile with -fPIC
in Linux, just compile Lua like this:
cd $LUA_SRC
gcc -c -std=c99 -O2 -fPIC *.c
rm lua.o luac.o
ar rc liblua.a *.o
cp liblua.a /usr/local/lib/liblua.a
- C++11