1) patch edje with the attached file :
put that file in edje/, then:
patch -p0 < edje_lua.diff
2) set CFLAGS accordingly:
export CFLAGS="$CFLAGS -I/my/lua/prefix/include"
3) set LDFLAGS accordingly:
export LDFLAGS="$LDFLAGS -L/my/lua/prefix/lib"
note that there is no -llua anymore
4) run 'make', it should launch autoconf and other autotools automatically
5) if edje compiles:
go to elementary directory
run 'make maintainer-clean'
run './autogen.sh'
run 'make'
tell me if there are errors
Vincent
Index: configure.ac
===================================================================
--- configure.ac (revision 47640)
+++ configure.ac (working copy)
@@ -200,16 +200,30 @@
# Dependencies for the library
# Lua pkg-config hack for different naming conventions
+have_lua="yes"
requirement_lua=""
+lua_libs=""
PKG_CHECK_MODULES([LUA], [lua >= 5.1.0], requirement_lua="lua",
- [PKG_CHECK_MODULES([LUA], [lua5.1 >= 5.1.0], requirement_lua="lua5.1",
- [PKG_CHECK_MODULES([LUA], [lua-5.1 >= 5.1.0], requirement_lua="lua-5.1",
- [PKG_CHECK_MODULES([LUA], [lua51 >= 5.1.0], requirement_lua="lua51",
- AC_MSG_ERROR([unable to find Lua])
- )
- ])
- ])
-])
+ [PKG_CHECK_MODULES([LUA], [lua5.1 >= 5.1.0], requirement_lua="lua5.1",
+ [PKG_CHECK_MODULES([LUA], [lua-5.1 >= 5.1.0], requirement_lua="lua-5.1",
+ [PKG_CHECK_MODULES([LUA], [lua51 >= 5.1.0], requirement_lua="lua51",
+ [have_lua="no])])])])
+
+if test "x${have_lua}" = "no" ; then
+ AC_MSG_CHECKING([whether lua_newstate() is in liblua])
+ AC_CHECK_LIB([lua], [lua_newstate],
+ [
+ have_lua="yes"
+ lua_libs="-llua"
+ ],
+ [have_lua="no"])
+ AC_MSG_RESULT([${have_lua}])
+fi
+AC_SUBST(lua_libs)
+
+if test "x${have_lua}" = "no" ; then
+ AC_MSG_ERROR([Cannot find lua library. Be sure that you have installed it and set CFLAGS and LDFLAGS correctly])
+fi
PKG_CHECK_MODULES([EDJE],
[
@@ -221,8 +235,8 @@
embryo >= 0.9.1
])
-EDJE_LIBS="$EDJE_LIBS $LUA_LIBS"
-EDJE_CFLAGS="$EDJE_CFLAGS $LUA_CFLAGS"
+EDJE_LIBS="${EDJE_LIBS} ${LUA_LIBS} ${lua_libs}"
+EDJE_CFLAGS="${EDJE_CFLAGS} ${LUA_CFLAGS}"
requirement_edje="embryo ecore evas eet eina-0 ${requirement_edje}"
requirement_edje="${requirement_lua} ${requirement_edje}"
Index: edje.pc.in
===================================================================
--- edje.pc.in (revision 47640)
+++ edje.pc.in (working copy)
@@ -10,5 +10,5 @@
@pkgconfig_requires_private@: @requirement_edje@
Version: @VERSION@
Libs: -L${libdir} -ledje
-Libs.private:
+Libs.private: @lua_libs@
Cflags: -I${includedir}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel