more sense to me than trying to write an entire interface in lua). What I want
to do is something like this:
Code: Select all
my_variable=`lua <path/to/cli.lua> <arguments>`
echo $my_variable >> my_textfile.txt #saving current state
echo $vlc_variable $my_variable > $FIFO #make VLC do stuff
to load exactly; the documentation just sucks.
I tried:
loadfile("/usr/local/lib/libvlc.so")
local vlc = package.loadlib("/usr/local/lib/libvlc.so",'luaopen_libvlc')
package.preload['libvlc']
require("libvlc")
none of which works.
I just get variations of this:
Code: Select all
lua5.1: /home/BUILD/vlc-2.2.0/share/lua/intf/cli1.lua:63: module 'vlc' not found:
no field package.preload['vlc']
no file './vlc.lua'
no file '/usr/share/lua/5.1/vlc.lua'
no file '/usr/share/lua/5.1/vlc/init.lua'
no file '/usr/lib/lua/5.1/vlc.lua'
no file '/usr/lib/lua/5.1/vlc/init.lua'
no file './vlc.so'
no file '/usr/lib/lua/5.1/vlc.so'
no file '/usr/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/BUILD/vlc-2.2.0/share/lua/intf/cli1.lua:63: in main chunk
[C]: ?