[Qt-interest] 答复: 答复: 答复: plugins directory

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Fri Dec 24 10:28:43 CET 2010


On 2010-12-24 Pengliang(彭亮) pengliang(彭亮) wrote:

> Hi
> 
>   Ok.
> Means I must ensure /usr/local/Trolltech/Qt-4.7.1 exist? because
> qsqlmysql.so need it?

No, that's not what it means. Did you read the docs? Which part was not clear to you?

The docs clearly tell you where to put the plugins when you ship your application *and to also ship all dependencies* of those plugins!

I have never used qsqlmysql.so myself, but did you check the dependencies with ldd? What does it tell you? Any MySQL libraries it refers to? Make sure that *all* these dependencies are available on your target system, either by making sure that the user has also installed the proper (MySQL) packages or that you ship them together with your application *and that your application is able to pickup external libraries* (read about "rpath", for example).

Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list