Re: [Gtk-osx-users] Installing on Snow Leopard

I have been using jhbuild on OS X 10.6, by simply adding (or un-commenting)  the following line:

setup_sdk(target="10.5", sdk_version="10.5", architectures=["i386"])

I do not believe you can use the 10.6 sdk, I may be wrong, but I believe this was my problem the last time we crossed this bridge. You WILL need to make sure to re-build EVERYTHING when you make changes, almost better to delete it all and start fresh when you change something in jhbuild, there are lots of stuff that gets done, especially in bootstrapping.

I finally got rid of libglade... Hallelujah!!! If you need it you will have to include it, or simply jhbuild build libglade. Not recommended, use GtkBuilder instead.

I do not know what the --ignore-system is for. I don't even need to add any environmental variables or anything.

Join me

From: jralls ceridwen us
Date: Mon, 4 Jan 2010 09:44:24 -0800
To: gtk-osx-users lists sourceforge net
Subject: Re: [Gtk-osx-users] Installing on Snow Leopard

On Jan 4, 2010, at 4:09 AM, Luca Viggiani wrote:

Hi Guys,
sorry for not using the Forum but although I'm registered and logged in to SourceForge, when it redirects me to the forum it keeps asking me for credentials and they doesn't work.

I'm trying to install on snow leopard. I followed instructions here:

So I added the follwoing line at the bottom of my .jhbuildrc-custom:

setup_sdk("10.6", "10.6", ["i386"])
append_autogenargs("python", "--with-universal-archs=32-bit --enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk")

I also set the environmental variable like this


and then when I run

jhbuild bootstrap --ignore-system

I get:

gcc -std=gnu99  -I.   -I/Users/lviggiani/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include  -arch i386 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch x86_64 -mmacosx-version-min=10.6 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[3]: *** [gl_avltree_oset.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Error during phase build of m4: ########## Error running make   *** [2/13]

Where is my error?
Thanks in advance for your help!

It's certainly OK to use the list, that's why it's here. In truth, I prefer mailing lists to web fora.

Anyway, those -M? flags aren't coming from jhbuild or python's configure. Perhaps you have some stray CFLAGS in your environment from another project.

You probably want to use the same SDK in both your setup_sdk and python autogenargs.

Don't get your hopes up with universal building. It works for python because the python devs have made sure that it does. Glib and Gtk+ will build successfully, but gtk+ apps crash because of endianness issues with icon caches when run on ppc. (In fact, I haven't yet gotten even a cross-compiled gtk+ app to not crash on ppc.)

John Ralls

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