Open GoogleCodeExporter opened 8 years ago
[deleted comment]
Supposedly there is a port of LuaInterface for linux (as quoted here:
http://www.mono-project.com/Software)
It links to this project page: http://yanesdkdotnet.sourceforge.jp/ (in
japanese),
and this file:
http://yanesdkdotnet.sourceforge.jp/download/lua4yanesdk200701242308v160.zip
I tried the files in this zip to no avail. Same error. Send halp.
Original comment by c.r.nov...@gmail.com
on 19 Mar 2010 at 8:02
Have you tried liblua51.so? Delete the dll and put either a symlink or the
actual .so
from the lua package on whatever distro (On ubunutu apt-get install lua-5.1) or
copy
the liblua51.so to your output directory, Mono should see this and load the SO
instead.
Original comment by plagueth...@gmail.com
on 1 Apr 2010 at 11:46
I may be doing it wrong, but I just tried your suggestion to no avail.
I tried naming it liblua51.so, liblua5.1.so.0 (its original name), and
lua51.dll. In
all cases I used a symlink.
The error:
~/Debug$ mono WindowsFormsApplication1.exe
** (WindowsFormsApplication1.exe:2380): WARNING **: The following assembly
referenced
from /home/c/Debug/LuaInterface.dll could not be loaded:
Assembly: lua51 (assemblyref_index=1)
Version: 0.0.0.0
Public Key: 1e1fb15b02227b8a
The assembly was not found in the Global Assembly Cache, a path listed in the
MONO_PATH environment variable, or in the location of the executing assembly
(/home/c/Debug/).
Files:
lrwxrwxrwx 1 c c 23 2010-04-01 12:16 liblua51.so -> /usr/lib/liblua5.1.so.0
lrwxrwxrwx 1 c c 23 2010-04-01 12:19 liblua5.1.so.0 -> /usr/lib/liblua5.1.so.0
lrwxrwxrwx 1 c c 23 2010-04-01 12:15 lua51.dll -> /usr/lib/liblua5.1.so.0
Any ideas? Am I simply doing it wrong?
Original comment by c.r.nov...@gmail.com
on 1 Apr 2010 at 4:20
The "lua51.dll" in LuaInterface is compiled by Visual Studio and use the /clr
options. That's to say the dll is mixed with windows native code and IL
code.And the native code also has a Visutal Studio CRT dll reference such as
msvcmt.dll and even windows kernal32.dll.
Because of these, the lua51.dll cannot be used on mono/linux. There are 2 ways
to resolve it.
The first is make a linux version C++/CLI compiled lua library, I think GCC
could handle this.
The second is make a pure IL library version of lua, replace all the CRT calls
with CLR calls. There is a guide on Homepage of Mono.
Now I'm trying on the second way but I got an error when lua script call C#
functions that means I couldn't call Managed Code in Unmanaged Code.
I'm working hard on that
Original comment by Terender...@ifreeteam.com
on 25 Oct 2012 at 2:20
@Terender...@ifreeteam.com
I took another approach, I wrote my own (100% managed) wrapper library around
the liblua51.dll/liblua51.so:
https://code.google.com/p/parallel-tasks-simulator/source/browse/#svn%2Ftrunk%2F
Src%2FLua4Net
Original comment by ulrich...@gmail.com
on 25 Oct 2012 at 8:52
Original issue reported on code.google.com by
ulrich.b...@gmail.com
on 7 Oct 2009 at 5:31