Require .so - Wrong Architecture
Posted: Sun Dec 20, 2009 4:06 am
I'm having issues loading external libraries into Love.
For example, I have lrandom compiled to "/usr/local/lib/lua/5.1/random.so".
In plain old lua require("random") works fine, but when I try and do the same thing in Love, I get this error:
Thoughts? (This happens with both Love 5 and 6... I'm on OS X 10.6.2 and have Lua 5.1.4 installed.)
For example, I have lrandom compiled to "/usr/local/lib/lua/5.1/random.so".
In plain old lua require("random") works fine, but when I try and do the same thing in Love, I get this error:
Code: Select all
function love.load()
require("random")
end
Code: Select all
error loading module 'random' from file '/usr/local/lib/lua/5.1/random.so':
dlopen(/usr/local/lib/lua/5.1/random.so, 2): no suitable image found.
Did find: /usr/local/lib/lua/5.1/random.so: mach-o, but wrong architecture