Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
plugin sql sqlite not found error
I get the following error. could you please let me know what is the problem?
undefined symbols for architecture x86_64:
"qt_static_plugin_qsqlite()", referenced from:
i installed qt from source with following syntax
./configure -static -nomake examples -plugin-sql-sqlite
Did you update your project to handle static plugins like shown here ?
@SGaist yes, the project was working with qt 4.8 using static.
When i ported it to 5.9.1. first i installed qt from the GUI and then i installed the QT from source. But it keep not detecting the qt sql plugin.
Why build it a static plugin plugin rather than builtin the library ?
when i run macdeployqt, i get a message that sqlite lib is not approporiate for appstore and thus i decided to build it static and try. Now, i removed the full installation and i hope to reinstall it again as static. It seems there is a problem in the configure file, i dont know. May be if i use brew i can edit the receipt to include the static tags and run it. do you ve an idea?
AFAIK, that warning is not related to the fact that you are using a plugin.
I'd rather ensure that there's nothing trying to open a database on an arbitrary path.
The problem occur with Qt5.9.1 when i call
Q_IMPORT_PLUGIN(qsqlite); //for static sqlite plugin use in MAC
do we need to do it in Qt 5.9 ?
Did you add the matching
QTPLUGINline in your .pro file ?
SherifOmran last edited by SherifOmran
yes, it is in the PRO file.
I think Q_IMPORT is no longer needed because it is added by the QMAKE automatically in 5.9.1. I see the plugins in the make file.