
I'm trying to build gtk2hs on debian/lenny, that is, with gtk2 v. 2.12 if I understand this correctly. I got the gtk2hs sources from darcs (I guess it's 0.11.0) and http://www.haskell.org/gtk2hs/ says "You need to specify -f-gtk_2_20 for Gtk+ 2.18 etc." I would love to, but where exactly? (When bootstrap.sh) Thanks - J.W.

Johannes Waldmann
I'm trying to build gtk2hs on debian/lenny, that is, with gtk2 v. 2.12 if I understand this correctly.
I got the gtk2hs sources from darcs (I guess it's 0.11.0) and http://www.haskell.org/gtk2hs/ says "You need to specify -f-gtk_2_20 for Gtk+ 2.18 etc." I would love to, but where exactly? (When bootstrap.sh) Infact, you don't need that. Just "cabal install" is enough.
Flags gtk_version just use when first cabalized gtk2hs test-version relased, now gtk2hs can choose right gtk version automatically. Cheers, -- Andy

Andy Stewart
Just "cabal install" is enough.
Hm. That's what bootstrap.sh does, and it builds tools, then glib, but then: Preprocessing library gio-0.11.0... gtk2hsC2hs: Errors during expansion of binding hooks: ./System/GIO/Types.chs:584: (column 12) [ERROR]
Unknown identifier! Cannot find a definition for `Emblem' in the header file.
(and then some more)

Johannes Waldmann
Andy Stewart
writes: Just "cabal install" is enough.
Hm. That's what bootstrap.sh does, and it builds tools, then glib, but then:
Preprocessing library gio-0.11.0... gtk2hsC2hs: Errors during expansion of binding hooks:
./System/GIO/Types.chs:584: (column 12) [ERROR]
Unknown identifier! Cannot find a definition for `Emblem' in the header file. Because GEmblem is need Glib 2.18, mabye your glib is too old. You can use command 'pkg-config --modversion glib-2.0' check your glib version.
Can you update your glib library? -- Andy

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 8/14/10 02:20 , Andy Stewart wrote:
Cannot find a definition for `Emblem' in the header file. Because GEmblem is need Glib 2.18, mabye your glib is too old. You can use command 'pkg-config --modversion glib-2.0' check your glib version.
Can you update your glib library?
I ran up against this here; I can't mandate that our older SuSE systems be upgraded to a newer distribution (our faculty don't like change, in general), so if 2.18 is really needed then it's pretty much the end of the line for gtk2hs as far as we're concerned. :( - -- brandon s. allbery [linux,solaris,freebsd,perl] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxmnswACgkQIn7hlCsL25VoswCg1JTNHlfiWcSnY3ZU4IdfZX19 AtAAn1zt0z9a+KmeD47ByXxM62PQqI4T =c4qG -----END PGP SIGNATURE-----

Brandon S Allbery KF8NH
I ran up against this here; I can't mandate that our older SuSE systems be upgraded to a newer distribution (our faculty don't like change, in general), so if 2.18 is really needed then it's pretty much the end of the line for gtk2hs as far as we're concerned. :(
Similar situation here. I'd like to run debian/stable, at least on my machines with a permanent net conncetion - and I'd like to have identical setup on all machines. If I upgrade gtk2 (compile from source) then I run into problems with some of the pre-compiled applications (because they pick up the newly built .so files, I guess) E.g., firefox (iceweasel) starts crashing, similar to: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551852 Indeed this pretty much kills gtk2hs for me, and so I can't use leksah.

I finally got gtk2hs (and leksah) working: I was compiling all the gtk+ stuff from sources, with ./configure --prefix=/opt/gtk and custom CPPFLAGS LDFLAGS PKG_CONFIG_PATH LD_LIBRARY_PATH as described here: http://library.gnome.org/devel/gtk/unstable/gtk-building.html
participants (3)
-
Andy Stewart
-
Brandon S Allbery KF8NH
-
Johannes Waldmann