-
Notifications
You must be signed in to change notification settings - Fork 414
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
Deploying QT application on Linux fails without leaving message #617
Comments
Hi @Williamcs1400, are you familiar with using |
Hi, @probonopd. thank you for your attention.
Any idea what it could be? |
You need to strace your application, not linuxdeployqt. |
Right. Using the command:
|
Is |
Well, you said that "I try to run my application with sudo ./MyApplication and it crashes". We need to analyze what makes it crash. And since you are posting this in the linuxdeployqt project, I was assuming that MyApplication has been deployed using it. |
After successfully running it with QT, I go to the build folder and do ./MyApp and it runs successfully again. After I deploy it with linuxqtdeploy (command written in the initial question), I do ./MyApp and it stops running just when it is going to use sqlite. |
That is what we need to debug using strace. |
Ok, but does not exist anyone .AppImage in the build folder. What do I have to do? |
Without more information, I can't say. Is your application open source? |
Unfortunately it is not an open source app. |
You might try whether another tool, e.g., linuxdeploy with https://github.com/linuxdeploy/linuxdeploy-plugin-qt, gives better results. |
In ubuntu 18.04, I have an application that runs perfectly when executed by QTCreator. But when I need to deploy it to generate the installer, the app crashes without leaving a message. These are the steps I execute:
sudo /home/vboxuser/Downloads/linuxdeployqt-continuous-x86_64.AppImage MyApplication -verbose -qmldir=/home/vboxuser/Downloads/signer-css/qml -appimage
sudo ./MyApplication
and it crashesQSqlDatabase::addDatabase("QSQLITE");
plugins/sqldrivers
folder in the build directory.I tried to put
libqsqlite.so
in the root folder.I tried to put
libqsqlite.so
in the folder of an installer made with QTIntallerFrameworkI tried to do debug and release builds
I tried to make an installer without doing the deploy
They all give the same error.
Does anyone have an idea of what I can do to get the application to run? I don't believe it's a code error, since this same snippet in C++ works for Windows, iOS, Mac and Android.
The text was updated successfully, but these errors were encountered: