Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. SQL driver doesn't work on ARM
Forum Updated to NodeBB v4.3 + New Features

SQL driver doesn't work on ARM

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 3 Posters 1.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    greensystemes_db
    wrote on last edited by greensystemes_db
    #1

    Hi all,

    I use Qt and QTCreator for my project. My program is running on an ARM machine and needs SQLite to work.

    Compilation works, and programs run correctly. Except when I use a SQLite database, it doesn't work :

    QSqlDatabase: QSQLITE driver not loaded
    QSqlDatabase: available drivers: QMYSQL3 QMYSQL

    Obviously, SQLite driver is not installed. But I have installed the driver

    /usr/local/Trolltech/Qt-4.8.6/plugins/sqldrivers/libqsqlite.so
    /usr/local/Trolltech/Qt-4.8.6/include/QtSql/QSQLiteDriver

    Someone have an idea ?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you install sqlite on your target ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        greensystemes_db
        wrote on last edited by
        #3

        No ... You're right !
        Is it possible to put the driver on the app directly ?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What do you mean by on the app directly ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • G Offline
            G Offline
            greensystemes_db
            wrote on last edited by
            #5

            I resolved the problem when I put "libqsqlite.so" in a folder named sqldrivers beside binary file (my app). And I want to know if it's possible to "bundle" the lib in my binary.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by SGaist
              #6

              You'd be interested in the linux deployment guide, it'll explain how to deploy Qt applications

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • G greensystemes_db

                Hi all,

                I use Qt and QTCreator for my project. My program is running on an ARM machine and needs SQLite to work.

                Compilation works, and programs run correctly. Except when I use a SQLite database, it doesn't work :

                QSqlDatabase: QSQLITE driver not loaded
                QSqlDatabase: available drivers: QMYSQL3 QMYSQL

                Obviously, SQLite driver is not installed. But I have installed the driver

                /usr/local/Trolltech/Qt-4.8.6/plugins/sqldrivers/libqsqlite.so
                /usr/local/Trolltech/Qt-4.8.6/include/QtSql/QSQLiteDriver

                Someone have an idea ?

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #7

                @greensystemes_db Would you mind marking the post as solved? Thank you.

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved