csound problem

Paul paul at all-the-johnsons.co.uk
Thu Dec 28 01:41:11 UTC 2006


Hi,

I've put myself down as the co-maintainer of csound and have fixed most
of the problems so far. However...

I have had to disable the fltk-gui as there seems to be some problem
with the current rawhide version of fluid's C++ generation. It is
currently generating code which is not in scope

For example, CsoundGUIConsole_FLTK.fl has the following at the top

Function {CsoundGUIConsole() : mutex_(0)} {open
  } {
    code {{
  firstMsg = (Csound_Message*) 0;
  lastMsg = (Csound_Message*) 0;
  buf = new Fl_Text_Buffer();
  styleBuf = new Fl_Text_Buffer();
  msgNotifyLock.TryLock();
  clearLock.TryLock();
  quitLock.TryLock();
  consoleThread =
csoundCreateThread(&CsoundGUIConsole::consoleThreadFunc, (void*) this);
}} {}
    Fl_Window window {
      label {Csound console messages} open
      xywh {438 150 585 320} type Double resizable
      code0 {window = (Fl_Double_Window*) o;} visible
    } {
      Fl_Text_Display textDisplay {
        xywh {0 0 585 320} box DOWN_BOX color 255 labelsize 12 textfont
4 textsize 12 resizable
        code0 {o->buffer(buf);}
      }
    }
    code {textDisplay->highlight_data(styleBuf,
(Fl_Text_Display::Style_Table_Entry*) &(styleTable[0]), 18, (char) 0,
(Fl_Text_Display::Unfinished_Style_Cb) 0, (void*) 0);} {}
  }

which translates into 

CsoundGUIConsole::CsoundGUIConsole() : mutex_(0) {
  {
  firstMsg = (Csound_Message*) 0;
  lastMsg = (Csound_Message*) 0;
  buf = new Fl_Text_Buffer();
  styleBuf = new Fl_Text_Buffer();
  msgNotifyLock.TryLock();
  clearLock.TryLock();
  quitLock.TryLock();
  consoleThread =
csoundCreateThread(&CsoundGUIConsole::consoleThreadFunc, (void*) this);
}
  { window = new Fl_Double_Window(585, 320, "Csound console messages");
    window->user_data((void*)(this));
    { Fl_Text_Display* o = textDisplay = new Fl_Text_Display(0, 0, 585,
320);
      textDisplay->box(FL_DOWN_BOX);
      textDisplay->color(FL_WHITE);
      textDisplay->labelsize(12);
      textDisplay->textfont(4);
      textDisplay->textsize(12);
      Fl_Group::current()->resizable(textDisplay);
      o->buffer(buf);
    } // Fl_Text_Display* textDisplay
    window = (Fl_Double_Window*) o;
    window->end();
  } // Fl_Double_Window* window
  textDisplay->highlight_data(styleBuf,
(Fl_Text_Display::Style_Table_Entry*) &(styleTable[0]), 18, (char) 0,
(Fl_Text_Display::Unfinished_Style_Cb) 0, (void*) 0);
}

o is quite clearly out of scope.

Should I file this problem against fluid or is it something I can fix
directly? I have zero knowledge of fluid, so if it can be fixed,
instructions will need to be damned clear!

TTFN

Paul
-- 
"Mmmmmmmm....Shakira geschmiert mit schokolade" sagt Homer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20061228/eaa29645/attachment.sig>


More information about the fedora-extras-list mailing list