Difference between revisions of "Lua"

From CBLFS
Jump to navigationJump to search
m
(Just fix it, don't clutter the pages.)
 
Line 8: Line 8:
  
 
{{Package-Introduction|Lua is a powerful, fast, light-weight, embeddable scripting language|http://www.lua.org/}}
 
{{Package-Introduction|Lua is a powerful, fast, light-weight, embeddable scripting language|http://www.lua.org/}}
 
{{Note|On pure 64 bits add CPPFLAGS<nowiki>="-fPIC"</nowiki> if you plain to build VLC against LUA. This will avoid the following error : relocation R_X86_64_32 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC}}
 
  
 
== Dependencies ==
 
== Dependencies ==
Line 17: Line 15:
 
Compile the package:
 
Compile the package:
  
  make linux
+
  make CPPFLAGS="-fPIC" linux
  
 
Install the package
 
Install the package
Line 34: Line 32:
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILD32}" linux
+
  make CC="gcc ${BUILD32}" CPPFLAGS="-fPIC" linux
  
 
Install the package
 
Install the package
Line 49: Line 47:
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILDN32}" linux
+
  make CC="gcc ${BUILDN32}" CPPFLAGS="-fPIC" linux
  
 
Install the package
 
Install the package
Line 65: Line 63:
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILD64}" linux
+
  make CC="gcc ${BUILD64}" CPPFLAGS="-fPIC" linux
  
 
Install the package
 
Install the package

Latest revision as of 16:53, 17 August 2009

Download Source: http://www.lua.org/ftp/lua-5.1.4.tar.gz

Introduction to Lua

Lua is a powerful, fast, light-weight, embeddable scripting language

Project Homepage: http://www.lua.org/

Dependencies

Non-Multilib

Compile the package:

make CPPFLAGS="-fPIC" linux

Install the package

make INSTALL_TOP=/usr install &&
mkdir -pv /usr/share/lua/5.1 &&
mkdir -pv /usr/lib/lua/5.1 &&
sed -i 's@/usr/local@/usr@g' etc/lua.pc &&
cp etc/lua.pc /usr/lib/pkgconfig &&
cp etc/lua.ico /usr/share/icons

Multilib

32Bit

Compile the package:

make CC="gcc ${BUILD32}" CPPFLAGS="-fPIC" linux

Install the package

make INSTALL_TOP=/usr install &&
mkdir -pv /usr/share/lua/5.1 &&
mkdir -pv /usr/lib/lua/5.1 &&
sed -i 's@/usr/local@/usr@g' etc/lua.pc &&
cp etc/lua.pc /usr/lib/pkgconfig &&
cp etc/lua.ico /usr/share/icons

N32

Compile the package:

make CC="gcc ${BUILDN32}" CPPFLAGS="-fPIC" linux

Install the package

make INSTALL_TOP=/usr INSTALL_LIB=/usr/lib32 install && 
mkdir -pv /usr/share/lua/5.1 &&
mkdir -pv /usr/lib32/lua/5.1 &&
sed -i 's@/usr/local@/usr@g' etc/lua.pc &&
sed -i 's@/lib@/lib32@g' etc/lua.pc &&
cp etc/lua.pc /usr/lib32/pkgconfig &&
cp etc/lua.ico /usr/share/icons

64Bit

Compile the package:

make CC="gcc ${BUILD64}" CPPFLAGS="-fPIC" linux

Install the package

make INSTALL_TOP=/usr INSTALL_LIB=/usr/lib64 install &&
mkdir -pv /usr/share/lua/5.1 &&
mkdir -pv /usr/lib64/lua/5.1 &&
sed -i 's@/usr/local@/usr@g' etc/lua.pc &&
sed -i 's@/lib@/lib64@g' etc/lua.pc &&
cp etc/lua.pc /usr/lib64/pkgconfig &&
cp etc/lua.ico /usr/share/icons

Contents

Installed Directories: None
Installed Programs: lua, luac
Installed Libraries: liblua.a

Short Descriptions

lua is the Lua interpreter
luac is the Lua compiler
Retrieved from "?title=Lua&oldid=18897"