When a require a lib in my script file:
require"mylib"
There will be an error like: can not find mylib.lua
But mylib is a .dll file.
After reading the Lua5.1 docs
I found out that there is something wrong in package.loaders.
In the lua5.1 docs, package.loaders is a table contains 4 search functions:
In short:
1 to search preloaded
2 to search .lua
3 to search .so or .dll
4 to search all-in-one
But in defold, package.loaders only has one search function, and i am not sure which one is it.
I don’t know why it is like this.
Can anyone help me out of this?
Thanks a lot.
Since Defold is multiplatform, I don’t think there’s support for low level libraries like dll or so files. Require is used between different lua modules, that’s all I think. Could be wrong though
1 Like
You are right. You cannot use dll or so libraries.
There will be a low level extension system eventually though.
M
1 Like
That makes sense.
Thanks again!
1 Like