Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Android client for Postresql
Qt 6.12 LTS is out! See what's new in the release blog

Qt Android client for Postresql

Scheduled Pinned Locked Moved Mobile and Embedded
35 Posts 4 Posters 30.7k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #21

    [quote author="antreimer" date="1424547268"]The first so file I uploaded was only tested against lollipop. The second one was also tested against KitKat. I'll look into it. My brother has a Jellybean phone.[/quote]

    i've edited my post. please the app seems to be working on my phone but now the database connection is not being established :P

    BTW i'm testing it on KitKat too

    1 Reply Last reply
    0
    • A Offline
      A Offline
      antreimer
      wrote on last edited by
      #22

      Could you add something like
      @QMessageBox::information(this,"Connection", db.lastError().text() );@
      I think that'll output the error in connection

      1 Reply Last reply
      0
      • A Offline
        A Offline
        antreimer
        wrote on last edited by
        #23

        Could you add something like
        @QMessageBox::information(this,"Connection", db.lastError().text() );@
        I think that'll output the error in connection

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #24

          I already did that. it says driver not loaded. its is the same error i was getting without this library. I added this code to check whether the library was loaded or not. And it shows that it is loaded (message box is shown):

          @ QLibrary library("libpq.so");

          if (library.load())
          QMessageBox::information(this,"Loaded","Lib loaded");@

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #25

            I already did that. it says driver not loaded. its is the same error i was getting without this library. I added this code to check whether the library was loaded or not. And it shows that it is loaded (message box is shown):

            @ QLibrary library("libpq.so");

            if (library.load())
            QMessageBox::information(this,"Loaded","Lib loaded");@

            1 Reply Last reply
            0
            • A Offline
              A Offline
              antreimer
              wrote on last edited by
              #26

              what about libqsqlpsql.so?

              Edit:
              OK, I hope now it'll work. Qt does some majik that I didn't know of to install drivers.
              copy libqsqlpsql.so into /path/to/qt/android_armv7/plugins/sqldrivers/ and try again.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                antreimer
                wrote on last edited by
                #27

                what about libqsqlpsql.so?

                Edit:
                OK, I hope now it'll work. Qt does some majik that I didn't know of to install drivers.
                copy libqsqlpsql.so into /path/to/qt/android_armv7/plugins/sqldrivers/ and try again.

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #28

                  [quote author="antreimer" date="1424550965"]what about libqsqlpsql.so?

                  Edit:
                  OK, I hope now it'll work. Qt does some majik that I didn't know of to install drivers.
                  copy libqsqlpsql.so into /path/to/qt/android_armv7/plugins/sqldrivers/ and try again.[/quote]

                  OK. I copied both libqsqlpsql.so and libpq.so to the specified destination but that didn't work either. same problem.
                  libqsqlpsql.so lib is also loaded according to the method posted in my previous post

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #29

                    [quote author="antreimer" date="1424550965"]what about libqsqlpsql.so?

                    Edit:
                    OK, I hope now it'll work. Qt does some majik that I didn't know of to install drivers.
                    copy libqsqlpsql.so into /path/to/qt/android_armv7/plugins/sqldrivers/ and try again.[/quote]

                    OK. I copied both libqsqlpsql.so and libpq.so to the specified destination but that didn't work either. same problem.
                    libqsqlpsql.so lib is also loaded according to the method posted in my previous post

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      antreimer
                      wrote on last edited by
                      #30

                      ok. I'm fairly new to qt on android as well but my latest understanding now is that you don't need libqsqlpsql.so. It must somehow be copied by qt and it'll appear as libplugins_sqldrivers_libqsqlpsql.so in your apk

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        antreimer
                        wrote on last edited by
                        #31

                        ok. I'm fairly new to qt on android as well but my latest understanding now is that you don't need libqsqlpsql.so. It must somehow be copied by qt and it'll appear as libplugins_sqldrivers_libqsqlpsql.so in your apk

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          antreimer
                          wrote on last edited by
                          #32

                          I now statically linked the plugin so nothing should be needed to do other then to copy it into th sqldrivers plugin folder https://drive.google.com/open?id=0ByPpOAN5EsHKfmgwRTFvQUl5Z1NvUnlYMHptTEs0d2xEc24xZ19Jb0ZDMTBpb3JDQ014ZkU&authuser=0

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            antreimer
                            wrote on last edited by
                            #33

                            I now statically linked the plugin so nothing should be needed to do other then to copy it into th sqldrivers plugin folder https://drive.google.com/open?id=0ByPpOAN5EsHKfmgwRTFvQUl5Z1NvUnlYMHptTEs0d2xEc24xZ19Jb0ZDMTBpb3JDQ014ZkU&authuser=0

                            1 Reply Last reply
                            0
                            • ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by
                              #34

                              [quote author="antreimer" date="1424556611"]I now statically linked the plugin so nothing should be needed to do other then to copy it into th sqldrivers plugin folder https://drive.google.com/open?id=0ByPpOAN5EsHKfmgwRTFvQUl5Z1NvUnlYMHptTEs0d2xEc24xZ19Jb0ZDMTBpb3JDQ014ZkU&authuser=0[/quote]

                              brilliant! Works like a charm! thank you so very much for your help. I just copied the file to /path/to/Qt/android_armv7/plugins/sqldrivers and remove the android extra libs script from .pro file and its now working :)

                              1 Reply Last reply
                              0
                              • ? Offline
                                ? Offline
                                A Former User
                                wrote on last edited by
                                #35

                                [quote author="antreimer" date="1424556611"]I now statically linked the plugin so nothing should be needed to do other then to copy it into th sqldrivers plugin folder https://drive.google.com/open?id=0ByPpOAN5EsHKfmgwRTFvQUl5Z1NvUnlYMHptTEs0d2xEc24xZ19Jb0ZDMTBpb3JDQ014ZkU&authuser=0[/quote]

                                brilliant! Works like a charm! thank you so very much for your help. I just copied the file to /path/to/Qt/android_armv7/plugins/sqldrivers and remove the android extra libs script from .pro file and its now working :)

                                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
                                • Unsolved