[Haskell-beginners] gtk2hs [GIMP ToolKit]

Patrick Lynch kmandpjlynch at verizon.net
Sat Feb 5 00:01:34 CET 2011


...i'm running into the same problem...
...i ran the command: cabal install gtk...
...it can't find the folders: Z, CAIRO, GOBJECT-2.0, GLIB-2.0, INTL.
...however, they are all, with the exception of Z and possibly GOBJECT-2.0 - there is no folder for this but there is a library file for it, in Program Files and surprisingly also in Program Files (X86)...
...i'm a bit confused about my %PATH% setting, it is different in the Advanced system settings from what is displayed by echo %PATH% in the Command window - see following...

C:\Users\User>cabal install gtk

Resolving dependencies...

C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Se
tup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup      ( C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.02
164\cairo-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\ca
iro-0.12.0\dist\setup\Main.o )
Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\dist\setup\setup.exe ...
Configuring cairo-0.12.0...
setup.exe: Missing dependencies on foreign libraries:

* Missing C libraries: z, cairo

This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.


C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setu
p.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup      ( C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.02164
\glib-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-
0.12.0\dist\setup\Main.o )
Linking C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\dist\setup\setup.exe ...
Configuring glib-0.12.0...
setup.exe: Missing dependencies on foreign libraries:

* Missing C libraries: gobject-2.0, glib-2.0, intl

This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.

cabal: Error: some packages failed to install:
cairo-0.12.0 failed during the configure step. The exception was:
ExitFailure 1
gio-0.12.0 depends on glib-0.12.0 which failed to install.

glib-0.12.0 failed during the configure step. The exception was:
ExitFailure 1
gtk-0.12.0 depends on glib-0.12.0 which failed to install.

pango-0.12.0 depends on glib-0.12.0 which failed to install.

C:\Users\User>


---------------------------------------------------------------------------

--My %PATH% at the command window

C:\Program Files (x86)\Haskell\bin;
C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin;
C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin;
C:\Windows\system32;
C:\Windows;C:\Windows\System32\Wbem;
C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;
C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;
C:\Users\User\AppData\Roaming\cabal\bin;C:\Program Files\Gtk+\bin;
C:\Users\User;C:\Program Files (x86)\Gtk+\bin;
c:\Program Files (x86)\Gtk+\share\gettext

--My %PATH% at the Advanced system settings

C:\Users\User\AppData\Roaming\cabal\bin;
C:\Program Files\Gtk+\bin;
C:\Users\User;
C:\Program Files (x86)\Gtk+\bin;
c:\Program Files (x86)\Gtk+\share\gettext


----------------------------------------------------------------------------
.To the PKG_CONFIG_PATH environment variable add the 'pkgconfig' directory. The default path should be "
C:\Program Files\Gtk+\lib\pkgconfig
.To the INCLUDE environment variable add the 'libglade-2.0' directory.The default path should be "
C:\Program Files\Gtk+\include\libglade-2.0


C:\Program Files\Gtk+\lib\pkgconfig;
C:\Program Files\Gtk+\lib\pkgconfig\include;
c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig




...i'll have to try what you did to see if i can get it installed...

Good weekend

  ----- Original Message ----- 
  From: Tim Baumgartner 
  To: beginners at haskell.org 
  Cc: Patrick Lynch 
  Sent: Friday, February 04, 2011 2:13 PM
  Subject: Re: [Haskell-beginners] gtk2hs [GIMP ToolKit]


  Hi Patrick,

  I used the same link to install gtk2hs on Windows XP with Haskell Platform 2010.2.0 about 3 days ago. I'm a beginner as well. I had a number of problems. In the end, I managed to install version 0.11 with some extra-work:
  - I added HaskellPlatform/2010.2.0.0/mingw/bin to the PATH (because there is my only current gcc.exe)
  - ugly: I copied Gtk+/include/glib-2.0 to a temp folder and copied this again *into* Gtk+/include/glib-2.0  (the output of pkg-config looked alright...)
  - I repeated the previous steps for other include folders as well

  Note: in order to install a specific version of a package you can e.g.
  cabal install gtk2hs-buildtools-0.11.2

  Installation of 0.12. failed with the following error:
  [ 5 of 24] Compiling System.GIO.Volumes.VolumeMonitor ( dist\build\System\GIO\Volumes\VolumeMonitor.hs, dist\build\System\GIO\Volumes\VolumeMonitor.o )

  System\GIO\Volumes\VolumeMonitor.chs:56:4:
      Not in scope: `vmDriveStopButton'

  Regards,
  Tim


  2011/2/3 Patrick Lynch <kmandpjlynch at verizon.net>

    ...I'm going to try to install gtk2hs again...
    ...I'll be using the link http://www.haskell.org/haskellwiki/Gtk2Hs
    ...I'd appreciate any help...


    _______________________________________________
    Beginners mailing list
    Beginners at haskell.org
    http://www.haskell.org/mailman/listinfo/beginners



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110204/9b9eab44/attachment-0001.htm>


More information about the Beginners mailing list