Reputation: 107
I have install limlib2 and everything and I've checked the directories to see if it's existent, and limlib2 is there. I compile some lua code that uses
require("limlib2")
I receive this error:
lua: error loading module 'limlib2' from file '/usr/local/lib/lua/5.3/limlib2.so': dlopen(/usr/local/lib/lua/5.3/limlib2.so, 6): Symbol not found: _luaL_checkint Referenced from: /usr/local/lib/lua/5.3/limlib2.so Expected in: flat namespace in /usr/local/lib/lua/5.3/limlib2.so stack traceback: [C]: in ? [C]: in function 'require' imgpxl.lua:1: in main chunk [C]: in ?
Any help? I don't understand what's going on.
Upvotes: 0
Views: 318
Reputation: 28940
limlib2 is referencing _luaL_checkint
which fails in Lua 5.3 as _luaL_checkint
has been replaced by _luaL_checkinteger
in Lua 5.2
_luaL_checkint
is deprecated. Just google for _luaL_checkint
to find plenty of workarounds.
Checkout this: Cannot make gunplot on osx yosemite. Undefined symbols
imlib2 seems to haven't been updated in over 8 years. So no wonder you're facing problems
Upvotes: 0