Universal!

Golden Cheetah is universal! (i hope)

I spent most of the evening setting up my development environment to get Golden Cheetah to compile as a universal OS X application. This would be made easier if I actually knew what I was doing. In the end, I recompiled Qt4.3.1 and QWT5.0.2 as universal before I could move forward with building GC.

Here’s the configure command for Qt (one line):

./configure -static -prefix /usr/local/Qt4.3u-static -make libs
-confirm-license -universal -sdk /Developer/SDKs/MacOSX10.4u.sdk
-qt-sql-sqlite -LD="gcc -mmacosx-version-min=10.4"

I’m using a non-standard install location for the static libraries so I can update Trolltech’s binaries separately. There was some problem with gcc under Leopard, so some special parameters needed to be passed along: -mmacosx-version-min=10.4

qmake’s .pro files needed to have some config variables set. Specifically, I had to add these lines to each of GC and QWT’s .pro files:

QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
CONFIG+=x86 ppc

I was also getting linker visibility issues, which were resolved by additionally adding QMAKE_CXXFLAGS += -fvisibility=hidden to each of the .pro files as well. I don’t know if this is correct, but the resulting application seemed to work.

More testing is needed, but it’s finally working under 10.5 Intel and 10.4 PPC. Forcing the use of the 10.4 SDK and min version 10.4 did something right.

Enough tech…I need to ride.


Posted

in

by

Comments

Leave a Reply