[Haskell-cafe] GHC 6.6.1: Where is Graphics.SOE ?
olivier.boudry at gmail.com
Wed Jul 18 11:56:56 EDT 2007
I built gtk2hs on Windows with GHC 6.6.1 and gtk2hs-0.9.11. Here's are the
steps that worked for me: (not sure I didn't missed some)
First you need to install a GTK+ development package for windows. I think
mine comes from http://gladewin32.sourceforge.net/modules/wfdownloads/
Then you must have MSYS and MinGW installed on your computer. You'll find
information on how to install this here:
Once you've installed that stuff you can start a MSYS shell. You'll need to
set some environment variables for GTK (adapt to your path):
Cd to the gtk2hs source directory and type:
Hope this helps.
On 7/18/07, Dmitri O.Kondratiev <dokondr at gmail.com> wrote:
> On 7/17/07, Malte Milatz <malte at gmx-topmail.de> wrote:
> > Dmitri O.Kondratiev:
> > > It looks like Graphics.SOE does not anymore exist in GHC 6.6.1.
> > > Where one can get it or what to use instead of it?
> > You may try Gtk2Hs, which includes an implementation of SOE, called
> > Graphics.SOE.Gtk. (It works independently of the actual Gtk API.) Use
> > then the darcs version, because I remember an SOE bug fixed since the
> > last release.
> > Malte
> Thanks. The problem is that I need to run SOE on Win32. When I try to run
> a simple SOE app. in GHCi with Gtk2Hs Win32 release, this code:
> module GWindow where
> import Graphics.SOE.Gtk
> main() =
> runGraphics (
> do w <- openWindow "Graphics Test" (300, 300)
> drawInWindow w (text (100, 200) "Hello Graphics
> k <- getKey w
> closeWindow w
> displays a window and hangs.
> I can get development release of Gtk2Hs with darcs, but how can I build it
> on Win32?
> Dmitri O. Kondratiev
> dokondr at gmail.com
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe