Re: [gtk-osx-users] Installing gtk on Mountain Lion (10.8.2) fails



Hi
thanks for the helpful comments/suggestions.

I have tried Mike's suggestion of using the SF version of the script and the updated one that John has put in the git repository. 

They both seem to run OK and jhbuild seems to work.

Now I get problems with the build process. A few of the parts do not work. If I choose the option to skip over these modules then I get some form of gtk but the pygtk build process appears to need some of these missing parts and fails in a big way.

I have put summaries of the errors that are thrown up below in the hope that someone can spot what is going wrong. It may well be that fixing the first error will make the others go away.

I have the latest Xcode installed and my python is 2.7.2

Cheers

Simon

jhbuild build meta-gtk-osx-bootstrap

make  
*** Installing gtk-osx-docbook *** [2/15]
make install
./install.sh
sed: RE error: illegal byte sequence
sed: RE error: illegal byte sequence



    import libxml2mod
ImportError: dlopen(/Users/simonmartin/gtk/inst/lib/python2.7/site-packages/libxml2mod.so, 2): no suitable image found.  Did find:
/Users/simonmartin/gtk/inst/lib/python2.7/site-packages/libxml2mod.so: mach-o, but wrong architecture
make[2]: *** [de/gnome-doc-make.xml] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
*** Error during phase build of gnome-doc-utils: ########## Error running make   *** [9/15]


jhbuild build meta-gtk-osx-core

  File "./giscanner/libtoolimporter.py", line 66, in load_module
    mod = imp.load_module(name, open(realpath), realpath, (extension, 'rb', 3))
ImportError: dlopen(./.libs/_giscanner.so, 2): no suitable image found.  Did find:
./.libs/_giscanner.so: mach-o, but wrong architecture
make[2]: *** [GLib-2.0.gir] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Error during phase build of gobject-introspection: ########## Error running make   *** [14/20]


  File "./giscanner/libtoolimporter.py", line 66, in load_module
    mod = imp.load_module(name, open(realpath), realpath, (extension, 'rb', 3))
ImportError: dlopen(./.libs/_giscanner.so, 2): no suitable image found.  Did find:
./.libs/_giscanner.so: mach-o, but wrong architecture
make[2]: *** [GLib-2.0.gir] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
*** Error during phase install of gobject-introspection: ########## Error running make install *** [14/20]

checking whether to build gtk-doc documentation... no
Specified Gtk Version check
checking for MAC... no
checking for MAC... no
configure: error: GTK+-2.0 Wersion 2.10 or higher or GTK+-3.0 Version 2.90.0 or higher is required to build gtk-mac-integration
*** Error during phase configure of gtk-mac-integration: ########## Error running ./configure --prefix /Users/simonmartin/gtk/inst --libdir '/Users/simonmartin/gtk/inst/lib' --disable-python   *** [19/20]



Simon Martin
Department of Materials

01509 228521




On 14 Mar 2013, at 21:24, John Ralls <jralls ceridwen us>
 wrote:


On Mar 14, 2013, at 8:40 AM, Simon Martin <S J Martin lboro ac uk> wrote:

Hi
I am trying to get gtk installed on my MacBook (10.8.2) so that I can use pygtk. Ultimately I need a 32 bit version of pygtk to run within a virtualenv. I cannot get past stage one in the process. I have downloaded gtk-osx-build-setup.sh from the git page and I get this output when I source it:

source gtk-osx-build-setup.sh
Checking out jhbuild (<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="" href="https://git.gnome.org/browse/gtk-osx/plain//jhbuild-revision">https://git.gnome.org/browse/gtk-osx/plain//jhbuild-revision">here</a>.</p>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at git.gnome.org Port 80</address>
</body></html>) from git...
Cloning into 'jhbuild'...
remote: Counting objects: 35968, done.
remote: Compressing objects: 100% (13662/13662), done.
remote: Total 35968 (delta 27807), reused 28610 (delta 22178)
Receiving objects: 100% (35968/35968), 6.99 MiB | 1.20 MiB/s, done.
Resolving deltas: 100% (27807/27807), done.
fatal: git checkout: updating paths is incompatible with switching branches.
Checkout of stable branch failed


Can anybody help me with this?


Sorry,

I'm a week delinquent in fixing that. It's pushed now. You'll need to re-download gtk-osx-build-setup.sh.

Regards,
John Ralls





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]