2

Hi I have created an Qt Appliation on Mac 10.7.4. and I got an .app file i.e ex myApp.app When I try to run it on MAC 10.6 I am getting an error as showed in the below Error Imageimage

Sharanabasu Angadi
  • 4,304
  • 8
  • 43
  • 67

1 Answers1

3

First, try setting this in your application's *.pro file:

QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6

This should hopefully enable weak linking for your build, which in theory would allow it to run on 10.6.

If that doesn't work, you have two other options. Build on 10.6. The binaries will run on 10.7 and 10.8. Or, manually try to install the 10.6 SDK as described here:

Where to get macos SDK 10.6 for Xcode?

You will then have to configure your Qt project to target that SDK:

QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.6.sdk
Community
  • 1
  • 1
Nikos C.
  • 50,738
  • 9
  • 71
  • 96