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

Samuel Gaist samuel.gaist at edeltech.ch
Thu Dec 23 10:14:26 CET 2010


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


More information about the Qt-interest-old mailing list