News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
cross compileMurgaLua?
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
cross compileMurgaLua?

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.

01-19-2011 12:40 PM
Find all posts by this user Quote this message in a reply

Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #2
RE: cross compileMurgaLua?

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).

01-21-2011 03:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: