[Qt-interest] Deploying apps in MacOS

Marc Balmer marc at msys.ch
Sun May 31 09:20:49 CEST 2009


Hi

> I usually use Linux or Windows, so I found deploying applications  
> for MacOS extremely painful -- I hear this is a common opinion. I  
> just want to ask -- are there any shortcuts that I can use that Mac  
> experts generally use? I am going through the Qt's instructions for  
> deploying on a Mac. I am getting stuck here and there, but I think I  
> can make it through. I was just wondering if there is a better way.

That's a funny post, for me ;).  Since I usually use Mac, I found to  
be quite easy
to deploy on Mac OS.  If you have any concrete questions, you can mail  
me
directly if you want.

What I usually do now:

- create my own Plist.info file and some icns, add that to the .pro  
file in a mac
section:

mac {
   RC_FILE = fieldlist.icns
   QMAKE_INFO_PLIST = Info.plist
}

When I switch from debugging to releasing, remove the .app file (the  
target)
and build it with the release settings.

And now use 'macdeployqt xxx.app -dmg' to create a disk image file that
contains your application with all needed Qt libraries.  You'll find  
macdeployqt
on the internet.

- Marc Balmer




More information about the Qt-interest-old mailing list