Forum > macOS / Mac OS X
PackageMaker with Qt requirement
Ocye:
How do I insert Qt4 requirement in the Packagemaker?
Without Qt on target pkg is installed but the program doesn't start and does not show a specific error, at least I was told so.
Jonas Maebe:
--- Quote from: Ocye on September 16, 2010, 09:01:15 am ---How do I insert Qt4 requirement in the Packagemaker?
Without Qt on target pkg is installed but the program doesn't start and does not show a specific error, at least I was told so.
--- End quote ---
You should embed the Qt framework in your application bundle, as explained at http://doc.trolltech.com/4.3/deployment-mac.html
That guarantees that
a) Qt will be available
b) it will be the right version
c) it will be removed again when the used deletes your program
Ocye:
Sounds rather uncomfortable for the user. Isn't there a file that can be checked for availability? Beside a possible version conflict...
A similar problem is when the user can start the app without installed framework. I found entries in Info.plist that could point to something before start.
Jonas Maebe:
--- Quote from: Ocye on September 16, 2010, 03:55:35 pm ---Sounds rather uncomfortable for the user. Isn't there a file that can be checked for availability? Beside a possible version conflict...
A similar problem is when the user can start the app without installed framework. I found entries in Info.plist that could point to something before start.
--- End quote ---
If you embed the framework in the application bundle,
a) the framework will always be installed, since it's part of the application
b) there can be no version conflict (this is not Windows where only one version of a shared library with a particular name can be loaded at a time; you can run 100 different programs using 100 different versions of the Qt framework at the same time). Your program will always use the version of the Qt framework that you tested and shipped.
I don't understand how making sure that the program always works is uncomfortable for the user. It's also the recommended way by Apple to ship applications using frameworks that are not guaranteed to be installed on the user's system.
Ocye:
--- Quote from: jmaebe on September 16, 2010, 04:02:01 pm ---I don't understand how making sure that the program always works is uncomfortable for the user. It's also the recommended way by Apple to ship applications using frameworks that are not guaranteed to be installed on the user's system.
--- End quote ---
In terms of bandwidth its uncomfortable to download Qt. Unfortunately, I will have a lot of patches in near future and to integrate Qt costs some MBs. But you are right, it's the usual way. I was only wondering how to implement a feature similar to Dependencies in Rpm or Deb configs. Thanks a lot.
Navigation
[0] Message Index
[#] Next page