<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Good afternoon,<br>
    <br>
    &nbsp;&nbsp;&nbsp; In the course of doing this, I probably did the installation
    twice, meo culpa.<br>
    <br>
    &nbsp;&nbsp;&nbsp; As fro the environment variables, they are [note: each directory
    is on a separate line]:<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; echo %PATH%<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files (x86)\Haskell\bin;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files (x86)\Haskell
    Platform\2010.2.0.0\lib\extralibs\bin;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Windows\system32;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Windows;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Windows\System32\Wbem;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files (x86)\Common Files\Roxio
    Shared\DLLShared\;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files (x86)\Common Files\Roxio
    Shared\10.0\DLLShared\;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Users\User\AppData\Roaming\cabal\bin;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files\Gtk+\bin;C:\Users\User;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files (x86)\Gtk+\bin;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; c:\Program Files (x86)\Gtk+\share\gettext<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; echo %INCLUDE%<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files\Gtk+\include\libglade-2.0;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; c:\users\user\downloads\libxml2-2.2.7-1_win32\include;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files\Gtk+\include;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files (x86)\Gtk+\include<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; echo %PKG_CONFIG%&nbsp;&nbsp;&nbsp; <i>[presumably this should be
      PKG_CONFIG_PATH, since PKG_CONFIG is not used]</i>: echo
    %PKG_CONFIG_PATH%<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files\Gtk+\lib\pkgconfig;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files\Gtk+\lib\pkgconfig\include;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
    c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; echo %LIB% [added just for sake of completeness]:<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files\Gtk+\lib;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Program Files (x86)\Gtk+\lib&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
    <br>
    On 2/5/2011 12:31 PM, aditya siram wrote:
    <blockquote
      cite="mid:AANLkTi=1PZNs5Xz5-NnhqkCMXro-yuXYgXF1WxGcfPzz@mail.gmail.com"
      type="cite">
      <pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:kmandpjlynch@verizon.net">&lt;kmandpjlynch@verizon.net&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Good afternoon:

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

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

&nbsp; &nbsp;&nbsp;&nbsp; This is what pkg-config --modversion gtk+-2.0 gives:
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; C:\Users\User&gt;pkg-config --modversion gtk+-2.0
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2.16.2

Thanks again

On 2/5/2011 11:59 AM, Tim Baumgartner wrote:

Hi Patrick,

2011/2/5 Patrick Lynch <a class="moz-txt-link-rfc2396E" href="mailto:kmandpjlynch@verizon.net">&lt;kmandpjlynch@verizon.net&gt;</a>
</pre>
        <blockquote type="cite">
          <pre wrap="">
This is what I did so far:
&nbsp; 1. I followed your wiki
&nbsp; 2. I opened Command window and entered the command: cabal install gtk
&nbsp; 3. It returned the error messages:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * Missing C libraries: z, cairo
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * Missing C libraries: gobject-2.0, glib-2.0, intl
&nbsp; 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"
&nbsp; &nbsp; &nbsp; This returned the same error messages as indicated in step 3 above.
</pre>
        </blockquote>
        <pre wrap="">
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
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://www.haskell.org/mailman/listinfo/beginners">http://www.haskell.org/mailman/listinfo/beginners</a>


</pre>
      </blockquote>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
  </body>
</html>