?

Log in

No account? Create an account

Universal builds

« previous entry | next entry »
Jul. 18th, 2006 | 06:59 pm

I've been trying to build a Qt application as a universal binary for OS X.

Building Qt 4.1.4 was fairly easy, as I just had to tack -universal to the end. Though since none of the sql libraries I have installed are universal all of the sql plugins broke.

However I'm also using boost. and that was more challenging to build as a universal build.

bjam --with-python-version=2.3 "-sTOOLS=darwin" "-sGXX=g++ -O3 -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" "-sGCC=gcc -O3 -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" "-sBUILD=,-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"

update: forgot the "-arch ppc -arch i386" for the buildflags, command-line fixed and I managed to build something that ran on an x86 and G5 box.
Tags: , ,

Link | Leave a comment |

Comments {2}

Jeffrey

(no subject)

from: jeffrey
date: Jul. 19th, 2006 04:12 am (UTC)
Link

...

Gesundheit. :)

Reply | Thread

no, YOUR mom

(no subject)

from: theinfamousmom
date: Jul. 19th, 2006 07:39 am (UTC)
Link

...even though the sound of it is something quite atrocious... /super "-Cali" *fragi =list.ic -EXpi /ali *do -cious.....

Reply | Thread