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. Build Postgresql plugin android Version 10
Forum Updated to NodeBB v4.3 + New Features

Build Postgresql plugin android Version 10

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
14 Posts 5 Posters 1.3k Views 3 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.
  • W Offline
    W Offline
    Wesley_Morais
    wrote on 22 Apr 2020, 18:37 last edited by
    #1

    Hi, How to build PSQL android plugin to version 10 of PSQL and use CLang or GCC, i tried compile follwing the Qt Wiki page but doesn,t work. Only work with de PSQL versions 9.X.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 23 Apr 2020, 06:28 last edited by
      #2

      Postgre on Android? Will you connect to some remote database? For local DBs better stick with SQLite, much less hassle.

      (Z(:^

      W 1 Reply Last reply 23 Apr 2020, 15:12
      2
      • S sierdzio
        23 Apr 2020, 06:28

        Postgre on Android? Will you connect to some remote database? For local DBs better stick with SQLite, much less hassle.

        W Offline
        W Offline
        Wesley_Morais
        wrote on 23 Apr 2020, 15:12 last edited by
        #3

        @sierdzio yes, i will connect to remote database, for Desktop applications i not found problems.

        J 1 Reply Last reply 23 Apr 2020, 15:14
        0
        • W Wesley_Morais
          23 Apr 2020, 15:12

          @sierdzio yes, i will connect to remote database, for Desktop applications i not found problems.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 23 Apr 2020, 15:14 last edited by
          #4

          @Wesley_Morais So, you're going to expose PostgreSQL server to the internet?!
          This is not a good idea. Usually a web interface is provided by the server to access the database indirectly in a controlled way without exposing the database server to the internet.

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

          W 1 Reply Last reply 23 Apr 2020, 15:27
          0
          • J jsulm
            23 Apr 2020, 15:14

            @Wesley_Morais So, you're going to expose PostgreSQL server to the internet?!
            This is not a good idea. Usually a web interface is provided by the server to access the database indirectly in a controlled way without exposing the database server to the internet.

            W Offline
            W Offline
            Wesley_Morais
            wrote on 23 Apr 2020, 15:27 last edited by
            #5

            @jsulm for now i,m using only LAN to connect my Andriod App and the Database Server.

            i follow this wiki page: https://wiki.qt.io/Build_Qt_5_PostgreSQL_Plugin_for_Android
            to compile the driver, but to version 10 of postgresql doesn't work.

            When i put the Database on internet, i will put him behind to firewall.

            J 1 Reply Last reply 24 Apr 2020, 05:20
            0
            • W Wesley_Morais
              23 Apr 2020, 15:27

              @jsulm for now i,m using only LAN to connect my Andriod App and the Database Server.

              i follow this wiki page: https://wiki.qt.io/Build_Qt_5_PostgreSQL_Plugin_for_Android
              to compile the driver, but to version 10 of postgresql doesn't work.

              When i put the Database on internet, i will put him behind to firewall.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 24 Apr 2020, 05:20 last edited by jsulm
              #6

              @Wesley_Morais said in Build Postgresql plugin android Version 10:

              i will put him behind to firewall

              How is this going to help? You still have to open the port to be able to connect.

              "doesn't work" - this is not enough information. Please specify exactly what does not work.

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

              W 1 Reply Last reply 24 Apr 2020, 11:18
              0
              • J jsulm
                24 Apr 2020, 05:20

                @Wesley_Morais said in Build Postgresql plugin android Version 10:

                i will put him behind to firewall

                How is this going to help? You still have to open the port to be able to connect.

                "doesn't work" - this is not enough information. Please specify exactly what does not work.

                W Offline
                W Offline
                Wesley_Morais
                wrote on 24 Apr 2020, 11:18 last edited by
                #7

                @jsulm Good morning, let me explain better what i want to do.

                Actualy my problem is "How to build build a plugin at version 10 of Postresql", because on this version of Postgresql (10 and UP) was implemented a new mechanism of security called SCRAM-SHA-256 and i want compile on this version too,because when this versions 9.X are obsolete, i can able to use another version more recent.
                In my search on the internet, i found this wikipage: https://wiki.qt.io/Build_Qt_5_PostgreSQL_Plugin_for_Android but is not aplicable to version 10 and up of PSQL, because on this page is showed how to compile on versions 9.X and using android NDK 10e that works with GCC toolchain and the most recent versions of Qt works with the CLang toolchains.

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  Wesley_Morais
                  wrote on 9 May 2020, 14:10 last edited by
                  #8

                  Hi, i found a solution.

                  During the compile process, was necessary add a follow flag: "--disable-strong-random", and the compile process works fine.

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    Hjunior
                    wrote on 3 Jun 2021, 18:29 last edited by Hjunior 6 Mar 2021, 18:30
                    #9

                    Hello.

                    I tried too many ways to build Qt 5.14.2 Android with QPSQL unfortunately didnt succeded. The famous page https://wiki.qt.io/Build_Qt_5_PostgreSQL_Plugin_for_Android is fully outdated since the NDK has version of 21 and above. I dont understand why QPSQL is not supplied by the Qt guys.

                    Any guide will be good for me to build Qt 5.14.2 with Postgresql 9 or 10 and also QPSQL plugin building.

                    If there is no way to do that or is the Xamarin good alternative?

                    S 1 Reply Last reply 3 Jun 2021, 18:49
                    0
                    • H Hjunior
                      3 Jun 2021, 18:29

                      Hello.

                      I tried too many ways to build Qt 5.14.2 Android with QPSQL unfortunately didnt succeded. The famous page https://wiki.qt.io/Build_Qt_5_PostgreSQL_Plugin_for_Android is fully outdated since the NDK has version of 21 and above. I dont understand why QPSQL is not supplied by the Qt guys.

                      Any guide will be good for me to build Qt 5.14.2 with Postgresql 9 or 10 and also QPSQL plugin building.

                      If there is no way to do that or is the Xamarin good alternative?

                      S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 3 Jun 2021, 18:49 last edited by
                      #10

                      @Hjunior I can only offer educated guesses:

                      • Android being mainly a Mobile operating system, trying to connect a phone to such a backend usually means exposing your database to the internet which is always a bad idea.
                      • There's no official pre-built binaries for Androïd which would mean additional work to maintain the build, fix the bugs, follow security updates, etc.

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

                      H 1 Reply Last reply 3 Jun 2021, 19:14
                      1
                      • S SGaist
                        3 Jun 2021, 18:49

                        @Hjunior I can only offer educated guesses:

                        • Android being mainly a Mobile operating system, trying to connect a phone to such a backend usually means exposing your database to the internet which is always a bad idea.
                        • There's no official pre-built binaries for Androïd which would mean additional work to maintain the build, fix the bugs, follow security updates, etc.
                        H Offline
                        H Offline
                        Hjunior
                        wrote on 3 Jun 2021, 19:14 last edited by
                        #11

                        @SGaist Thanks for response.

                        Exposing the database is bad for you and good for some customers case, and this is not our issue with Qt. That is users' decision i think.

                        I see that there is no pre-built binaries but why there is no guide how to do that. Just search the internet and you will see there is no working guide. I like Qt since its the performant at any scale and want to use it with PostgreSql.

                        As you Qt guys, please write a guide for PostgreSql 9/10 with Ndk 21 and above if there is a way. Is it too difficult or not worthy?

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 3 Jun 2021, 19:22 last edited by
                          #12

                          @Hjunior said in Build Postgresql plugin android Version 10:

                          As you Qt guys, please write a guide for PostgreSql 9/10 with Ndk 21 and above if there is a way. Is it too difficult or not worthy?

                          If by that you are saying I am working for the Qt Company, then you are wrong.

                          As for the original guide, it was provided by a user.

                          @Hjunior said in Build Postgresql plugin android Version 10:

                          Exposing the database is bad for you and good for some customers case, and this is not our issue with Qt. That is users' decision i think.

                          The customer might not be aware of all the security implications of exposing a database openly. Easy VS secure, do not chose easy. Your database will get broken into and pilfered.

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

                          H 1 Reply Last reply 3 Jun 2021, 19:37
                          0
                          • S SGaist
                            3 Jun 2021, 19:22

                            @Hjunior said in Build Postgresql plugin android Version 10:

                            As you Qt guys, please write a guide for PostgreSql 9/10 with Ndk 21 and above if there is a way. Is it too difficult or not worthy?

                            If by that you are saying I am working for the Qt Company, then you are wrong.

                            As for the original guide, it was provided by a user.

                            @Hjunior said in Build Postgresql plugin android Version 10:

                            Exposing the database is bad for you and good for some customers case, and this is not our issue with Qt. That is users' decision i think.

                            The customer might not be aware of all the security implications of exposing a database openly. Easy VS secure, do not chose easy. Your database will get broken into and pilfered.

                            H Offline
                            H Offline
                            Hjunior
                            wrote on 3 Jun 2021, 19:37 last edited by
                            #13

                            @SGaist Thanks.

                            Unfortunately we are at the starting point again. Where should i ask for this guide for the official Qt support.

                            J 1 Reply Last reply 4 Jun 2021, 06:27
                            0
                            • H Hjunior
                              3 Jun 2021, 19:37

                              @SGaist Thanks.

                              Unfortunately we are at the starting point again. Where should i ask for this guide for the official Qt support.

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 4 Jun 2021, 06:27 last edited by
                              #14

                              @Hjunior Do you have a commercial Qt license? If you have, then you can ask Qt Company directly for support.
                              Change requests can be filed here: https://bugreports.qt.io/secure/Dashboard.jspa

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

                              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