[Qt-interest] 答复: 答复: 答复: 答复: plugins directory
pengliang(彭亮)
pengliang at founder.com
Thu Dec 23 10:45:39 CET 2010
I have not installed Qt-4.5.3 and Qt-4.7.1, I only copy their libraries to /usr/local/Trolltech/.
LD_LIBRARY_PATH is "/usr/local/Trolltech/Qt-4.5.3",
When I renamed /usr/local/Trolltech/Qt-4.5.3 to Qt-4.5.3333, it’s ok. So I think the program search the libraries in the program’s path(like qt-assistant said). Because of Qt-4.5.3 does not exist and LD_LIBRARY_PATH is Qt-4.5.3.
But I renamed /usr/local/Trolltech/Qt-4.7.1 to Qt-4.7.1111, it can not work.
> [incam at incam04 plugins]$ cd sqldrivers/
> [incam at incam04 sqldrivers]$ ls
The plugin library exists, but against which version of Qt are they built? 4.7.1 ? Then they won't load with 4.5.3
> libqsqlite.so libqsqlmysql.so ß- library exist.
> [incam at incam04 sqldrivers]$
It is built on Qt-4.7.1.
Please see the picture bellow: I think the problem is libqsqlmysql.so. I built it on Qt-4.7.1, and I ran “ldd libqsqlmysql.so”,
Why it indicated the path of libQtSql.so.4 is “/usr/local/Trolltech/Qt-4.7.1/lib/libQtSql.so.4”?
Whether it means I must ensure the directory of “/usr/local/Trolltech/Qt-4.7.1” exist? If like this, it does not accord with “How to Create Qt Plugins” in Qt-assistant.
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月23日 17:14
收件人: qt-interest at qt.nokia.com
主题: Re: [Qt-interest] 答复: 答复: 答复: plugins directory
On 23 déc. 2010, at 09:42, pengliang(彭亮) wrote:
> Hi
> I am sure I have installed the mysql client library.
>
> Untitled2 has compiled on Qt-4.7.1. Please see the source code in attached file.
>
> when I rename /usr/local/Trolltech/Qt-4.7.1 to Qt-4.7.11111 ,it can not work.
> [incam at incam04 ~]$ cd /gerfile/ken/test/
> [incam at incam04 test]$ ls
> accessible bearer codecs designer graphicssystems iconengines imageformats inputmethods lib plugins script sqldrivers untitled2
> [incam at incam04 test]$ ./untitled2
> "/gen_db/gerfile/ken/test/lib"
> "/gen_db/gerfile/ken/test/plugins"
Look at the line below:
> "/usr/local/Trolltech/Qt-4.5.3/plugins"
The library used (and hence the plugins that are loaded) are from this version of Qt you installed: the 4.5.3
Was that version build with MySql support ?
> "/gen_db/gerfile/ken/test"
> QSqlDatabase: QMYSQL driver not loaded
> QSqlDatabase: available drivers: QSQLITE
> false open
> [incam at incam04 test]$ cd plugins
> [incam at incam04 plugins]$ ls
> accessible bearer codecs designer graphicssystems iconengines imageformats inputmethods sqldrivers
> [incam at incam04 plugins]$ cd sqldrivers/
> [incam at incam04 sqldrivers]$ ls
The plugin library exists, but against which version of Qt are they built ? 4.7.1 ? Then they won't load with 4.5.3
> libqsqlite.so libqsqlmysql.so ß- library exist.
> [incam at incam04 sqldrivers]$
>
> [/snip]
Hope this helps
Samuel
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101223/eb046079/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 111122 bytes
Desc: image001.jpg
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101223/eb046079/attachment.jpe
More information about the Qt-interest-old
mailing list