[gambit-list] Gambit and GUI (GTK+)
Diogo F. S. Ramos
diogofsr at gmail.com
Thu Mar 31 11:06:17 EDT 2011
> 2011/3/31 Diogo F. S. Ramos <diogofsr at gmail.com>
>
> Hello,
>
> I am a really gambit newbie and I was toying with the idea of creating a
> GUI application with gambit.
>
> Is there some GUI library? By that I mean a widget collection library
> like GTK+ or QT.
>
> You can check Jazz Scheme, it's based on Gambit, multiplatform, and has a GUI library.
>
> As regards GTK or QT, you plug them in via the FFI. You can both make calls to C and get callbacks from C using it. Check in the Dumping grounds on the wiki
> if there's any FFI integration for them, alternatively take inspiration from one that already exists for another Scheme implementation while implementing
> your own for Gambit.
Nice.
I took you suggestion and went to Dumping Grounds. There I found a cairo
binding that inspired me. :)
AFAICS it generates bindings from the C functions directly to gambit and
creates a loadable object. It is really nice and it is very different
from what I was trying to do.
What I had in mind was using a main C program for the GUI and to use
gambit like an extension. Just like the server/client example,
actually. Although I must say that I didn't went too far as I keep
getting a 'undefined reference to `____20_server__'' linker error. And I
didn't quite find a place where it's describe what functions have to be
called to initiate the gambit library.
I also tried to create a shared library and link it against an ordinary
C program but I kept getting seg faults. I guess I need to initiate the
gambit library from the C program.
But nevertheless, the way cairo's binding does it seems really
cool. Thank you.
--
Diogo F. S. Ramos
More information about the Gambit-list
mailing list