[Haskell-beginners] gtk2hs [GIMP ToolKit]

aditya siram aditya.siram at gmail.com
Sat Feb 5 18:31:27 CET 2011


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 <kmandpjlynch at 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 <kmandpjlynch at 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>



More information about the Beginners mailing list