Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.1k views
in Technique[技术] by (71.8m points)

haskell - Gtk2hs windows 7 installation

I did:

cabal update
cabal install gtk2hs-buildtools

But stuck here:

>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

But I have such files in folders C:gtkallinonein:

libgthread-2.0-0.dll

And C:gtkallinonelib:

gthread-2.0.lib
gthread-2.0.def

I have this path in PATH environment: C:gtkallinonein

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...