<br clear="all">Olivier Boudry <a href="mailto:olivier.boudry@gmail.com">olivier.boudry@gmail.com</a> wrote:<br>(Wed Jul 18 11:56:56 EDT 2007)<br><br>>Hi Dmitri,<br>><br>>I built gtk2hs on Windows with GHC 6.6.1 and
gtk2hs-0.9.11. Here's are the<br>>steps that worked for me: (not sure I didn't missed some)<br>><br>>First you need to install a GTK+ development package for windows. I think<br>>mine comes from <a href="http://gladewin32.sourceforge.net/modules/wfdownloads/">
http://gladewin32.sourceforge.net/modules/wfdownloads/</a><br>><br>>Then you must have MSYS and MinGW installed on your computer. You'll find<br>>information on how to install this here:<br>><a href="http://hackage.haskell.org/trac/ghc/wiki/Building/Windows">
http://hackage.haskell.org/trac/ghc/wiki/Building/Windows</a>.<br>><br>>Once you've installed that stuff you can start a MSYS shell. You'll need to<br>>set some environment variables for GTK (adapt to your path):
<br>>export GTK_BASEPATH=/c/GTK_2.0<br>>export GTK_CONFIG_PATH=/c/GTK_2.0/lib/pkgconfig<br>><br>>Cd to the gtk2hs source directory and type:<br>>./configure --prefix=/c/Progra~1/Haskell<br>>make<br>>make install
<br>><br>>Hope this helps.<br>><br>>Good luck,<br>><br>>Olivier.<br><br>Oliver, thanks!<br>I tried that, yet have some problems. <br><br>I use:<br>GHC 6.6.1, current development version of Gtk2hs (not sure what version), Gtk+
2.10.11 (Win32)<br>and latest available from MinGW distributions:<br>
MSYS-1.0.10.exe<br>
msysDTK-1.0.1.exe<br>
msys-autoconf-2.59.tar.bz2<br>
msys-automake-1.8.2.tar.bz2<br>
msys-libtool-1.5.tar.bz2<br>
<br>
<code></code><br>Problem 1. <br>Gtk2hs build requires to run <code>
autoreconf.</code> So in MSYS I have: <br><br>$ autoreconf <br>/usr/share/aclocal/autoopts.m4:22: warning: underquoted definition of AG_PATH_AUTOOPTS<br> run info '(automake)Extending aclocal'<br> or see
<a href="http://sources.redhat.com/automake/automake.html#Extending%20aclocal">http://sources.redhat.com/automake/automake.html#Extending%20aclocal</a><br><a href="http://configure.ac:101">configure.ac:101</a>: error: possibly undefined macro: AC_MSG_ERROR
<br> If this token and others are legitimate, please use m4_pattern_allow.<br> See the Autoconf documentation.<br>autoreconf: /usr/bin/autoconf failed with exit status: 1<br><br>Notwithstanding this error autoreconf creates configure script. When I run it I get:
<br><br>Problem 2.<br>$ ./configure --with-hc=/c/usr/ghc-6.6.1 --prefix=/c/usr/ghc-6.6.1<br>checking for a BSD-compatible install... /bin/install -c<br>checking whether build environment is sane... yes<br>checking for gawk... gawk
<br>checking whether make sets $(MAKE)... yes<br>checking build system type... i686-pc-mingw32<br>checking host system type... i686-pc-mingw32<br>checking for style of include used by make... GNU<br>checking for gcc... no
<br>checking for cc... no<br>checking for cc... no<br>checking for cl... no<br>configure: error: no acceptable C compiler found in $PATH<br><br>Questions:<br>1) Should I ignore autoreconf errors?<br>2) I thought that building Gtk2hs is done with GHC only. Is it right that build requires C compiler?
<br>3) Any other ideas what is wrong with this build?<br><br>Thanks!<br><br>-- <br>Dmitri O. Kondratiev<br><a href="mailto:dokondr@gmail.com">dokondr@gmail.com</a><br><a href="http://www.geocities.com/dkondr">http://www.geocities.com/dkondr
</a>