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

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.

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

Messages In This Thread
cross compileMurgaLua? - mikshaw - 01-19-2011 12:40 PM
RE: cross compileMurgaLua? - JohnMurga - 01-21-2011, 03:27 AM

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

Forum Jump: