Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  gtk2hs [GIMP ToolKit] (Patrick Lynch)
   2. Re:  gtk2hs [GIMP ToolKit] (Tim Baumgartner)
   3. Re:  gtk2hs [GIMP ToolKit] (Patrick Lynch)
   4. Re:  gtk2hs [GIMP ToolKit] (aditya siram)


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

Message: 1
Date: Sat, 05 Feb 2011 11:19:30 -0500
From: "Patrick Lynch" <kmandpjly...@verizon.net>
Subject: Re: [Haskell-beginners] gtk2hs [GIMP ToolKit]
To: "aditya siram" <aditya.si...@gmail.com>
Cc: beginners@haskell.org
Message-ID: <E383805A3EC3462EBE6DD13248FD9964@UserPC>
Content-Type: text/plain; format=flowed; charset=iso-8859-1;
        reply-type=original

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.si...@gmail.com>
To: "Patrick Lynch" <kmandpjly...@verizon.net>
Cc: "Tim Baumgartner" <baumgartner....@googlemail.com>; 
<beginners@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 <kmandpjly...@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@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 <kmandpjly...@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@haskell.org
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
> 




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

Message: 2
Date: Sat, 5 Feb 2011 17:59:03 +0100
From: Tim Baumgartner <baumgartner....@googlemail.com>
Subject: Re: [Haskell-beginners] gtk2hs [GIMP ToolKit]
To: Patrick Lynch <kmandpjly...@verizon.net>, beginners@haskell.org
Message-ID:
        <AANLkTimQHm68nPATr1TEhwz0JBrY_j8Ky3KMgFLAxW=m...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Patrick,

2011/2/5 Patrick Lynch <kmandpjly...@verizon.net>

> 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.
>

Step 1 should already include step 2, so I better ask if
gtk2hs-buildtoolsinstalled successfully?

If the compiler misses some libraries, it will never help to add more
include folders, because they only contain header files, not lib files. For
missing include files, you get a different error message. For libraries, you
have to set up the LIB environment variable properly. It must include the
lib folder with Gtk+. Could you show us the result of

echo %LIB%

at the prompt? The ouput of

pkg-config --modversion gtk+-2.0

might indicate an error as well. By the way, the environment variables at
the command prompt should the sum of those made globally and those made for
the current user.

Good luck
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110205/d1a8ad92/attachment-0001.htm>

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

Message: 3
Date: Sat, 05 Feb 2011 12:15:53 -0500
From: Patrick Lynch <kmandpjly...@verizon.net>
Subject: Re: [Haskell-beginners] gtk2hs [GIMP ToolKit]
To: Tim Baumgartner <baumgartner....@googlemail.com>
Cc: beginners@haskell.org
Message-ID: <4d4d85c9.9070...@verizon.net>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Good afternoon:

     Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.

     This is what 'echo %lib%' gives:
             C:\Users\User>echo %lib%
             C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib

       This is whatpkg-config --modversion gtk+-2.0 gives:
             C:\Users\User>pkg-config --modversion gtk+-2.0
             2.16.2

Thanks again

On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
> Hi Patrick,
>
> 2011/2/5 Patrick Lynch <kmandpjly...@verizon.net 
> <mailto:kmandpjly...@verizon.net>>
>
>     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.
>
>
> Step 1 should already include step 2, so I better ask if 
> gtk2hs-buildtools installed successfully?
>
> If the compiler misses some libraries, it will never help to add more 
> include folders, because they only contain header files, not lib 
> files. For missing include files, you get a different error message. 
> For libraries, you have to set up the LIB environment variable 
> properly. It must include the lib folder with Gtk+. Could you show us 
> the result of
>
> echo %LIB%
>
> at the prompt? The ouput of
> pkg-config --modversion gtk+-2.0
> might indicate an error as well. By the way, the environment variables 
> at the command prompt should the sum of those made globally and those 
> made for the current user.
>
> Good luck
> Tim

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

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

Message: 4
Date: Sat, 5 Feb 2011 11:31:27 -0600
From: aditya siram <aditya.si...@gmail.com>
Subject: Re: [Haskell-beginners] gtk2hs [GIMP ToolKit]
To: Patrick Lynch <kmandpjly...@verizon.net>
Cc: beginners@haskell.org
Message-ID:
        <AANLkTi=1pzns5xz5-nnhqkcmxro-yuxygxf1wxgcf...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Why do you have Gtk+ in two folders? Did you somehow install it twice?
Also what's in the following environment variable:
PATH, INCLUDE, PKG_CONFIG

-deech

On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch <kmandpjly...@verizon.net> wrote:
> Good afternoon:
>
> ??? Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
>
> ??? This is what 'echo %lib%' gives:
> ??? ??? ? ? C:\Users\User>echo %lib%
> ? ??? ??? ? C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
>
> ? ??? This is what pkg-config --modversion gtk+-2.0 gives:
> ??? ??? ??? C:\Users\User>pkg-config --modversion gtk+-2.0
> ??? ??? ??? 2.16.2
>
> Thanks again
>
> On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
>
> Hi Patrick,
>
> 2011/2/5 Patrick Lynch <kmandpjly...@verizon.net>
>>
>> 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.
>
> Step 1 should already include step 2, so I better ask if gtk2hs-buildtools
> installed successfully?
>
> If the compiler misses some libraries, it will never help to add more
> include folders, because they only contain header files, not lib files. For
> missing include files, you get a different error message. For libraries, you
> have to set up the LIB environment variable properly. It must include the
> lib folder with Gtk+. Could you show us the result of
>
> echo %LIB%
>
> at the prompt? The ouput of
>
> pkg-config --modversion gtk+-2.0
>
> might indicate an error as well. By the way, the environment variables at
> the command prompt should the sum of those made globally and those made for
> the current user.
>
> Good luck
> Tim
>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>



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

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


End of Beginners Digest, Vol 32, Issue 14
*****************************************

Reply via email to