gdk_pixbuf_mlsource requires X

Richard Jones <[email protected]> Wed, 16 Jun 2010 17:47:30 +0100
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
I just want to point this out ...

  $ gdk_pixbuf_mlsource --build-list static Throbber.png animation Throbber.gif > /dev/null

vs

  $ DISPLAY= gdk_pixbuf_mlsource --build-list static Throbber.png animation Throbber.gif > /dev/null
  Fatal error: exception Gtk.Error("GtkMain.init: initialization failed
  ml_gtk_init: initialization failed")

Actually I'm not using quite the latest version of lablgtk2 and I
haven't checked if this is still a problem with the latest upstream.
If it is, then this is going to make it a little bit harder to build
my project on the Fedora autobuilders, where X is obviously not
available.  (I'll have to bundle the *.ml file instead)

Rich.

-- 
Richard Jones
Red Hat