Please report any bug of gtk2hs-0.11.0!

Hi all, We plan to release bug fix version : gtk2hs-0.11.1 Please report any bug of gtk2hs-0.11.0, we will fix it before release gtk2hs-0.11.1 We plan to add many new APIs in gtk2hs-0.12.0, so gtk2hs-0.11.1 will be the last stable version with current APIs. Thanks for your help! -- Andy

Andy Stewart schrieb:
Hi all,
We plan to release bug fix version : gtk2hs-0.11.1
Please report any bug of gtk2hs-0.11.0, we will fix it before release gtk2hs-0.11.1
I'm looking forward for this bug-fix release (since gtk2hs-0.11.0 did not work for me). Because I've almost missed this message I reply to gtk2hs-users@lists.sourceforge.net, too. Christian
We plan to add many new APIs in gtk2hs-0.12.0, so gtk2hs-0.11.1 will be the last stable version with current APIs.
Thanks for your help!
-- Andy

Short version of this post:
Looks like the intsall depends on alex and that dependencies doesn't
appear to be handled, i.e. I had to install alex before proceeding.
why do is it called gtk2hs if you are actually installing package
gtk ;-)
Where's the demo directory ?!
Moral of the story: don't forget to install -dev version of the
necessary libraries. For me that was libpango1.0-dev, libgtk2.0-dev and
libglib2.0-dev.
The long version:
I have a debian system and I expect the problems I found to be
relatively common. Hope this is useful.
First I found that I needed package alex.
then i was able to
cabal install gtk2hs-buildtools
however
cabal install gtk
didn't work:
Configuring glib-0.11.0...
setup: The pkg-config package glib-2.0 is required but it could not be
found. cabal: Error: some packages failed to install:
gio-0.11.0 depends on glib-0.11.0 which failed to install.
glib-0.11.0 failed during the configure step. The exception was:
ExitFailure 1
gtk-0.11.0 depends on glib-0.11.0 which failed to install.
pango-0.11.0 depends on glib-0.11.0 which failed to install.
cabal install glib
Configuring glib-0.11.0...
setup: The pkg-config package glib-2.0 is required but it could not be
found. cabal: Error: some packages failed to install:
glib-0.11.0 failed during the configure step. The exception was:
ExitFailure 1
now it's not obvious to me at this point if it's referencing a cabal
package glib-2.0 or the unix libs. But I'm going to guess it's
actually the unix libs.
I do have the unix libs installed :
ii libglib2.0-0
2.24.1-1 The GLib library of C routines
However I remembered that annoying little thing that there is always
those darn -dev versions of the lib that you need when you actually
want to compile against libraries. So I installed it and got farther
along, crashing on pango.
Turns out it's the same problem. So install libpango1.0-dev and
continue...
Stopped again on gtk+, aka gtk libgtk2.0-dev. Installed it, and
trudged on.
I noticed that the install process stays at this point for a long
time:
Preprocessing library gtk-0.11.0...
But it does eventually continue, and it even completes successfully !
Strangely, at this point, I find that I don't know that I actually have
gtk2hs installed. I know that this sound kinda dumb, but I just did
"cabal install gtk", right ? I immediately tried "cabal install
gtk2hs", which said no such library, and realized that gtk was it :-)
So I'd like to run a demo to make sure things are installed properly.
Running the demos.
------------------
To get started, you can compile and run one of the programs that reside
in the demo/ directory in the respective packages. For example:
~/gtk2hs/gtk/demo/hello:$ make
But after the installation the demo directory is nowhere to be found.
Do you need to pull it in with darcs ??
Brian
On Tue, 13 Jul 2010 11:42:26 +0200
Christian Maeder
Andy Stewart schrieb:
Hi all,
We plan to release bug fix version : gtk2hs-0.11.1
Please report any bug of gtk2hs-0.11.0, we will fix it before release gtk2hs-0.11.1
I'm looking forward for this bug-fix release (since gtk2hs-0.11.0 did not work for me).
Because I've almost missed this message I reply to gtk2hs-users@lists.sourceforge.net, too.
Christian
We plan to add many new APIs in gtk2hs-0.12.0, so gtk2hs-0.11.1 will be the last stable version with current APIs.
Thanks for your help!
-- Andy
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On 14 July 2010 14:52,
Short version of this post:
Looks like the intsall depends on alex and that dependencies doesn't appear to be handled, i.e. I had to install alex before proceeding.
Yes, cabal-install isn't able to cope with the build-tools dependencies.
why do is it called gtk2hs if you are actually installing package gtk ;-)
The overall meta-project is called gtk2hs, and all these libraries used to come together in one big package called gtk2hs.
Where's the demo directory ?!
Does it say there's one? -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Short version of this post:
Looks like the intsall depends on alex and that dependencies doesn't appear to be handled, i.e. I had to install alex before proceeding.
why do is it called gtk2hs if you are actually installing package gtk ;-) Because before gtk2hs cabalized package release (gtk2hs-0.11.0), we put many gtk+ base package in *one* repository.
Currently, glib, gio, cairo, pango, gtk still in repository : http://code.haskell.org/gtk2hs
Where's the demo directory ?!
Sorry, we forgot add demo in .cabal file when we released gtk2hs-0.11.0, We will include all demos in gtk2hs-0.11.1
Moral of the story: don't forget to install -dev version of the necessary libraries. For me that was libpango1.0-dev, libgtk2.0-dev and libglib2.0-dev.
The long version:
I have a debian system and I expect the problems I found to be relatively common. Hope this is useful.
First I found that I needed package alex.
then i was able to
cabal install gtk2hs-buildtools
however
cabal install gtk
didn't work:
Configuring glib-0.11.0... setup: The pkg-config package glib-2.0 is required but it could not be found. cabal: Error: some packages failed to install: gio-0.11.0 depends on glib-0.11.0 which failed to install. glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1 gtk-0.11.0 depends on glib-0.11.0 which failed to install. pango-0.11.0 depends on glib-0.11.0 which failed to install.
cabal install glib
Configuring glib-0.11.0... setup: The pkg-config package glib-2.0 is required but it could not be found. cabal: Error: some packages failed to install: glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1
now it's not obvious to me at this point if it's referencing a cabal package glib-2.0 or the unix libs. But I'm going to guess it's actually the unix libs.
I do have the unix libs installed :
ii libglib2.0-0 2.24.1-1 The GLib library of C routines
However I remembered that annoying little thing that there is always those darn -dev versions of the lib that you need when you actually want to compile against libraries. So I installed it and got farther along, crashing on pango.
Turns out it's the same problem. So install libpango1.0-dev and continue...
Stopped again on gtk+, aka gtk libgtk2.0-dev. Installed it, and trudged on.
I noticed that the install process stays at this point for a long time:
Preprocessing library gtk-0.11.0...
But it does eventually continue, and it even completes successfully !
Strangely, at this point, I find that I don't know that I actually have gtk2hs installed. I know that this sound kinda dumb, but I just did "cabal install gtk", right ? I immediately tried "cabal install gtk2hs", which said no such library, and realized that gtk was it :-)
So I'd like to run a demo to make sure things are installed properly.
Running the demos. ------------------
To get started, you can compile and run one of the programs that reside in the demo/ directory in the respective packages. For example:
~/gtk2hs/gtk/demo/hello:$ make
But after the installation the demo directory is nowhere to be found. Do you need to pull it in with darcs ??
Brian
On Tue, 13 Jul 2010 11:42:26 +0200 Christian Maeder
wrote: Andy Stewart schrieb:
Hi all,
We plan to release bug fix version : gtk2hs-0.11.1
Please report any bug of gtk2hs-0.11.0, we will fix it before release gtk2hs-0.11.1
I'm looking forward for this bug-fix release (since gtk2hs-0.11.0 did not work for me).
Because I've almost missed this message I reply to gtk2hs-users@lists.sourceforge.net, too.
Christian
We plan to add many new APIs in gtk2hs-0.12.0, so gtk2hs-0.11.1 will be the last stable version with current APIs.
Thanks for your help!
-- Andy
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Wed, 14 Jul 2010 21:05:35 +0800
Andy Stewart
Where's the demo directory ?! Sorry, we forgot add demo in .cabal file when we released gtk2hs-0.11.0, We will include all demos in gtk2hs-0.11.1
I think that would be very helpful. It's a big package with lots of dependencies, so the first thing I would do is run a couple of demos to make sure it installed correctly. As an aside for those interested, the demos are in the gtk2hs tarballs available for download from the sourceforge page. Kudos to the team ! Overall it went quite smoothly and will make it considerably easier to install. I know that I couldn't get things to work last time I tried... Brian

Err... where is pixbufFromImageSurface [1] now? I have an old program that draws using cairo an static diagram to a pixbuf which then becomes the backend of an Image. If pixbufFromImageSurface got deprecated, what's a better solution? [1] http://www.haskell.org/gtk2hs/docs/gtk2hs-docs-0.10.0/Graphics-UI-Gtk-Cairo.... Cheers! -- Felipe.

Hello, On Jul 13, 2010, at 9:15 AM, Andy Stewart wrote:
Please report any bug of gtk2hs-0.11.0, we will fix it before release gtk2hs-0.11.1
I have just installed the new Haskell Platform under Mac OS X 10.5. With the previous installation of GHC 6.10.4 I managed to install gtk2hs manually so I think I have all required Unix libs. Now, I tried to install gtk2hs from Hackage but didn't succeed. cabal install gtk2hs-buildtools works fine but cabal install gtk fails with the message Configuring gtk-0.11.0... setup: ./Graphics/UI/Gtk/General/IconTheme.chs: invalid argument cabal: Error: some packages failed to install: gtk-0.11.0 failed during the building phase. The exception was: ExitFailure 1 The dependencies seem to be installed properly: # ghc-pkg --user list | grep 0.11.0 cairo-0.11.0 gio-0.11.0 glib-0.11.0 pango-0.11.0 Has anyone experienced this before? Googling the error message brings up a related problem under Solaris but no solution. Cheers, Sebastian -- Underestimating the novelty of the future is a time-honored tradition. (D.G.)

Sebastian Fischer
Hello,
On Jul 13, 2010, at 9:15 AM, Andy Stewart wrote:
Please report any bug of gtk2hs-0.11.0, we will fix it before release gtk2hs-0.11.1
I have just installed the new Haskell Platform under Mac OS X 10.5. With the previous installation of GHC 6.10.4 I managed to install gtk2hs manually so I think I have all required Unix libs.
Now, I tried to install gtk2hs from Hackage but didn't succeed.
cabal install gtk2hs-buildtools
works fine but
cabal install gtk
fails with the message
Configuring gtk-0.11.0... setup: ./Graphics/UI/Gtk/General/IconTheme.chs: invalid argument cabal: Error: some packages failed to install: gtk-0.11.0 failed during the building phase. The exception was: ExitFailure 1
The dependencies seem to be installed properly:
# ghc-pkg --user list | grep 0.11.0 cairo-0.11.0 gio-0.11.0 glib-0.11.0 pango-0.11.0
Has anyone experienced this before? Googling the error message brings up a related problem under Solaris but no solution. It's a bug of gtk2hs-0.11.0, that IconTheme.chs contain some UTF-8 character that can't handle by gtk2hs/gtk/Gtk2HsSetup.hs
You can fix this problem with two solutions: 1) Change your locate to UTF-8. 2) Or download darcs version of gtk2hs (darcs get http://code.haskell.org/gtk2hs). Cheers, -- Andy

On Jul 26, 2010, at 6:59 PM, Andy Stewart wrote:
cabal install gtk
fails with the message
Configuring gtk-0.11.0... setup: ./Graphics/UI/Gtk/General/IconTheme.chs: invalid argument cabal: Error: some packages failed to install: gtk-0.11.0 failed during the building phase. The exception was: ExitFailure 1
You can fix this problem with two solutions:
1) Change your locate to UTF-8.
This worked, thanks! Sebastian -- Underestimating the novelty of the future is a time-honored tradition. (D.G.)
participants (6)
-
Andy Stewart
-
briand@aracnet.com
-
Christian Maeder
-
Felipe Lessa
-
Ivan Miljenovic
-
Sebastian Fischer