Some issues about Qt programming in building MySQL driver
-
I have download the Qt5.5.0 and installed it with "source component" checked. and MySQL installed either. When I tried to build the driver I got the following error
QtSql/private/qsqldriver_p.h: No such file or directory
#include <QtSql/private/qsqldriver_p.h>And when I cd to the directory I found that there are three lib files
libqsqlite.so libqsqlmysql.so libqsqlpsql.soI try to execute 'ldd libqsqlmysql.so' and I got the following response
**
libmysqlclient_r.so.16 => not found
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fdbee109000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fdbeded0000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007fdbedcb6000)
libssl.so.10 => not found
libcrypto.so.10 => not found
**How can I solve this?
-
Hi and welcome to devnet,
Please start by searching the forum a bit, this question has been asked many times already. You need to install the mysql dev package for your distribution then you should be able to build the plugin.
-
There's a known bug that has been fixed for 5.5.1, check that before going too deep.
-
Not the most clean solution, you are downgrading Qt to a series that has seen its last release a few month ago.