New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppImage: sql delivers not loaded #3
Comments
@probonopd could you help me on this issue ? |
Were these drivers deployed automatically by |
The drivers were automatically deployed by linuxdeployqt |
Thanks for the information. Do you see any errors when you run |
apart of a few symbol lookup errors: undefined symbol related with gtk, I did not spot an error message before the "QSQLITE driver not loaded" message |
The GTK erros are probably caused by the GTK platform theme and unrelated. Please extract the AppImage (using |
Thanks for your assistance... This is all what I get : strace -f ./squashfs-root/AppRun 2&1 |strace -f ./squashfs-root/AppRun 2>&1 | grep -i sql |
Right when it is being launched, it says on the command line:
The sqldrivers plugins seem to be there:
libQt5Sql gets loaded:
But for some reason libQt5Sql doesn't seem to load
I don't know yet why that is. Other plugins are being opened, but not the sqldrivers. |
Actually, according to http://www.qtcentre.org/threads/48838-QSqlDatabase-an-instance-of-QCoreApplication-is-required-for-loading-driver-plugins! it gets fixed with
|
Thanks. I did see this one as well. However QCoreApplication does not allow to create a QWidget (The QCoreApplication class provides an event loop for Qt applications without UI) |
Does it work for you before you run |
Yes. I am developing on Mac. It works and the app created with macdeployqt works as well. |
My question is, have you tested it on Linux without using |
Yes, i have installed a Linux VM on my Mac. It works as it should from QtCreator. |
@probonopd just wondering if there is a solution to this problem .... thanks |
Sorry, Ihave not yet found the cause for why this is failing. |
Problem solved: it was in my code. Now I add the db as: db = addDataBase("QSQLITE") just before opening db. db is not anymore a data member of my dbhandler class. Not sure what exactly cause the pb |
Thanks for letting us know. This way others who might be running into the same issue will be able to find the solution here. |
@probonopd Thanks for helping on this and sorry for pointing in the wrong direction |
Hello,
From the AppImage built with travis:
At run time, the sqlite driver cannot be loaded:
QSqlDatabase: QSQLITE driver not loaded
and no available drivers is found.
In the AppImage these drivers are in usr/plugins/sqldrivers ...
What is going wrong ?
The text was updated successfully, but these errors were encountered: