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 
convertFluidToMurguaLua sh
Author Message

Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #1
RE: convertFluidToMurguaLua sh

iGame3D Wrote:
I get the same error trying to convert any of the example .cxx files


// generated by Fast Light User Interface Designer (fluid) version 1.0108

#include "2test.h"

Fl_Double_Window* make_window() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(100, 100, "aname");
    w = o;
  } // Fl_Double_Window* o
  return w;

OK, it's that CXX file that you should be converting.

I saved it to "text.cxx" and then did :

sh tools/ test.cxx > test.lua

And got the file, alternatively if AWK on your system is causing the problem (unlikely), you can also try :

bin/murgaLua tools/convertFluidToMurgaLua.lua test.cxx > test.lua

Which worked for me too.

The output from both was :

do local object = fltk:Fl_Double_Window(100, 100, "aname");
    window = object;

Which runs out of the box.


04-25-2007 06:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
convertFluidToMurguaLua sh - iGame3D - 04-25-2007, 06:22 PM
RE: convertFluidToMurguaLua sh - JohnMurga - 04-25-2007 06:44 PM
RE: convertFluidToMurguaLua sh - iGame3D - 04-26-2007, 03:30 AM
RE: convertFluidToMurguaLua sh - JohnMurga - 04-26-2007, 03:57 AM

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

Forum Jump: