Christian Maeder | 12 Mar 2012 15:01
Picon
Favicon

gtk-0.12.3

Hi,

"cabal install gtk" using ghc-7.4.1 fails for me as below.

"pkg-config --modversion gtk+-2.0" shows 2.20.1

I installed gtk2hs-buildtools-0.12.3 before.

How should I proceed?

Cheers Christian

[ 40 of 207] Compiling Graphics.UI.Gtk.Misc.Accessible ( 
dist/build/Graphics/UI/Gtk/Misc/Accessible.hs, 
dist/build/Graphics/UI/Gtk/Misc/Accessible.o )

Graphics/UI/Gtk/Misc/Accessible.chs:74:24:
     Not in scope: type constructor or class `AccessibleClass'
     Perhaps you meant `AccelLabelClass' (imported from 
Graphics.UI.Gtk.Types)

Graphics/UI/Gtk/Misc/Accessible.chs:79:6:
     Not in scope: `toAccessible'

Graphics/UI/Gtk/Misc/Accessible.chs:85:25:
     Not in scope: type constructor or class `AccessibleClass'
     Perhaps you meant `AccelLabelClass' (imported from 
Graphics.UI.Gtk.Types)

Graphics/UI/Gtk/Misc/Accessible.chs:91:7:
(Continue reading)

Axel Simon | 12 Mar 2012 15:47
Picon
Favicon

Re: gtk-0.12.3

Hi Christian,

On 12.03.2012, at 15:01, Christian Maeder wrote:

> Hi,
>
> "cabal install gtk" using ghc-7.4.1 fails for me as below.
>
> "pkg-config --modversion gtk+-2.0" shows 2.20.1
>

Hmmm. I'm confused too. All the code in Accessible is surrounded by

#if GTK_CHECK_VERSION(2,22,0)
#endif

which must mean that the version numbers are not communicated  
correctly to ghc?!

Cheers,
Axel

> I installed gtk2hs-buildtools-0.12.3 before.
>
> How should I proceed?
>
> Cheers Christian
>
> [ 40 of 207] Compiling Graphics.UI.Gtk.Misc.Accessible (
> dist/build/Graphics/UI/Gtk/Misc/Accessible.hs,
(Continue reading)

Christian Maeder | 13 Mar 2012 13:25
Picon
Favicon

Re: gtk-0.12.3

Guys,

Apologies, it's all my fault. I had an old pkg-config in my PATH (some 
time created for debugging or testing) containing:

#!/bin/sh

case $1 in
   --modversion)
      case $2 in
         gtk+-2.0)
            echo "2.20.1";;
         *) exec /usr/bin/pkg-config "$ <at> "
      esac;;
   *) exec /usr/bin/pkg-config "$ <at> "
esac

My correct "modversion" is meanwhile 2.22.1

Cheers Christian

Am 12.03.2012 15:47, schrieb Axel Simon:
> Hi Christian,
>
> On 12.03.2012, at 15:01, Christian Maeder wrote:
>
>> Hi,
>>
>> "cabal install gtk" using ghc-7.4.1 fails for me as below.
>>
(Continue reading)

Christian Maeder | 12 Apr 2012 10:44
Picon
Favicon

Re: gtk-0.12.3

I now remember why I over-wrote my pkg-config file.

I wanted to create binaries on a machine with gtk-2.22.1 installed that 
would also run on another machine with just gtk-2.20.1 by not using the 
additional symbols. (I'm not sure if this has worked before.)

Cheers Christian

Am 13.03.2012 13:25, schrieb Christian Maeder:
> Guys,
>
> Apologies, it's all my fault. I had an old pkg-config in my PATH (some
> time created for debugging or testing) containing:
>
> #!/bin/sh
>
> case $1 in
>     --modversion)
>        case $2 in
>           gtk+-2.0)
>              echo "2.20.1";;
>           *) exec /usr/bin/pkg-config "$ <at> "
>        esac;;
>     *) exec /usr/bin/pkg-config "$ <at> "
> esac
>
> My correct "modversion" is meanwhile 2.22.1
>
> Cheers Christian
>
(Continue reading)


Gmane