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. QSqlDatabase: QSQLITE driver not loaded QSqlDatabase: available drivers:
Forum Updated to NodeBB v4.3 + New Features

QSqlDatabase: QSQLITE driver not loaded QSqlDatabase: available drivers:

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 3 Posters 2.1k Views 1 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.
  • S Offline
    S Offline
    saurabh162
    wrote on last edited by
    #1

    Dear Developers,

    I am trying to connect with my newly created SQLITE database on Beaglebone black . On running my QT application (cross compiled using QT 5.7.1) I get following error.

    QSqlDatabase: QSQLITE driver not loaded
    QSqlDatabase: available drivers:

    Can you please inform me how can I find out main reason for this problem and how can I solve this problem.

    Additionally when I give run ldd libQt5Sql.so.5 I get following output

     linux-vdso.so.1 (0xbec9d000)                                            
            libQt5Core.so.5 => /usr/lib/arm-linux-gnueabihf/./libQt5Core.so.5 (0xb6)
            librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6b2f000)          
            libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6b1c000)          
            libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6af8000)
            libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/./libstdc++.so.6 (0xb69e)
            libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6974000)            
            libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb694b000)    
            libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb685d000)            
            libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb683b000)            
            libicui18n.so.57 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.57 (0xb6)
            libicuuc.so.57 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.57 (0xb65650)
            libpcre16.so.3 => /usr/lib/arm-linux-gnueabihf/libpcre16.so.3 (0xb650d0)
            libdouble-conversion.so.1 => /usr/lib/arm-linux-gnueabihf/libdouble-con)
            libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb64140)
            /lib/ld-linux-armhf.so.3 (0xb6f08000)                                   
            libicudata.so.57 => /usr/lib/arm-linux-gnueabihf/libicudata.so.57 (0xb4)
            libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb4b28000) 
    

    Please inform me if you need any other information from me .

    Kind regards
    Saurabh

    JonBJ 1 Reply Last reply
    0
    • S saurabh162

      Dear Developers,

      I am trying to connect with my newly created SQLITE database on Beaglebone black . On running my QT application (cross compiled using QT 5.7.1) I get following error.

      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers:

      Can you please inform me how can I find out main reason for this problem and how can I solve this problem.

      Additionally when I give run ldd libQt5Sql.so.5 I get following output

       linux-vdso.so.1 (0xbec9d000)                                            
              libQt5Core.so.5 => /usr/lib/arm-linux-gnueabihf/./libQt5Core.so.5 (0xb6)
              librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6b2f000)          
              libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6b1c000)          
              libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6af8000)
              libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/./libstdc++.so.6 (0xb69e)
              libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6974000)            
              libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb694b000)    
              libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb685d000)            
              libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb683b000)            
              libicui18n.so.57 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.57 (0xb6)
              libicuuc.so.57 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.57 (0xb65650)
              libpcre16.so.3 => /usr/lib/arm-linux-gnueabihf/libpcre16.so.3 (0xb650d0)
              libdouble-conversion.so.1 => /usr/lib/arm-linux-gnueabihf/libdouble-con)
              libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb64140)
              /lib/ld-linux-armhf.so.3 (0xb6f08000)                                   
              libicudata.so.57 => /usr/lib/arm-linux-gnueabihf/libicudata.so.57 (0xb4)
              libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb4b28000) 
      

      Please inform me if you need any other information from me .

      Kind regards
      Saurabh

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @saurabh162
      So your target does not seem to be seeing any available drivers.
      Have you Googled: qt5 sqlite driver not loaded ?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        saurabh162
        wrote on last edited by
        #3

        Hello JonB,

        Thank you for your fast reply

        Yes I am looking into it but did not get any answer till now which can fix this issue in my target.

        1 Reply Last reply
        0
        • AndySA Offline
          AndySA Offline
          AndyS
          Moderators
          wrote on last edited by
          #4

          Hi @saurabh162,

          Since this is on the target, did you deploy the sqldrivers directory from the plugins directory onto the target too?

          The link http://doc.qt.io/qt-5/linux-deployment.html#qt-plugins should offer some insight too here.

          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • S Offline
            S Offline
            saurabh162
            wrote on last edited by
            #5

            Hello @JonB and @AndyS

            Thank you very much for your help

            I am able to solve this problem after I copied "libqsqlite.so" from "/plugins/sqldrivers" directory of my PC to /plugins/sqldrivers directory of my target.

            Thanks :)

            1 Reply Last reply
            1

            • Login

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