[Qt-interest] Distributing Qt apps on Mac
David Ching
dc at dcsoft.com
Mon Apr 4 19:17:45 CEST 2011
"Pavel Koshevoy" <pavel at aragog.com> wrote in message
news:4D961F24.5080408 at aragog.com...
> BTW, as far as I remember macdeployqt will not pull in non-Qt dependencies
into the bundle.
> I wrote my own deployment shell script that pulls in all the dependencies.
> If anyone wants it I can post it here. You may need to tailor it to suit
your environment.
Thank you Pavel. On one Mac, I installed Qt 4.7.1 for Cocoa, the other Mac
I installed Qt 4.7.1 for Carbon. On the Cocoa one, macdeployqt did not help
me with my own dylibs, but on the on Carbon one, macdeployqt did in fact
pull my dylibs into the bundle very nicely. I don't know why there was a
difference. So I am using the Carbon one for now.
http://doc.qt.nokia.com/4.7-snapshot/mac-differences.html says to use
QMAKE_LFLAGS_SONAME when building my dylibs so they go into the app bundle
automatically. Maybe this will make it unnecessary for macdeployqt to have
to do anything to my dylibs?
> So, you built on OSX 10.6 and tried to run on OSX 10.5. What was your
deployment target?
> In Xcode you can specify the SDK and target. You may be able to do this
in the .pro file:
>
>macx {
> QMAKE_CXXFLAGS_DEBUG += -mmacosx-version-min=10.5 -isysroot
/Developer/SDKs/MacOSX10.5.sdk
> QMAKE_CXXFLAGS_RELEASE += -mmacosx-version-min=10.5 -isysroot
/Developer/SDKs/MacOSX10.5.sdk
>}
>
>You'll have to make sure that any other frameworks/libraries you link to
are also 10.5 compatible. This may mean you'll have to rebuild Qt yourself.
Thanks for the tip. I sure wasn't expecting to have to rebuild Qt myself,
but oh well.
http://stackoverflow.com/questions/4945417/qt-os-10-6-build-not-running-on-o
s-10-5-and-less also says the -sdk must be used in 'configure'.
-- David
More information about the Qt-interest-old
mailing list