I run Mac OS X 10.6 on my development machine and create a QT application that I would like to work with 10.5 (and 10.4) as well as 10.6. My application has both a library component and a gui component, each of which is its own QT project with dependencies.
I followed the instructions in the QT deployment guide. In both .pro files, I added:
CONFIG += x86 ppc
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
I looked inside the makefile and confirmed that it includes the line export MACOSX_DEPLOYMENT_TARGET = 10.4
I built QT statics with the following configuration:
./configure -universal -sdk /Developer/SDKs/MacOSX10.5.sdk/ -opensource -static -debug-and-release
I compiled my application in QT Creator, and the resulting application runs flawlessly on 10.6 machines, but it crashes on 10.5 machines.
Is there anything else I need to do to get a QT application running on OS X 10.5? Does anyone know why this is crashing?
Process: MyApp[25908]
Path: /Applications/MyApp.app/Contents/MacOS/MyApp
Identifier: MyApp
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: launchd [109]
Interval Since Last Report: 17392106 sec
Crashes Since Last Report: 735
Per-App Interval Since Last Report: 0 sec
Per-App Crashes Since Last Report: 8
Date/Time: 2010-08-14 07:50:09.768 -0700
OS Version: Mac OS X 10.5.8 (9L31a)
Report Version: 6
Anonymous UUID: 1BF30470-ACF2-46C7-B6D5-4514380965C8
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Symbol not found: __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i
Referenced from: /Applications/MyApp.app/Contents/MacOS/MyApp
Expected in: /usr/lib/libstdc++.6.dylib