Hello,

I recently installed gtk2hs on Windows (7). First of all, the installation
works really fine with the haskellwiki entry
http://www.haskell.org/haskellwiki/Gtk2Hs/Windows. :-)

Compilation and execution of gkt2hs-applications also works. However, I
cannot run the main function from the REPL because the cairo library cannot
be loaded. Thus, a compilation with "ghc --make" or "cabal build" +
"dist\build\project\project.exe" is required when I want to test my gtk2hs
application. It is easier to switch to the GHCi-REPL and type ":main". It
is not a huge deal but the "developer experience" is way better with the
latter approach (that I know from my Linux box). :)


After some googling I found the issue
http://hackage.haskell.org/trac/gtk2hs/ticket/1270 that probably fixes the
issue. GHCi just tries to load the wrong dll (in my case:
libcairo-script-interpreter-2.dll).
Changing the entry in %APPDATA%\ghc\i386-mingw32-7.4.1\cairo-0.12.3.1-.....conf
from

extra-ghci-libraries: libcairo-script-interpreter-2.dll

to

extra-ghci-libraries: libcairo-2

with an

ghc-pkg recache --user

fixes the problem. The bug report is still open and I think the described
solution of #1270 will remove the described issue for windows users. But I
don't know if the approach of #1270 is the way it should be done. Is there
a plan to fix this issue (and is help required)?

Best regards,
Wolfgang
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to