[Qt-interest] Distributing Qt apps on Mac
David Ching
dc at dcsoft.com
Fri Apr 1 20:04:17 CEST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110401/c4a96079/attachment.html
More information about the Qt-interest-old
mailing list