QSqlDatabase: QMYSQL driver not loaded ubuntu, Qt5.14.0
-
wrote on 26 Dec 2019, 09:22 last edited by sujith D
@Christian-Ehrlicher said in QSqlDatabase: QMYSQL driver not loaded ubuntu, Qt5.14.0:
qmake
Bro how to remove the config cache, and how to run correct qmake , if my qt installed path is /home/sujith/Qt5.14.0/5.14.0/Src/
-
How to remove: delete the file/folder using for example rm.
For qmake, use the full path to the executable you want to call.
-
How to remove: delete the file/folder using for example rm.
For qmake, use the full path to the executable you want to call.
-
Lifetime Qt Championwrote on 26 Dec 2019, 10:02 last edited by Christian Ehrlicher
The config.cache file is create by qmake in /Qt5.14.0/5.14.0/Src/qtbase/src/plugins/sqldrivers - you simply could have take a look there to find it.
-
The config.cache file is create by qmake in /Qt5.14.0/5.14.0/Src/qtbase/src/plugins/sqldrivers - you simply could have take a look there to find it.
wrote on 26 Dec 2019, 10:17 last edited byThanks found /home/sujith/Qt5.14.0/5.14.0/Src/qtbase/src/plugins/sqldrivers/config.cache
rm /home/sujith/Qt5.14.0/5.14.0/Src/qtbase/src/plugins/sqldrivers/config.cache ?
then again qmake -- MYSQL_PREFIX= fullpath ?
how to find fullpath ? -
@sujith-D said in QSqlDatabase: QMYSQL driver not loaded ubuntu, Qt5.14.0:
how to find fullpath ?
you should know where you installed your Qt5.14. installation into, so you can also find the correct qmake in there - we don't know where you installed your Qt5.14 binary files (your comment about /home/sujith/Qt5.14.0/5.14.0/Src is wrong - at least I don't think that you installed your binary files into the source dir)
-
wrote on 30 Dec 2019, 06:12 last edited by eyllanescThis post is deleted!
-
wrote on 30 Dec 2019, 06:12 last edited by
ok bro 1mnt I will try
-
@sujith-D Execute:
cd ~/Qt5.14.0/5.14.0/Src/qtbase/src/plugins/sqldrivers && ~/Qt5.14.0/5.14.0/gcc_64/bin/qmake sqldrivers.pro && make && make install
wrote on 30 Dec 2019, 07:08 last edited by@eyllanesc Thank you bro. You saved my week.
18/18