vlc fails to work with lua if not compiled with -DLUA_COMPAT_5_1
|Reported by:||Tim Tassonis||Owned by:||Fernando de Oliveira|
When compiling and installing vlc 2.2.2 with lua 5.3.2 support according to BLFS svn , the compile went fine, but when I started vlc, I got the error:
core demux meta error: corrupt module: /usr/lib/vlc/plugins/lua/liblua_plugin.so
After some google "research" I found this post:
So, I recompiled lua with:
CFLAGS=' -fPIC -O2 -Wall -Wextra -DLUA_COMPAT_5_1 $(SYSCFLAGS) $(MYCFLAGS)'
make CFLAGS="$CFLAGS" linux
and the problem went away. (I'm quite sure there's a more elegant way to force -DLUA_COMPAT_5_1...)
Maybe this could be noted on either the lua or the vlc page.