Gtk2hs windows 7 安装 [英] Gtk2hs windows 7 installation
本文介绍了Gtk2hs windows 7 安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做到了:
cabal update
cabal install gtk2hs-buildtools
但是卡在这里:
>cabal install gtk
Resolving dependencies...
[1 of 2] Compiling SetupWrapper ( C:Users1AppDataLocalTempgtk-0.12.5.4
-4000gtk-0.12.5.4SetupWrapper.hs, C:Users1AppDataLocalTempgtk-0.12.5.4-4
000gtk-0.12.5.4distsetupSetupWrapper.o )
[2 of 2] Compiling Main ( C:Users1AppDataLocalTempgtk-0.12.5.4
-4000gtk-0.12.5.4Setup.hs, C:Users1AppDataLocalTempgtk-0.12.5.4-4000gtk
-0.12.5.4distsetupMain.o )
Linking C:Users1AppDataLocalTempgtk-0.12.5.4-4000gtk-0.12.5.4distsetup
setup.exe ...
[1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, distsetup-wrapperGtk2HsS
etup.o )
[2 of 2] Compiling Main ( SetupMain.hs, distsetup-wrapperMain.o )
Linking dist/setup-wrappersetup.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
但我在文件夹 C:gtkallinonein
:
libgthread-2.0-0.dll
和C:gtkallinonelib
:
gthread-2.0.lib
gthread-2.0.def
我在 PATH
环境中有这个路径:C:gtkallinonein
I have this path in PATH
environment:
C:gtkallinonein
如何安装?
*UPD*
*UPD*
安装gtk-0.12.5.4
后遇到了缺少m.dll
的问题.
After installing gtk-0.12.5.4
I encountered the problem of lack m.dll
.
我用 ghc-pkg uregister
卸载了它们.
现在查看更新的答案.
推荐答案
我是在旧版本的 GTK 上做的,一包一包!
I did it on old version of GTK all in one bundle!
旧版本是 2.24.10.
The old version is 2.24.10.
另外,为了解决dll问题并成功构建,需要安装特定版本的包:
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屋!
查看全文