Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4679] Re: fltk (almost) on osx

Date2004-05-12 08:19
FromGabriel Maldonado
Subject[CSOUND-DEV:4679] Re: fltk (almost) on osx
As I told it before, you should make the main FLTK panel to receive some 
bogus message. I suspect this could function, because you told me that 
if you resize the window, the widgets go to the right positions.

Anyway, try to ask to the FLTK list/newsgroup 
(http://www.fltk.org/newsgroups.php) , maybe there is some mac OsX/FLTK 
expert there. Be sure to explain that you are running FLTK as a child 
thread in mac OsX.

good luck!

Gab

Matt J. Ingalls wrote:
> well i was unable to turn on the c++ compiler without thousands of errors.
> but i was able to compile widgets.cpp inside the fltk library.
> after adding some #defined(__MACH__) to use some of the linux code,
> got fltk sort of working on mac, but in addition to the many crashes,
> the fltk windows do not update, which isnt too nice.  i tried
> replacing FL:run() with
> while (1) { Fl:wait(); Fl::redraw(); }
> 
> no difference.
> 
> any suggestions?
> 
> 
> -m
> 
> 
> 
> 


Date2004-05-12 22:26
From"Matt J. Ingalls"
Subject[CSOUND-DEV:4680] Re: fltk (almost) on osx
well i cant quite figure out how the fltk opcodes are working [where is
the krate code!?!?]

anyway i was able to get it to work with:

   // Fl::run();
   while(fl_windows.size()) {
   	long i = 0;
    if (i == 0)
   	Fl::flush();
   	i++;
   }

notice there is NO call to Fl::run() or Fl::wait()..  as far as i can tell
those are the only 2 routines to "run" fltk.  [ so this is really weird
????]

one side effect now is resizing the window messes up the drawing [weird
colors and random lines, etc]

anyway, its crashing a lot [somewhat randomly] and i have no good way to
debug since i had to put widgets.cpp in a separate library so i am about
to give up for a while at least..

-m


On Wed, 12 May 2004, Gabriel Maldonado wrote:

> As I told it before, you should make the main FLTK panel to receive some
> bogus message. I suspect this could function, because you told me that
> if you resize the window, the widgets go to the right positions.
>
> Anyway, try to ask to the FLTK list/newsgroup
> (http://www.fltk.org/newsgroups.php) , maybe there is some mac OsX/FLTK
> expert there. Be sure to explain that you are running FLTK as a child
> thread in mac OsX.
>
> good luck!
>
> Gab
>
> Matt J. Ingalls wrote:
> > well i was unable to turn on the c++ compiler without thousands of errors.
> > but i was able to compile widgets.cpp inside the fltk library.
> > after adding some #defined(__MACH__) to use some of the linux code,
> > got fltk sort of working on mac, but in addition to the many crashes,
> > the fltk windows do not update, which isnt too nice.  i tried
> > replacing FL:run() with
> > while (1) { Fl:wait(); Fl::redraw(); }
> >
> > no difference.
> >
> > any suggestions?
> >
> >
> > -m
> >
> >
> >
> >
>
>
>
>