Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Postgres for android
Forum Updated to NodeBB v4.3 + New Features

Postgres for android

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 3 Posters 1.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.
  • NickVN Offline
    NickVN Offline
    NickV
    wrote on last edited by NickV
    #1

    Hi. I am trying to create the postgres driver for android. I found complete instructions here. But in the final step where i run qmake and then make install i get the following error: ../../../sql/drivers/psql/qsql_psql.cpp:133:18: error: ‘PostgreSQL’ is not a member of ‘QSqlDriver’

    Any idea what is going wrong?

    1 Reply Last reply
    0
    • NickVN Offline
      NickVN Offline
      NickV
      wrote on last edited by
      #2

      The above error was that i used for the compilation qt 5.2.1 but the qtbase was 5.5.1. So i used the qt qmake that is located in my home folder under Qt5.5.1/5.5/android_armv7/bin/qmake. But now i am facing another problem. The compiler says: error: cannot find -lpq.
      Is there anything that i can do to solve this problem?
      Thanks in advance!

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

        Hi,

        Can you show the qmake command and option you used to build the plugin ?

        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
        • NickVN Offline
          NickVN Offline
          NickV
          wrote on last edited by
          #4

          If i understand you want this:
          qmake "INCLUDEPATH+=/path/to/postgresql-9.4.1/src/interfaces/libpq /path/to/postgresql-9.4.1/src/include" "LIBS+=-L/path/to/postgresql-9.4.1/src/interfaces/libpq/ -lpq"

          This is what the qt wiki says to use. I've just write the corrent paths in the /path/to. I've also tried qmake from qt folder in the file system for android armv but still nothing. Only qmake from gcc worked perfectly.

          jsulmJ 1 Reply Last reply
          0
          • NickVN NickV

            If i understand you want this:
            qmake "INCLUDEPATH+=/path/to/postgresql-9.4.1/src/interfaces/libpq /path/to/postgresql-9.4.1/src/include" "LIBS+=-L/path/to/postgresql-9.4.1/src/interfaces/libpq/ -lpq"

            This is what the qt wiki says to use. I've just write the corrent paths in the /path/to. I've also tried qmake from qt folder in the file system for android armv but still nothing. Only qmake from gcc worked perfectly.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @NickV I guess the library isn't compiled for Android, right?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • NickVN Offline
              NickVN Offline
              NickV
              wrote on last edited by NickV
              #6

              Right! When i' ve tried the qmake for android multiple error shown. Only gmake for gcc worked perfectly! Ant suggestion?

              jsulmJ 1 Reply Last reply
              0
              • NickVN NickV

                Right! When i' ve tried the qmake for android multiple error shown. Only gmake for gcc worked perfectly! Ant suggestion?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @NickV You need to build PostgreSQL client library for Android first. Read PostgreSQL documentation to find out how.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • NickVN Offline
                  NickVN Offline
                  NickV
                  wrote on last edited by
                  #8

                  Thanks for your reply. I will try it and i will inform you about my progress.

                  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