Skip to content

hubenchang0515/SDLuna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDLuna

A Lua graphics library based on SDL

Alpha Version 1.0

Install

cmake .
make
./install.lua
  • MinGW may need type cmake -G"MinGW Makefiles" .
  • Windows may need type lua install.lua
  • Linux may need use chmod and sudo
  • 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

Environment

  • C++11

Dependence

Document

You may also refer to :