Monday, 22 March 2010

Cabalized gtk2hs: errors

Cabalized version available at

During installation of cairo-0.10.5:

[1 of 1] Compiling Main ( Setup.hs, dist\setup\Main.o )
Linking .\dist\setup\setup.exe ...
Configuring cairo-0.10.5...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: z, cairo
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
cabal: Error: some packages failed to install:
cairo-0.10.5 failed during the configure step. The exception was:
exit: ExitFailure 1

Issues in the installation of darcs version of gtk2hs on windows

With ghc-6.10.3

$ autoreconf error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /mingw/bin/autoconf failed with exit status: 1

Redoing autoreconf works

$ ./configure

./configure: line 5002: syntax error near unexpected token `GLIB,glib-2.0'
./configure: line 5002: `PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.0.0 gobject-2.0 >=
2.0.0, , as_fn_error "'

With Haskell Platform (ghc-6.10.4)

There was an error saying that the ghc is not found in the included path. However, it was already there.