[Haskell-beginners] gtk2hs [GIMP ToolKit]
Patrick Lynch
kmandpjlynch at verizon.net
Sat Feb 5 17:19:30 CET 2011
Thanks for your support...
I'd appreciate any help - I don't know what else to do with this...
This is what I did so far:
1. I followed your wiki
2. I opened Command window and entered the command: cabal install gtk
3. It returned the error messages:
* Missing C libraries: z, cairo
* Missing C libraries: gobject-2.0, glib-2.0, intl
4. I then ran the command: cabal install
gtk --extra-include-dirs="c:/Program
Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include"
This returned the same error messages as indicated in step 3 above.
5. I then ran the command: cabal install
gtk --extra-include-dirs="c:/Program Files
(x86)/Gtk+/include" --extra-lib-dirs="c:/Program Files (x86)/Gtk+/include"
This also returns the Step 3 errors...
6. I then ran the command: cabal install
gtk --extra-include-dirs="c:/Program
Files/Gtk+/include" --extra-lib-dirs="c:\Program Files (x86)\Gtk+\lib"
7. I then ran the command: cabal install
gtk --extra-include-dirs="c:\Program Files
(x86)\Gtk+\lib" --extra-lib-dirs="c:\Program Files (x86)\Gtk+\lib"
These also return the Step 3 errors...
Note: I can not find library 'z'.
Note: the Cairo directory is in the following:
c:\Program Files\Gtk+\include\cairo
c:\Program Files (x86)\Gtk+\include\cairo
Note: gobject-2.0 library could not be found - but there is a file named
c:\Program Files (x86)\Gtk+\lib\glib-2.0.lib" [it is also on Program Files
(x86)].
Just for the heck of it I ran the following command, but no luck with
it:
cabal install gtk --extra-include-dirs="c:/Program
Files/Gtk+/include" --extra-lib-dirs="c:\Program Files (x86)\Gtk+\lib"
cabal install gtk --extra-include-dirs="c:\Program Files
(x86)\Gtk+\lib" --extra-lib-dirs="c:\Program Files (x86)\Gtk+\lib"
Note: glib-2.0 is in the following:
c:\Program Files\Gtk+\lib\glib-2.0
c:\Program Files (x86)\Gtk+\lib\glib-2.0
Note: intl is in the following:
c:\Program Files\Gtk+\lib\intl
c:\Program Files (x86)\Gtk+\lib\intl
Details are listed below...
---------------------------------------------------------------------------------------------------------------------
This is where I am now - I followed your wiki:
...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 2nd following...
...i ran the command: cabal install gtk. see following for results...
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
----- Original Message -----
From: "aditya siram" <aditya.siram at gmail.com>
To: "Patrick Lynch" <kmandpjlynch at verizon.net>
Cc: "Tim Baumgartner" <baumgartner.tim at googlemail.com>;
<beginners at haskell.org>
Sent: Friday, February 04, 2011 6:03 PM
Subject: Re: [Haskell-beginners] gtk2hs [GIMP ToolKit]
This was hard for me on Windows too which is why I documented what I
did on the wiki. Please do let me know if the instructions are wrong.
@Tim : I found it best not to use the mingw binary that ships with
Haskell Platform but install it from scratch.
-deech
On Fri, Feb 4, 2011 at 1:23 PM, Patrick Lynch <kmandpjlynch at verizon.net>
wrote:
> Good moring,
> ...I know how hard it is...
> ...this will be my second attempt on a Windows Vista PC...I also have to
> install it on a Mac...
> ...I'll try it again this afternoon...
> Good luck to both of us
>
> It really shouldn't be this hard...bummer...
>
> ----- 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
>>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
More information about the Beginners
mailing list