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. Android 64 bits SQLDrivers/OpenSSL
QtWS25 Last Chance

Android 64 bits SQLDrivers/OpenSSL

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
25 Posts 3 Posters 2.3k Views
  • 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.
  • I Offline
    I Offline
    IRayman
    wrote on 24 May 2019, 17:57 last edited by
    #1

    Hi,

    I'm currently developping an Android app for a school project which need to communicate with an SQL DB and to use TLS connections.

    The fact is that I have SQL drivers for Android 32 bits and OpenSSL drivers for Android 64 bits and I don't manage to compil either SQL drivers for 64 bits or OpenSSL drivers for 32 bits so I can use them both at the same time.

    Can anyone help me, or provide me the .so required ? I have a month left to ending this.

    Thanks in advance,

    IRayman

    P 1 Reply Last reply 24 May 2019, 18:10
    0
    • I IRayman
      24 May 2019, 17:57

      Hi,

      I'm currently developping an Android app for a school project which need to communicate with an SQL DB and to use TLS connections.

      The fact is that I have SQL drivers for Android 32 bits and OpenSSL drivers for Android 64 bits and I don't manage to compil either SQL drivers for 64 bits or OpenSSL drivers for 32 bits so I can use them both at the same time.

      Can anyone help me, or provide me the .so required ? I have a month left to ending this.

      Thanks in advance,

      IRayman

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 24 May 2019, 18:10 last edited by
      #2

      @IRayman

      I don't manage to compil either SQL drivers for 64 bits or OpenSSL drivers for 32 bits

      please show us what the process is that you're using (what sources, build steps, etc) and errors if any you're getting

      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
      • I Offline
        I Offline
        IRayman
        wrote on 24 May 2019, 18:28 last edited by
        #3

        @Pablo-J-Rogina
        Ok, let's take the example of trying to get SQL drivers in 64 bits for Android.

        I'm using those softs : https://postimg.cc/3ycQkCd1
        I have msys2 in mingw64 dir like this : https://postimg.cc/0K13StxY
        I am using those sources : https://postimg.cc/YL7n0hf8

        I don't have the errors in my mind, I'll need to try again to showing them. I'm using my teacher's tutorial which is for Android SQL 32 bits and I'm trying to adapt it to 64 bits. I'm French by the way, so sorry if my English isn't perfect.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 24 May 2019, 18:57 last edited by
          #4

          Hi and welcome to devnet,

          Please show use your teacher's tutorial. That will allow better understanding of how you are trying to achieve things.

          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
          • I Offline
            I Offline
            IRayman
            wrote on 24 May 2019, 19:00 last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • I Offline
              I Offline
              IRayman
              wrote on 24 May 2019, 19:10 last edited by
              #6

              Hi @SGaist and thank you,

              My teacher's tutorial is in French :/ but here it is :
              https://anonfile.com/Y5S8H8s3n1/Tuto_-_Compiler_QMySQL_pour_Android_pdf

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 24 May 2019, 19:14 last edited by
                #7

                Why does that website try to make me open a .dmg file ?

                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
                • I Offline
                  I Offline
                  IRayman
                  wrote on 24 May 2019, 19:21 last edited by
                  #8

                  @SGaist
                  I don't know, I tried it and it's the good file, which is a PDF btw.
                  Give me a website that you trust if you want ? Or maybe you need another format file ?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 24 May 2019, 19:35 last edited by
                    #9

                    Strange... This time it worked properly...

                    First thing, do you have a 64 Qt Android build ?
                    Also, ensure that you are using the NDK recommended in the Qt Android Getting Started guide matching the version you are using.

                    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
                    1
                    • I Offline
                      I Offline
                      IRayman
                      wrote on 24 May 2019, 19:38 last edited by
                      #10

                      @SGaist

                      I'm using Qt 5.12 with NDK r19c and JDK 1.8.

                      I have a 64 Qt Android build which work perfectly.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 24 May 2019, 20:49 last edited by
                        #11

                        Good, then what error are you getting currently ?

                        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
                        • I Offline
                          I Offline
                          IRayman
                          wrote on 25 May 2019, 14:52 last edited by IRayman
                          #12

                          Hey @SGaist,
                          Here is the first error I'm facing with : https://postimg.cc/jnQ695rn
                          Here is the config.log file : https://anonfile.com/v0V2N4senc/config_log

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 25 May 2019, 20:18 last edited by
                            #13

                            Are you sure the path to the compiler is correct ?

                            On a side note, the latest Android NDK switched to clang, you might want to use that compiler.

                            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
                            • I Offline
                              I Offline
                              IRayman
                              wrote on 25 May 2019, 20:30 last edited by
                              #14

                              @SGaist,

                              Yes I would definetely want to use that compiler. If you could help me figure it out how to do it and what is needed to be change in the tutorial I have that would save my life.

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 25 May 2019, 20:40 last edited by
                                #15

                                Change the path you are using for the compiler to point to clang rather than gcc.

                                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
                                • I Offline
                                  I Offline
                                  IRayman
                                  wrote on 25 May 2019, 21:07 last edited by
                                  #16

                                  @SGaist,

                                  Which path on my tutorial do you think I need to change (I didn't went after ./configure --host=$platform_sort --prefix=$SR/usr --with-sysroot=$SR on step Iconv)

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 25 May 2019, 21:13 last edited by
                                    #17

                                    Change the export CC="$BR"gcc to export CC="$BR"clang and the CPP equivalent to point to clang++

                                    But first check in which folder you have clang located.

                                    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
                                    • I Offline
                                      I Offline
                                      IRayman
                                      wrote on 25 May 2019, 21:18 last edited by
                                      #18

                                      @SGaist,

                                      Yes that's what I'm trying to find but I can't find it I don't know why

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on 25 May 2019, 21:27 last edited by
                                        #19

                                        Find what ? The clang executable ? If so, how are you searching it ? What version of the NDK are your using ?

                                        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
                                        • I Offline
                                          I Offline
                                          IRayman
                                          wrote on 25 May 2019, 21:39 last edited by
                                          #20

                                          @SGaist
                                          I found it, i'm using NDK R19C

                                          1 Reply Last reply
                                          0

                                          3/25

                                          24 May 2019, 18:28

                                          topic:navigator.unread, 22
                                          • Login

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