When I build an app (e.g, the Juce Demo) on the Intel 10.5 machine, the built (Release) app fails to launch on a 10.4 PPC machine. (Double click and nothing happens.)
I tried launching the executable from the command line and the response is “Bus error”
Is anyone successfully doing this? (Perhaps I have a dodgy PPC machine, which is possible.)
Strangely I tried a 10.3.9 PPC and both my app and the juce demo launch and display but some interactions (e.g., with sliders) crash in an NS routine (presumably cocoa).
With the Juce tip I can now get this working i.e., building on 10.5 deploying for 10.4 or later UB. But not using the static libs.
If I build the Juce Demo on my 10.5 Intel using the default set-up using the amalgamated file I can transfer the app to my 10.4 ppc and it works.
If I reconfigure the Juce Demo to use the static libs i.e., removing the amalgamated lib and including “juce.h”, adding Juce.xcodproj to the frameworks section and libjuce.a to the link stage. It doesn’t work, again from the command line I get a “Bus error” when trying to launch the app.
I’m guessing this may be due to a difference in the way intermediate build object files are linked compared to static libs are linked. Of course, this is probably wrong and it may be simpler that this, but perhaps there is a linker setting in gcc that might help? Any ideas?
On a problem roughly similar to this one, we resolved it by building using XCode 2.5.
It seems that even if both XCode 3 and XCode 2.5 are using GCC 4.0, somewhat the resulting app are different.
I fixed this by removing the MACOSX_DEPLOYMENT_TARGET_ppc=10.3 setting and this seems to work building on Xcode 2.5 and Xcode 3.1 and deploying 10.4 UB