<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>&gt;Hi Dmitri,<br>&gt;<br>&gt;I built gtk2hs on Windows with GHC 6.6.1 and 
gtk2hs-0.9.11. Here&#39;s are the<br>&gt;steps that worked for me: (not sure I didn&#39;t missed some)<br>&gt;<br>&gt;First you need to install a GTK+ development package for windows. I think<br>&gt;mine comes from <a href="http://gladewin32.sourceforge.net/modules/wfdownloads/">
http://gladewin32.sourceforge.net/modules/wfdownloads/</a><br>&gt;<br>&gt;Then you must have MSYS and MinGW installed on your computer. You&#39;ll find<br>&gt;information on how to install this here:<br>&gt;<a href="http://hackage.haskell.org/trac/ghc/wiki/Building/Windows">
http://hackage.haskell.org/trac/ghc/wiki/Building/Windows</a>.<br>&gt;<br>&gt;Once you&#39;ve installed that stuff you can start a MSYS shell. You&#39;ll need to<br>&gt;set some environment variables for GTK (adapt to your path):
<br>&gt;export GTK_BASEPATH=/c/GTK_2.0<br>&gt;export GTK_CONFIG_PATH=/c/GTK_2.0/lib/pkgconfig<br>&gt;<br>&gt;Cd to the gtk2hs source directory and type:<br>&gt;./configure --prefix=/c/Progra~1/Haskell<br>&gt;make<br>&gt;make install
<br>&gt;<br>&gt;Hope this helps.<br>&gt;<br>&gt;Good luck,<br>&gt;<br>&gt;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&nbsp; in MSYS I have: <br><br>$ autoreconf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>/usr/share/aclocal/autoopts.m4:22: warning: underquoted definition of AG_PATH_AUTOOPTS<br>&nbsp; run info &#39;(automake)Extending aclocal&#39;<br>&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If this token and others are legitimate, please use m4_pattern_allow.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>