lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Am 01.10.2013 08:02 schröbte Pete Stephens:
Guys and Gals,


Hi!


I get,

    E:\proj\pkghandler\Release\?.dll;.\?.dll;.\?51.dll;E:\programs\jre\bin\?.dll;E:\programs\jre\bin\?51.dll;E:\programs\jre\bin\clibs\?.dll;E:\programs\jre\bin\clibs\?51.dll;E:\programs\jre\bin\loadall.dll;E:\programs\jre\bin\clibs\loadall.dll
    Exception in thread "main" com.naef.jnlua.LuaRuntimeException: error loading module 'pkghandler' from file 'E:\proj\pkghandler\Release\pkghandler.dll':

           The specified module could not be found.
           at com.naef.jnlua.LuaState.lua_pcall(Native Method)
           at com.naef.jnlua.LuaState.call(LuaState.java:555)
           at org.eclipse.koneki.ldt.support.lua51.internal.interpreter.JNLua51Launcher.run(JNLua51Launcher.java:122)
           at org.eclipse.koneki.ldt.support.lua51.internal.interpreter.JNLua51Launcher.main(JNLua51Launcher.java:137)


Seems like it is finding the file, but I don’t know why it cant “find” the “module”.  I have compared to several examples online and it looks like it is correct.  I am using Cygwin to compile LUA nad my library module on Windows.  I tried both the 'mingw' and 'posix' targets when I compile 'liblua.a'.  I am running Eclipse (CDT + LDT).

I would appreciate any pointers.

"The specified module could not be found." is not a Lua error message, it comes from the OS. So it is not certain that "The specified module" is in fact your file, it could be a dependency that is not in your PATH (`cygwin1.dll` maybe, since you are using Cygwin?).

Perhaps Cygwin has ldd you can use to list dependencies (`ldd pkghandler.dll`), or you could use some equivalent Windows specific tool (e.g. dependencywalker).


  - Pete


HTH,
Philipp