Murga-Projects Forums

Full Version: cross compileMurgaLua?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

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 !!

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:

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 (
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, PUC-Rio
lua> print(murgaLua.getHostOsName())
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.

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).
Reference URL's