[vlc-devel] linking lua module to specific lua path fails; links to non-specified system path
darx at sent.com
darx at sent.com
Sat Feb 23 17:48:02 CET 2013
I've checked out vlc 2.0 from git src
git log | grep commit | head -n1
commit 72d830b5754ec4f7563c4759c6a908980fac5c23
I've installed lua 5.1.5 in /usr/local
pkg-config --libs lua
-L/usr/local/lib -llua -lm
pkg-config --cflags lua
-I/usr/local/include
I want to ensure that VLC's lua module correctly links to the lua* in my
/usr/local tree.
I've been trying to find a/the combo of ENV vars to make that happen.
Latest iteration (of many) is,
export LUAC="/usr/local/bin/luac"
export LUA_LIBS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib
-llua -lm "
export LUA_CFLAGS="-I/usr/local/include -I/usr/local/include
-I/usr/include"
export LDFLAGS_lua=$LUA_LIBS
export CPPFLAGS_lua="$LUA_CFLAGS
./configure --enable-lua --enable-vlc --enable-rpath
make
Unfortunately, the resultant module links to the wrong liblua
ldd ./modules/lua/.libs/liblua_plugin.so | grep lua
liblua.so.5.2 => /usr/lib64/liblua.so.5.2
(0x00007ff011f55000)
ldd ./vlc | grep lua
(empty)
Adding 'overkill' flags to the entire build
export CFLAGS="$LUA_CFLAGS $CFLAGS"
export LDFLAGS="$LUA_LIBS $LDFLAGS"
export CPPFLAGS="$CPPFLAGS_lua $CPPFLAGS"
only manages to additionally/incorrectly link lua libs to the vlc
executable,
ldd ./modules/lua/.libs/liblua_plugin.so | grep lua
liblua.so.5.2 => /usr/lib64/liblua.so.5.2
(0x00007f47703e6000)
ldd ./vlc | grep lua
liblua.so.5.2 => /usr/lib64/liblua.so.5.2
(0x00007fb8d95a5000)
Have I missed, or misconfigured, something in trying to link 'my' lua
libs correctly? or is this a bug?
-darx
More information about the vlc-devel
mailing list