From: Rene de V. <Ren...@ho...> - 2008-03-25 20:59:42
|
With ghc 6.6.1 gtk2hs was working ok under ghci with ghc 6.8.2 (and 6.8.1) I get the following GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. Prelude> :load "c:/Programme/Gtk2Hs/demos/hello/World.hs" [1 of 1] Compiling Main ( c:/Programme/Gtk2Hs/demos/hello/World.hs, interpreted ) Ok, modules loaded: Main. *Main> main Loading package array-0.1.0.0 ... linking ... done. Loading package mtl-1.1.0.0 ... linking ... done. Loading package glib-0.9.12.1 ... linking ... done. Loading package bytestring-0.9.0.1 ... linking ... done. Loading package cairo-0.9.12.1 ... linking ... done. Loading package containers-0.1.0.1 ... linking ... done. Loading package gtk-0.9.12.1 ... linking ... : unable to load package `gtk-0.9.12.1' *Main> in the case where there is only World.hs in the directory. If I compile World.hs first with ghc I get: Prelude> :load "c:/Programme/Gtk2Hs/demos/hello/World.hs" [1 of 1] Compiling Main ( c:/Programme/Gtk2Hs/demos/hello/World.hs, interpreted ) Ok, modules loaded: Main. *Main> :main Loading package array-0.1.0.0 ... linking ... : unable to load package `array-0.1.0.0' *Main> Is this just my system, or do other people have similar problems? Any known solutions? Rene. |
From: Axel S. <Axe...@en...> - 2008-04-16 11:37:26
|
On Mar 25, 2008, at 21:59, Rene de Visser wrote: > With ghc 6.6.1 gtk2hs was working ok under ghci > > with ghc 6.8.2 (and 6.8.1) I get the following > > GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help > Loading package base ... linking ... done. > Prelude> :load "c:/Programme/Gtk2Hs/demos/hello/World.hs" > [1 of 1] Compiling Main ( > c:/Programme/Gtk2Hs/demos/hello/World.hs, interpreted ) > Ok, modules loaded: Main. > *Main> main > Loading package array-0.1.0.0 ... linking ... done. > Loading package mtl-1.1.0.0 ... linking ... done. > Loading package glib-0.9.12.1 ... linking ... done. > Loading package bytestring-0.9.0.1 ... linking ... done. > Loading package cairo-0.9.12.1 ... linking ... done. > Loading package containers-0.1.0.1 ... linking ... done. > Loading package gtk-0.9.12.1 ... linking ... : unable to load package > `gtk-0.9.12.1' > *Main> > > in the case where there is only World.hs in the directory. If I > compile > World.hs first with ghc I get: > > Prelude> :load "c:/Programme/Gtk2Hs/demos/hello/World.hs" > [1 of 1] Compiling Main ( > c:/Programme/Gtk2Hs/demos/hello/World.hs, interpreted ) > Ok, modules loaded: Main. > *Main> :main > Loading package array-0.1.0.0 ... linking ... : unable to load package > `array-0.1.0.0' > *Main> > > Is this just my system, or do other people have similar problems? > > Any known solutions? > I think this is a known problem, but I haven't had time to figure out what's going on. Basically the configure script should add a dependency to the packages that were separated in ghc 6.8 and only do that from version 6.8 onwards as these extra packages don't exist in 6.6. However, this is done in configure but obviously doesn't work. See: http://hackage.haskell.org/trac/gtk2hs/ticket/1102 Any investigators into this problems are welcome! Axel. |