Skip to content

Deploying QT application on Linux fails without leaving message #617

Open
@Williamcs1400

Description

@Williamcs1400

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:

  1. I run the application through QTCreator
  2. I go to the build folder and deploy it with the command:sudo /home/vboxuser/Downloads/linuxdeployqt-continuous-x86_64.AppImage MyApplication -verbose -qmldir=/home/vboxuser/Downloads/signer-css/qml -appimage
  3. I try to run my application with sudo ./MyApplication and it crashes
  4. From the previous and subsequent logs I identified that the program crashes after executing the following line in c++ db = QSqlDatabase::addDatabase("QSQLITE");
  5. I don't understand this, since I have the sqlite lib inside the 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 QTIntallerFramework
I 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions