Error QMYSQL Plugin on Windows
-
Re: Error QMYSQL Plugin on Windows
Hello to all! I'm trying to do by example
https://doc.qt.io/qt-6/sql-driver.html#qmysql
But I get some kind of error
Linking CXX shared module plugins\sqldrivers\qsqlite.dll
FAILED: plugins/sqldrivers/qsqlite.dll
Could someone help me please -
Hi and welcome to devnet,
Add the path to the MySQL driver so you build only that one.
-
Rather than "XXX/sqldrivers", go one level below: "XXX/sqldrivers/mysql".
-
@SGaist said in Error QMYSQL Plugin on Windows:
Rather than "XXX/sqldrivers", go one level below: "XXX/sqldrivers/mysql".
I doubt it will work - the build system is ninja.
Not sure for the correct syntax though butninja -t targets
should print the list of all available targets, at least one should be the mysql plugin, then runninja <targetname>
or simply remove the sqlite subdir from the CMakeLists.txt