Murga-Projects Forums
cross compileMurgaLua? - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: cross compileMurgaLua? (/showthread.php?tid=406)


cross compileMurgaLua? - mikshaw - 01-19-2011 12:40 PM

Is compileMurgaLua intended to work regardless of your platform? I tried a test of compiling a Windows file on Linux, and it seems it doesn't work.

Code:
lua> murgaLua.compileMurgaLua("/home/deb/bin/puzzle.lua","bin/Windows/core-lite/murgaLua_lite.exe","puzzle.exe")
MurgaLua compiler 1.0
=====================
Loading core murgaLua executable ...
Binding compressed code ...
Writing executable stub info ...
Done !!
lua>

bash$ file puzzle.exe
puzzle.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit

That looks like it worked, but then I got this when running it with Wine:

Code:
bash$ wine puzzle.exe
err:menubuilder:WinMain unknown option -a
err:menubuilder:WinMain unknown option -r
puzzle.exe: ?:0: attempt to call global 'newFunc' (a nil value)
stack traceback:
        ?: in function 'decompileMurgaLua'
        [string ""]:1: in main chunk
        [C]: ?
MurgaLua Version 0.7.0 (http://www.murga-projects.com/murgaLua/)
MurgaLua & FLTK/XML bindings : Copyright 2006-9 John Murga, GPL license.
Contains lsqlite by T.Dionizio, LuaSocket by D.Nehab and other bindings.
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
lua> print(murgaLua.getHostOsName())
windows
lua>
err:ole:CoUninitialize Mismatched CoUninitialize

That last line was printed after exiting the Lua prompt

Granted I can see that there might be issues with Wine, but this was just a quick test. I was hoping I could find out whether or not I'm wasting my time when I should intead be testing it on a Windows machine with a Windows version of MurgaLua.


RE: cross compileMurgaLua? - JohnMurga - 01-21-2011 03:27 AM

OK, that REALLY should work.

Had worked for me when I tested it.

I will that combination this weekend (I am assuming you tried your puzzle program).