Gtk2hs Windows 7的安装 [英] Gtk2hs windows 7 installation

查看:154
本文介绍了Gtk2hs Windows 7的安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了:

  cabal update 
cabal install gtk2hs-buildtools




$ b

但是卡在这里:

 > cabal install gtk 
正在解析依赖关系...
[2 of 1]编译SetupWrapper(C:\ Users \\\\ Application \ Local \ Temp \ Tk-0.12.5.4
-4000\gtk-0.12.5.4\SetupWrapper.hs,C:\ Users \\\ Application \ Local \Temp\gtk-0.12.5.4-4
000\ gtk-0.12.5.4\dist\setup\SetupWrapper.o)
[2的2]编译Main(C:\ Users \\\ Application \ Local \Temp\gtk- 0.12.5.4
-4000\gtk-0.12.5.4\Setup.hs,C:\ Users \\\\ Application \ Local \Temp\gtk-0.12.5.4-4000\ gtk
-0.12.5.4\dist\setup\Main.o)
链接C:\ Users \\\\\ Application \ Local \Temp\gtk-0.12.5.4 -4000\gtk-0.12.5.4\dist\setup\
setup.exe ...
[1的2] Compi ling Gtk2HsSetup(Gtk2HsSetup.hs,dist\setup-wrapper\Gtk2HsS
etup.o)
[2的2]编译Main(SetupMain.hs,dist \ setup-wrapper \ Main。 o)
链接dist / setup-wrapper \setup.exe ...
配置gtk-0.12.5.4 ...
setup.exe:pkg-config包gtk + -2.0是需要,但不能找到

未能安装gtk-0.12.5.4
cabal:错误:某些软件包未能安装:
gtk-0.12.5.4在配置步骤中失败。例外情况是:
ExitFailure 1

但是我在文件夹 C:\ gtkallinone \bin

  libgthread-2.0-0.dll 

C:\gtkallinone\lib

  gthread-2.0.lib 
gthread-2.0.def

我在 PATH 环境中有这个路径:
C :\ gtkallinone \bin



如何安装它?




UPD *



安装 gtk-0.12.5.4 我遇到缺少 m.dll 的问题。



我使用 ghc-pkg uregister 来卸载它们。



现在查看更新的答案。

解决方案

我在老版本的GTK上做了所有的一切!



旧版本2.24.10。



另外,为了解决问题m的dll并成功构建所有,需要安装特定版本的包:
> cabal install glib-0.12.4
> cabal install gio-0.12.4
> cabal install pango-0.12.4
> cabal install gtk-0.12 .4


I did:

cabal update
cabal install gtk2hs-buildtools

But stuck here:

>cabal install gtk
Resolving dependencies...
[1 of 2] Compiling SetupWrapper     ( C:\Users\1\AppData\Local\Temp\gtk-0.12.5.4
-4000\gtk-0.12.5.4\SetupWrapper.hs, C:\Users\1\AppData\Local\Temp\gtk-0.12.5.4-4
000\gtk-0.12.5.4\dist\setup\SetupWrapper.o )
[2 of 2] Compiling Main             ( C:\Users\1\AppData\Local\Temp\gtk-0.12.5.4
-4000\gtk-0.12.5.4\Setup.hs, C:\Users\1\AppData\Local\Temp\gtk-0.12.5.4-4000\gtk
-0.12.5.4\dist\setup\Main.o )
Linking C:\Users\1\AppData\Local\Temp\gtk-0.12.5.4-4000\gtk-0.12.5.4\dist\setup\
setup.exe ...
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs, dist\setup-wrapper\Gtk2HsS
etup.o )
[2 of 2] Compiling Main             ( SetupMain.hs, dist\setup-wrapper\Main.o )
Linking dist/setup-wrapper\setup.exe ...
Configuring gtk-0.12.5.4...
setup.exe: The pkg-config package gtk+-2.0 is required but it could not be
found.
Failed to install gtk-0.12.5.4
cabal: Error: some packages failed to install:
gtk-0.12.5.4 failed during the configure step. The exception was:
ExitFailure 1

But I have such files in folders C:\gtkallinone\bin:

libgthread-2.0-0.dll

And C:\gtkallinone\lib:

gthread-2.0.lib
gthread-2.0.def

I have this path in PATH environment: C:\gtkallinone\bin

How to install it?


*UPD*

After installing gtk-0.12.5.4 I encountered the problem of lack m.dll.

I uninstalled them with ghc-pkg uregister.

Now see th updated answer.

解决方案

I did it on old version of GTK all in one bundle!

The old version is 2.24.10.

Also, for solving problem's with dll and succesfully build all, one need to install specific versions of packages:

>cabal install cairo-0.12.4
>cabal install glib-0.12.4
>cabal install gio-0.12.4
>cabal install pango-0.12.4
>cabal install gtk-0.12.4

这篇关于Gtk2hs Windows 7的安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆