[Unison-hackers] building the GTK2 UI on Cygwin

Lucas B. Cohen mli6 at free.fr
Fri Dec 14 00:06:33 EST 2007


> bounces at lists.seas.upenn.edu] De la part de Andrew Schulman
> Envoyé : mercredi 12 décembre 2007 09:47
> 
> > Building the text version of Unison is pretty straightforward, however I was
> not
> > able to run the GTK2 one. Compiling it works, but the program crashes
> immediately
> > at runtime with the following error : Uncaught exception
> Gtk.Error("GtkMain.init:
> > initialization failed\nml_gtk_init: initialization failed").
> 
> Right.  IIRC this error happens in Cygwin with all Unison versions prior to
> 2.27.something.  However, a little while back I did get around to trying again
> with the most recent Unison, and the problem had gone away.

That's encouraging, however I was not able to get any of the versions provided on
the Unison website to run. I especially concentrated on 2.27.48 and 2.28.23,
trying the two different versions of lablgtk2 provided by Cygwin, OCaml compilers
v3.08.0 and 3.10.0, and having OSCOMP set to 'cygwingnuc' or unset. Cygwin itself
was at version 1.25.

The INSTALL.win32-cygwin-gnuc file in the 2.28.23 tarball does not mention
anything about the GTK2 interface, but only the GTK one. Could that be the one you
managed to use ? I was not able to build that one either, because of what seems to
be discussed in [1].

> > Is there a structural reason why GTK2/lablgtk2 cannot function together ? I
> > noticed the Cygwin distribution ships OCaml and lablgtk2 binaries, but only
> > the text version of Unison.
> 
> The uncaught exception always prevented me from packaging the GUI version for
> Cygwin in the past.  Now that the problem has finally gone away, I haven't
> gotten back to packaging it.  Probably next month I'll try again.
> 
> I use the text version of Unison myself, so it's not top priority for me to get
> the GUI working.  Also, there's some packaging complexity, because of all the
> different versions.  But I'll put it back on my to-do list.  Not this month
> though.
 
I appreciate it, and look forward to hearing about the results.

Until then, happy holidays.

Lucas

[1] http://www.nabble.com/Missing-gdkx.h-in-gtk2-resolved-tt13621950.html




More information about the Unison-hackers mailing list