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] (aditya siram)
   2. Re:  gtk2hs [GIMP ToolKit] (Patrick Lynch)


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

Message: 1
Date: Sat, 5 Feb 2011 14:09:25 -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:
        <aanlktimmshuj2yrpvn7mkxk-njz_ctmlv0oor3+kz...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Why do you even have a Program Files (x86) folder? Is this a Windows XP thing?

In any case did you install mingw? You should install it fresh form
the link on the wiki and not depend on the one provided with Haskell
Platform. This should provide the needed version of pkg-config.

-deech

On Sat, Feb 5, 2011 at 1:09 PM, Patrick Lynch <kmandpjly...@verizon.net> wrote:
> Good afternoon,
> ??? I uninstalled both Gtk+s...
> ??? I ran the command again and the previous errors no longer appear - thank
> you.
> ??? However, I still get one error, see following: it is: setup.exe:
> pkg-config version >=0.9.0 is required but it could not be found.
> ??? Please see following.
> Good weekend
>
> C:\Users\User>cabal install gtk
>
> Resolving dependencies...
>
> C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs:25:
> warning: #warning Setup.hs is guessing the version of Cabal.
>
> If compilation of Setup.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.03104\cairo-0.12.0\Gtk2HsSetup.hs,
> C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o
> )
> [2 of 2] Compiling Main
> (C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs,
> C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o
> )
>
> ? ? ? ? ? ? ? ? ? ? ? Linking
> C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe
> ...
> ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&nbs
> p;????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&nbs
> p;???????????????????????????????????????????????????? Configuring
> cairo-0.12.0...setup.exe: pkg-config version >=0.9.0 is required but it
> could not be found.
>
> C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs:25:
> warning: #warning Setup.hs is guessing the version of Cabal.
> ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&nbs
> p;
> If compilation of Setup.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.03104\glib-0.12.0\Gtk2HsSetup.hs,
> C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o
> )????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&nbsp
> ;?? [2 of 2] Compiling Main
> (C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs,
> C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o
> )????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&nbsp
> ;?????????????????? Linking
> C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe
> ...
> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&nbsp
> ;
> Configuring glib-0.12.0...setup.exe: pkg-config version >=0.9.0 is required
> but it could not be found.
>
> 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.???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&nbs
> p;
> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&nbsp
> ;
> glib-0.12.0 failed during the configure step.?? The exception was:
> ExitFailure 1
> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&
> nbsp;????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&
> nbsp;
> gtk-0.12.0 depends on glib-0.12.0 which failed to
> install.
> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&nbsp
> ;????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&nbsp
> ;
> pango-0.12.0 depends on glib-0.12.0 which failed to install.
>
> On 2/5/2011 1:01 PM, aditya siram wrote:
>
> The paths look ok from here. Please uninstall both your Gtk+
> installations and reinstall just one. Then make sure your INCLUDE and
> PKG_CONFIG_PATH refer to it. It's possible you're referring to the
> 'bin' of one while trying to use the 'include' and 'pkgconfig' of the
> other.
>
> -deech
>
> On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch <kmandpjly...@verizon.net>
> wrote:
>
> Good afternoon,
>
> ??? In the course of doing this, I probably did the installation twice, meo
> culpa.
>
> ??? As fro the environment variables, they are [note: each directory is on a
> separate line]:
> ??? ??? echo %PATH%
> ??? ??? ??? 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
> ??? ??? echo %INCLUDE%
> ??? ??? ??? C:\Program Files\Gtk+\include\libglade-2.0;
> ??? ??? ??? c:\users\user\downloads\libxml2-2.2.7-1_win32\include;
> ??? ??? ??? C:\Program Files\Gtk+\include;
> ??? ??? ??? C:\Program Files (x86)\Gtk+\include
> ??? ??? echo %PKG_CONFIG%??? [presumably this should be PKG_CONFIG_PATH,
> since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH%
> ??? ??? ??? 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
> ??? ??? echo %LIB% [added just for sake of completeness]:
> ??? ??? ??? C:\Program Files\Gtk+\lib;
> ??? ??? ??? C:\Program Files (x86)\Gtk+\lib
>
> On 2/5/2011 12:31 PM, aditya siram wrote:
>
> 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
>
>
>
>
>
>

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

Message: 2
Date: Sat, 05 Feb 2011 15:51:42 -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: <4d4db85e.2080...@verizon.net>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

FYI: if you do the gtk install, using the default Program Files (x86), 
it will actually install in Program Files - curiouser and curiouser..


On 2/5/2011 3:05 PM, Patrick Lynch wrote:
> I reinstalled Gtk* but switched the folder from Program Files (x86) to 
> Program Files...
>
> I changed all my environment variables to remove Program Files (x86)...
>
> Unfortunately, it once again doesn't see the five original 
> directories...see following:
>     * Missing C libraries: z, cairo
>     * Missing C libraries: gobject-2.0, glib-2.0, intl
>
> Got me...it seems like the cabal system should know where everything 
> is going to be installed - then it should only have a dependency on 
> the environment variables if it can't find its files in the default 
> locations...
>
> Do you think it would be worthwhile trying an installation using 
> Program Files (x86) rather than Program Files [remember, on my PC , 
> when doing the gtk installation it wants to do it in Program Files (x86)]
>
> Good weekend
>
>
> On 2/5/2011 2:38 PM, Patrick Lynch wrote:
>> I hate to tell you this, but gtk* is being installed in Program Files 
>> (x86) and not in Program Files...
>> I'll try it again...
>>
>>
>> On 2/5/2011 2:09 PM, Patrick Lynch wrote:
>>> Good afternoon,
>>>     I uninstalled both Gtk+s...
>>>     I ran the command again and the previous errors no longer appear 
>>> - thank you.
>>>     However, I still get one error, see following: it is: 
>>> _*setup.exe: pkg-config version >=0.9.0 is required but it could not 
>>> be found.*_
>>>     Please see following.
>>> Good weekend
>>>
>>> C:\Users\User>cabal install gtk
>>>
>>> Resolving dependencies...
>>>
>>> C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs:25:
>>>  
>>> warning: #warning Setup.hs is guessing the version of Cabal.
>>> If compilation of Setup.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.03104\cairo-0.12.0\Gtk2HsSetup.hs,
>>>  
>>> C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o
>>>  
>>> )                                                                           
>>>                                                
>>> [2 of 2] Compiling 
>>> Main(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs,
>>>  
>>> C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o
>>>  
>>> )Linking 
>>> C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe
>>>  
>>> ...&a mp;nbs p; &n bsp;&nb sp;&nbs p; Configuring 
>>> cairo-0.12.0...setup.exe: pkg-config version >=0.9.0 is required but 
>>> it could not be found.
>>>
>>> C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs:25:
>>>  
>>> warning: #warning Setup.hs is guessing the version of Cabal. &a 
>>> mp;nbs p; If compilation of Setup.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.03104\glib-0.12.0\Gtk2HsSetup.hs,
>>>  
>>> C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o
>>>  
>>> ) &nb sp; ;     ;   [2 of 2] Compiling 
>>> Main(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs, 
>>> C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o
>>>  
>>> )& amp;nb sp; ; Linking 
>>> C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe
>>>  
>>> ...& amp;nb sp; ; Configuring glib-0.12.0...setup.exe: pkg-config 
>>> version >=0.9.0 is required but it could not be found.
>>>
>>> cabal: Error: some packages failed to install: cairo-0.12.0 failed 
>>> during the configure step. The exception was: ExitFailure 1&nb sp; ; 
>>> &nbs p; gio-0.12.0 depends on glib-0.12.0 which failed to install.&a 
>>> mp;nbs p; & amp;nb sp; ; glib-0.12.0 failed during the configure 
>>> step.   The exception was: ExitFailure 1 &nb sp; ;& nbsp; &n bsp; & 
>>> nbsp; gtk-0.12.0 depends on glib-0.12.0 which failed to install.& 
>>> nbsp; ; &nbs p;  ;&nbs p; pango-0.12.0 depends on glib-0.12.0 which 
>>> failed to install.
>>>
>>> On 2/5/2011 1:01 PM, aditya siram wrote:
>>>> The paths look ok from here. Please uninstall both your Gtk+
>>>> installations and reinstall just one. Then make sure your INCLUDE and
>>>> PKG_CONFIG_PATH refer to it. It's possible you're referring to the
>>>> 'bin' of one while trying to use the 'include' and 'pkgconfig' of the
>>>> other.
>>>>
>>>> -deech
>>>>
>>>> On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch<kmandpjly...@verizon.net>  
>>>> wrote:
>>>>> Good afternoon,
>>>>>
>>>>>      In the course of doing this, I probably did the installation twice, 
>>>>> meo
>>>>> culpa.
>>>>>
>>>>>      As fro the environment variables, they are [note: each directory is 
>>>>> on a
>>>>> separate line]:
>>>>>          echo %PATH%
>>>>>              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
>>>>>          echo %INCLUDE%
>>>>>              C:\Program Files\Gtk+\include\libglade-2.0;
>>>>>              c:\users\user\downloads\libxml2-2.2.7-1_win32\include;
>>>>>              C:\Program Files\Gtk+\include;
>>>>>              C:\Program Files (x86)\Gtk+\include
>>>>>          echo %PKG_CONFIG%    [presumably this should be PKG_CONFIG_PATH,
>>>>> since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH%
>>>>>              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
>>>>>          echo %LIB% [added just for sake of completeness]:
>>>>>              C:\Program Files\Gtk+\lib;
>>>>>              C:\Program Files (x86)\Gtk+\lib
>>>>>
>>>>> On 2/5/2011 12:31 PM, aditya siram wrote:
>>>>>
>>>>> 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
>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners

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

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

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


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

Reply via email to