[Qt-interest] Distributing Qt apps on Mac
Reaves, Timothy
treaves at silverfieldstech.com
Fri Apr 1 20:21:38 CEST 2011
Yes, this has gotten a bit confusing.
For your framework question, there is plenty of information out their
answering your question; search for it.
For the Carbon/Cocoa, Cocoa is going to be better, but blocks PPC & < 10.5
support. The Carbon version runs on both, but is 32bit only, and is dead (as
Apple no longer does Carbon).
If you need to support both PPC & Intel, an 10.4, 10.5, & 10.6, then you
will need to compile your own version of Qt, and distribute that, and have
at least two different installers (for <10.6 & >= 10.6).
On Fri, Apr 1, 2011 at 2:04 PM, David Ching <dc at dcsoft.com> wrote:
> Hello,
>
>
>
> I have experience with Qt on Windows but am new to Qt on Mac. I have some
> basic questions for bulding and deploying on Mac:
>
>
>
> 1. There are two versions of Qt for Mac, Carbon and Cocoa. Already,
> this is a painful decision point for me. In your experience, is supporting
> Cocoa only (which I believe is Leopard, Snow Leopard, etc.) enough?
>
> 2. I installed Qt 4.7.1 Carbon SDK onto my Snow Leopard MacBook, built
> my app, ran ‘macdeployqt’. Using “otool –L”, this showed that the Qt
> “frameworks” (and not “.dylibs”) were stored into my .app bundle. I am
> confused about this whole “framework” concept --- how are these
> different/better than simple .dylibs?
>
> 3. The Qt frameworks that were put into my app bundle apparently were
> built as “universal binaries” meaning they have both PPC and Intel binaries
> in them. Do many people still use PowerPC Mac’s, can I rebuild the
> frameworks without PowerPC and reduce the size?
>
> 4. The app built in #2 resulted in a successful deployment onto Snow
> Leopard, but when run on Leopard, the error in Console shows:
>
>
>
> dyld: lazy symbol binding failed: 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
>
>
>
> This is the same error Qt got in their own Linguist app:
> http://bugreports.qt.nokia.com/browse/QTBUG-13943
>
>
>
> But they declined to fix it (even though the fix version is
> listed as 4.7.2, I don’t believe it was fixed there, since the last comment
> said it would not be fixed). I can see Nokia expecting developers to run
> Snow Leopard, but now the same error is happening in my own app, and I can’t
> expect my users to be running Snow Leopard!
>
>
>
> I must be missing something here, in my ignorance of Mac
> things. Could someone help me understand Carbon vs. Cocoa, Frameworks vs.
> dylibs, PowerPC support or not, and most of all: how to be able to build my
> Qt app so I can distribute it on Leopard.
>
>
>
> Thanks,
> David
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110401/87138932/attachment.html
More information about the Qt-interest-old
mailing list