Get gtk2hs working on windows

As the offical site doesn’t release an installation buddle for GHC 6.10.4. It’s realy a pain to get gtk2hs working well. I achieve it by the following steps:

  1. install Haskell platform
  2. download and install mingw environment.Make sure that gcc, make, etc. work correctly(gcc-core, binutils, mingwrt, w32api, mingwutils, coreutils).
  3. download gtk-dev , and extract it into /
  4. export PKG_CONFIG_PATH=/lib/pkgconfig
  5. download and extract gtk2hs source buddle to anywhere you prefer.
  6. cd there. type : configure –without-pkgreg
  7. if everything  goes well, make && make install
  8. Installed gtk2hs can be found in /usr/local/lib/gtk2hs
  9. replace /usr/local/lib/gtk2hs with a windows absoult path like D:/mingw/local/lib/gtk2hs / for each .conf
  10. register each .conf by ghc-pkg ….conf
  11. Well done. But running gtk application may fail with error saying libglib-2.0-0.dll cannot found. They are the gtk runtime library and can be found in /bin/.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值