[Haskell-cafe] GHC 6.6.1: Where is Graphics.SOE ?
Olivier Boudry
olivier.boudry at gmail.com
Wed Jul 18 11:56:56 EDT 2007
Hi Dmitri,
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:
http://hackage.haskell.org/trac/ghc/wiki/Building/Windows.
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):
export GTK_BASEPATH=/c/GTK_2.0
export GTK_CONFIG_PATH=/c/GTK_2.0/lib/pkgconfig
Cd to the gtk2hs source directory and type:
./configure --prefix=/c/Progra~1/Haskell
make
make install
Hope this helps.
Good luck,
Olivier.
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
> >
> >
> 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
> World")
> 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?
>
> Dima
>
>
>
> --
> Dmitri O. Kondratiev
> dokondr at gmail.com
> http://www.geocities.com/dkondr
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070718/0531c284/attachment.htm
More information about the Haskell-Cafe
mailing list