[Qt-interest] 答复: 答复: plugins directory
Samuel Gaist
samuel.gaist at edeltech.ch
Mon Dec 20 09:33:26 CET 2010
On 18 déc. 2010, at 01:49, pengliang(彭亮) wrote:
> 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.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
Hi,
Did you, as i wrote in an earlier response, install the mysql client library on computer2 ? (i.e emerge mysql on Gentoo or apt-get install libmysqlclient16 on Debian/Ubuntu)
You need the plugin to have the MySql interface in Qt but you still need the MySql client library to actually talk with the database.
Hope this helps
Samuel
More information about the Qt-interest-old
mailing list