[Qt-interest] Distributing Qt apps on Mac

Konstantin Tokarev annulen at yandex.ru
Fri Apr 1 21:01:04 CEST 2011



01.04.2011, 22:53, "Pavel Koshevoy" <pavel at aragog.com>:
> On 4/1/11 12:04 PM, David Ching 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?
>
> Frameworks can include separate resource files (even header files) in addition to .dylibs.  In the past when I built Qt Carbon I configured it for dylibs.  When I build Qt Cocoa I use frameworks.
>
> 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.

1. There's build system agnostic Captain MacLib tool : 
http://macdylibbundler.sourceforge.net/

2. There's a support for bundling of dependencies in CMake build system


-- 
Regards,
Konstantin



More information about the Qt-interest-old mailing list