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

pengliang(彭亮) pengliang at founder.com
Sat Dec 18 01:49:07 CET 2010


Hi 

        I done like you said. And I have read qt-assistant, it says same as yours.

 But, it still can not work. “QSqlDatabase: QMYSQL driver not loaded . QSqlDatabase: available drivers: QSQLITE.

But I add the app_path into LD_LIBRARY_PATH. It is ok.

 

 

Thanks

彭亮 Ken

 

 

________________________________

发件人: qt-interest-bounces+pengliang=founder.com at qt.nokia.com [mailto:qt-interest-bounces+pengliang=founder.com at qt.nokia.com] 代表 Joseph Caputo
发送时间: 2010年12月16日 21:23
收件人: qt-interest at qt.nokia.com
主题: Re: [Qt-interest] 答复: plugins directory

 

Your plugin needs to be in a subdirectory named "sqldrivers" for this approach to work without setting LD_LIBRARY_PATH, I think.  This mimics the structure of the global ${QTDIR}/plugins directory.  At least, that's how it worked in Qt 3.x -- I think it's the same for Qt 4.x

 

Joseph A. Caputo

Vice President, Technology

QED Financial Systems, Inc.

10,000 Sagemore
Marlton, New Jersey 08053 USA

tel

856.797.1200

fax

856.797.9719

email

caputo at QEDFinancialSystems.com

This electronic message is intended only for the receipt by, and the personal and confidential use of, the designated recipient(s) named above.
If you are not an intended recipient of this electronic message you are hereby notified that any review, dissemination, distribution or copy of 
this message is strictly prohibited.  QED Financial Systems, Inc. reserves all rights to the content of this electronic message, which is the 
exclusive property of QED Financial Systems.

 


On 2010-12-16 03:57, pengliang(彭亮) wrote: 

I ran it in computer2(it installed Qt4.5.1. but I copy all librarys and plugins of Qt4.7.1 into the directory of the program and “addLibraryPath(“the program directory”).  But it failed. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101218/5085d5dd/attachment.html 


More information about the Qt-interest-old mailing list