[Qt-interest] [Qt-Interest] Assistant in OSX app Bundle
Martin Guillon
MGuillon at movea.com
Wed Mar 3 15:46:58 CET 2010
I tried what you told me and nothing works. Even the qt.conf seems unsuccessful!
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Oliver.Knoll at comit.ch
Sent: Wednesday, March 03, 2010 3:20 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] [Qt-Interest] Assistant in OSX app Bundle
Martin Guillon wrote on Wednesday, March 03, 2010 2:38 PM:
> ...
> Bundl.app
> --Framework
> --Plugins
> ----sqldrivers
>From the Qt docs: "If you want the plugin to be loadable then one approach is to create a subdirectory under the application and place the plugin in that directory. If you distribute any of the plugins that come with Qt (the ones located in the plugins directory), you must copy the sub-directory under plugins where the plugin is located to your applications root folder (i.e., *do not include the plugins directory*)." (http://doc.trolltech.com/4.6/plugins-howto.html)
In other words: you must SKIP the 'plugins' directory and copy the subdirectory 'sqldrivers' directly into your "application directory"! Now I am just learning developing with Qt on Mac myself, so when it comes to app bundles I don't know what the "application directory" would be.
The http://doc.trolltech.com/4.6/deployment-mac.html#qt-plugins is not very helpful in this respect (it does not mention app bundles, but repeats the fact that "plugin should be located within a specific subdirectory (such as imageformats or sqldrivers) within your distribution directory". Now it is called "distribution directory", which I think is equal to "application directory" - but still no words what that means with respect to app bundles.
Did you try:
Bundle.app
--Framework
--sqldrivers
instead?
But anyway, according to the docs qt.conf seems to be the preferred way.
Or did you try the http://doc.trolltech.com/4.6/deployment-mac.html#the-mac-deployment-tool? According to that it should also deploy the most common Qt plugins ("SQL driver plugins are deployed if the application uses the QtSql module."). Check the result with an example app and see where the Qt plugins are put.
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list