midimonster: Lua interpreter extensions may fail to load if not linked against liblua themselves
My config wont parse because it gets this:
Failed to load source file fsgc2ir.lua for instance gc: error loading module 'socket.core' from file '/usr/lib/arm-linux-gnueabihf/lua/5.3/socket/core.so':
/usr/lib/arm-linux-gnueabihf/lua/5.3/socket/core.so: undefined symbol: lua_gettop
Running Raspberry Pi4 with Raspbian latest. Aim is to use TouchOSC to control multiple aspects of my studio I have lua 5.1, 5.2 and 5.3 installed as well as luasocket library. Is there any other libraries I need? I tried installing the socket library with luarocks but it comes up with this error:
pi@raspberrypi:~ $ sudo luarocks install luasocket
Installing https://luarocks.org/luasocket-3.0rc1-2.src.rock
gcc -O2 -fPIC -I/usr/include/lua5.1 -c src/mime.c -o src/mime.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
src/mime.c:7:10: fatal error: lua.h: No such file or directory
#include "lua.h"
^~~~~~~
compilation terminated.
Error: Build error: Failed compiling object src/mime.o
so I installed all the libraries the standard way including socket:
sudo apt-get install luasocket
sudo apt-get install luasocket-dev
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 25 (7 by maintainers)
For your specific use case, an example config using Python might be as follows (this just maps my mouse keys to two commands, but you get the picture)
globalcache.cfg
globalcache.py