Hi koral!

On 2013-04-21 13:12, koral wrote:
> I've started fiddling with webkit's binding, as it seems rather
> unmaintained and as I need some missing functions for my project
> (hbro).
> First surprise: as is, darcs version of webkit package doesn't
> compile, because of missing ObjectClass instances in Type.chs.

Hm. This sounds like maybe you are building webkit and gtk with 
different settings of the gtk3 flag. Can you check that both are built 
with -f-gtk3 or both are built with -fgtk3? (Perhaps you are using an 
installation of gtk that you already had, and which doesn't do GTK3, but 
you're using webkit from darcs, which does.)

> I didn't find any documentation about how the build chain works, so I
> resorted to a plain reading of Setup*.hs files.
> I first attempted to edit Types.chs directly, until I realized it is
> generated by gtk2hsTypeGen before each build -- would have appreciated
> some hint about that not to waste time.

Well, to be fair, the very top of Types.chs *does* give you such a 
hint.

-- -------------------- automatically generated file - do not edit 
----------

=)

> I had to print some internal states from SetupMain.hs to display the
> arguments fed to gtk2hsTypeGen -- side suggestion: what about adding
> some logs in Gtk2Hs module so that newbies can understand what's going
> on ?

Yep, the gtk2hs build chain is super complicated. You can get some 
details by passing -v3 to cabal when you invoke it.

> Was that GtkObject removal intended ? If yes, how else could we fix
> webkit's build ?

Again, it builds here -- so perhaps you should check above. If you're 
still having trouble, let's see if we can get it fixed.

~d

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to