Problems Compiling GTk2HS on Win32

Hi, I'm trying to compile Gtk2Hs using Cygwin on windows 32.... It all starts to work fine, then the "make install" crashes with: c:/ghc/ghc-5.04.2/bin/hsc2hs -C -optc-fnative-struct +RTS -H180m -M350m -RTS --l flag=-lgtk-win32-2.0 --lflag=-lgdk-win32-2.0 --lflag=-latk-1.0 --lflag=-lpan gowi n32-1.0 --lflag=-lgdi32 --lflag=-lpango-1.0 --lflag=-lgdk_pixbuf-2.0 --lflag =-lg object-2.0 --lflag=-lgmodule-2.0 --lflag=-lglib-2.0 --lflag=-lintl --lflag=- lico nv --cc=c:/ghc/ghc-5.04.2/bin/ghc general/StockItems.hsc general\StockItems.hsc:132: gtk/gtk.h: No such file or directory general\StockItems.hsc:249: parse error general\StockItems.hsc:327: parse error general\StockItems.hsc:401: parse error general\StockItems.hsc:249: parse error general\StockItems.hsc:327: parse error general\StockItems.hsc:401: parse error general\StockItems.hsc:249: parse error general\StockItems.hsc:327: parse error general\StockItems.hsc:401: parse error make: *** [general/StockItems.hs] Error 1 now obviously this is because c2hs cannot find the gtk.h file, which i have installed in: C:\cygwin\usr\include\gtk, C:\cygwin\usr\local\include and C:\GTK\Dev-C++\include\gtk-2.0\gtk the C:\cygwin ones were a port of gtk2 for cygwin, wheres the one in C:\gtk is just a win32 port of gtk2 Any suggestions would be greatly appreciated, i'm a bit of a newbie when it comes to both bash-shells and haskell, and am totally stuck. Thanks Chris,

On Fri, Nov 14, 2003 at 03:43:17AM -0000, Chris Taylor wrote:
Hi,
I'm trying to compile Gtk2Hs using Cygwin on windows 32.... It all starts to work fine, then the "make install" crashes with:
c:/ghc/ghc-5.04.2/bin/hsc2hs -C -optc-fnative-struct +RTS -H180m -M350m -RTS --l flag=-lgtk-win32-2.0 --lflag=-lgdk-win32-2.0 --lflag=-latk-1.0 --lflag=-lpan gowi n32-1.0 --lflag=-lgdi32 --lflag=-lpango-1.0 --lflag=-lgdk_pixbuf-2.0 --lflag =-lg object-2.0 --lflag=-lgmodule-2.0 --lflag=-lglib-2.0 --lflag=-lintl --lflag=- lico nv --cc=c:/ghc/ghc-5.04.2/bin/ghc general/StockItems.hsc
It looks like all the include paths are missing. I have never tried to build with Cygwin, only with mingw. I look into it. Do you have ghc 6.0.? lying around? (I'd rather fix the HEAD and make a new release.) Axel.
participants (2)
-
Axel Simon
-
Chris Taylor