Solved QSqlDatabase: QMYSQL driver not loaded ubuntu, Qt5.14.0
-
@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.
-
@SGaist Sorry. Do to lack of experience, I don't know which is the config cache folder to remove can you specify the folder name to remove and also how to run the qmake with full path. please help me.
-
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.
-
Thanks 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)
-
This post is deleted! -
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
-
@eyllanesc Thank you bro. You saved my week.