[Qt-interest] 答复: plugins directory
pengliang(彭亮)
pengliang at founder.com
Thu Dec 16 09:57:49 CET 2010
Yes, I run it on linux.
When add app_path into LD_LIBRARY_PATH. It is ok.
But it is very trouble set all computers.
So, I want figure out it.
Thanks
彭亮 Ken
-----邮件原件-----
发件人: qt-interest-bounces+pengliang=founder.com at qt.nokia.com [mailto:qt-interest-bounces+pengliang=founder.com at qt.nokia.com] 代表 Samuel Gaist
发送时间: 2010年12月16日 16:17
收件人: qt-interest at qt.nokia.com
主题: Re: [Qt-interest] plugins directory
On 16 déc. 2010, at 07:21, pengliang(彭亮) wrote:
> Hi All
> I am very confused: I written a program which inert some data into mysql. I use Qt4.7.1.
> I ran it in computer1( it had installed Qt4.7.1, but I had rename libqsqlmysql.so to libxxxxx), the program still successful.
> 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. Terminal told me: QSqlDatabase: QMYSQL driver not loaded, .
> Anybody can tell me why?
> Thanks
>
>
>
> Thanks
> 彭亮 Ken
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
Hi,
You also have to copy/install the MySQL library to computer2 (libmysqlclient.so* or libmysqlclient_r.so*).
By the naming of your library, i suppose you're on Linux, so the most straightforward way is to install the libmysql package for your distribution.
Hope it helps
Samuel
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list