Error while compiling Qt mySQL driver
-
@chrabaszcz.patryk said in Error while compiling Qt mySQL driver:
Hi I had the same problem with qtsqldrivers-config.pri
I leave it here, maybe it will be helpful
Go to :
/Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers
Run qmake:
../../../../../gcc_64/bin/qmake sqldrivers.pro
After that I got:Configure summary:
Qt Sql:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. yes
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... noThen go to:
/Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers/mysql
Run qmake again:
../../../../../../gcc_64/bin/qmake mysql.pro
Run make:
make
You will see as a part of an output message that it was compiled and moved into:
"mv -f libqsqlmysql.so ../plugins/sqldrivers/"I try to solve this problem for the whole night,your solution saved me.Solve the problem perfectly. Thanks very much.Thanks .
-
Hi I had the same problem with qtsqldrivers-config.pri
I leave it here, maybe it will be helpful
Go to :
/Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers
Run qmake:
../../../../../gcc_64/bin/qmake sqldrivers.pro
After that I got:Configure summary:
Qt Sql:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. yes
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... noThen go to:
/Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers/mysql
Run qmake again:
../../../../../../gcc_64/bin/qmake mysql.pro
Run make:
make
You will see as a part of an output message that it was compiled and moved into:
"mv -f libqsqlmysql.so ../plugins/sqldrivers/"I had this problem when added Qt 5.13.0 using online installation to the Qt 5.12 i have already installed i thought the installation was wrong until i came across your solution. Thanks you very much.
-
@chrabaszcz-patryk Registered here to thank you for your useful message :)
This problem is still actual in 5.15.0. Solved it as you mentioned.
-
@chrabaszcz-patryk Confirming this works, was trying to install ODBC and had the same error as OP. Did the suggested steps by @chrabaszcz-patryk and it worked on Qt 5.11.3 on Rpi 4B.