Nothing can link with gtk on Snow Leopard
jwlato at gmail.com
Thu Nov 11 06:35:42 EST 2010
> > Hi,
> > I'm running Mac OS X Snow Leopard. I've done a "sudo cabal install gtk
> > --global" on my system, and it warns me that "file was built for
> > file format which is not the architecture being linked (i386)". What does
> > this refer to?
> > Subsequently, nothing else _links_ properly with gtk.
> > For example, hp2any-manager (or other tools) all fail during linking with
> > gtk.
> > Am I doing something wrong?
> At one point I had this problem due to hsc2hs attempting to build 64-bit.
> What happens if you try running:
> cabal install gtk --global --hsc2hs-flags=--cflags=-m32
> (I think that's the incantation I used).
> Apologies for not remembering more details, but I'm strongly suspicious
> the issue lies in hsc2hs.
Small addendum - this is assuming that gtk+ is indeed available as 32-bit,
as Greg confirmed is necessary. I would check the gtk libraries with "lipo
-info" to see the available architectures.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries