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. How to install MySQL on Android?
Forum Updated to NodeBB v4.3 + New Features

How to install MySQL on Android?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
16 Posts 4 Posters 2.5k Views 2 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.
  • R Offline
    R Offline
    Rovshan
    wrote on 1 Aug 2018, 12:49 last edited by Rovshan 8 Jan 2018, 12:50
    #1

    I did not find any person who would use this article https://wiki.qt.io/Build_Qt_5_MySQL_Plugin_for_Android
    was able to launch on the Android MySQL. Someone can describe the whole process in detail. Thank you very much to everyone who will help)
    my OS Windows , Qt5.10.1

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 Aug 2018, 06:18 last edited by
      #2

      Hi,

      What exact error do you get ?
      What version of MariaDB are you using ?
      Are you aware that it is not recommended to access a database directly over internet ?

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

      R 1 Reply Last reply 3 Aug 2018, 09:16
      1
      • R Offline
        R Offline
        Rovshan
        wrote on 2 Aug 2018, 06:53 last edited by Rovshan 8 Feb 2018, 09:09
        #3

        Hello. I know that this is not recommended.

        I have installed:
        OpenSSL - openssl-1.0.2j-fips-x86_64.
        MariaDB - mariadb-connector-odbc-3.0.5-win32
        MinGW - MSYS
        Qt - 5.10.1v
        OS - Windows 7 x32/x86
        Using 1 Option perform the following actions
        https://wiki.qt.io/Build_Qt_5_MySQL_Plugin_for_Android
        0_1533191923982_13.png

        ERROR: sh: ./Configure: No such file or directory
        Way to arm-linux-androideabi-
        0_1533192415029_13333.png
        Way to arch-arm-
        0_1533192513766_133334.png
        Way to OpenSSL
        0_1533192614590_133.png

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 2 Aug 2018, 06:59 last edited by
          #4

          From the looks of it, you only got the binary packages which matches your Desktop machine. Is that the case ?

          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
          • R Offline
            R Offline
            Rovshan
            wrote on 2 Aug 2018, 07:03 last edited by
            #5

            Yes. How i understood it's for Windows 32-86

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 2 Aug 2018, 19:48 last edited by
              #6

              You need to cross-compile these dependencies for Android.

              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
              • S SGaist
                2 Aug 2018, 06:18

                Hi,

                What exact error do you get ?
                What version of MariaDB are you using ?
                Are you aware that it is not recommended to access a database directly over internet ?

                R Offline
                R Offline
                Rovshan
                wrote on 3 Aug 2018, 09:16 last edited by
                #7

                @SGaist
                I managed to do it

                RANLIB = "$ BR" ranlib CC = "$ BR" gcc . / Configure android - armv7 - prefix = $ SR / usr

                But, when i do

                ANDROID_DEV = $ SR / usr make

                I get an error.
                0_1533287756916_p1.png

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 3 Aug 2018, 21:05 last edited by SGaist 8 Jun 2018, 20:17
                  #8

                  Where is stdlib.h in your computer ?

                  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
                  • R Offline
                    R Offline
                    Rovshan
                    wrote on 6 Aug 2018, 12:08 last edited by
                    #9

                    I could not find this file

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 6 Aug 2018, 20:23 last edited by
                      #10

                      That might be something coming from your ndk or rather how it is used.

                      Currently, Qt recommends an older version, you might want to try it. See the Android Getting Started guide in Qt's documentation.

                      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
                      • R Offline
                        R Offline
                        Rovshan
                        wrote on 7 Aug 2018, 09:46 last edited by
                        #11

                        Ok, I will now reinstall and Qt and NDK

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 7 Aug 2018, 10:14 last edited by
                          #12

                          No need to re-install Qt, just get the NDK, you can have several installed if you want as long as you use the right one.

                          Just be aware that the Android folks have a tendency to change stuff from one version of the NDK to the other that might be breaking stuff in other projects.

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

                          C 1 Reply Last reply 13 Dec 2018, 10:25
                          3
                          • R Offline
                            R Offline
                            Rovshan
                            wrote on 22 Aug 2018, 08:18 last edited by
                            #13

                            OS Windows 7 x32/x86
                            Qt 5.10

                            I install:
                            1). NDK 10e
                            2). JDK 8, because the JDK output errors
                            I install LIBICONV and OPENSSL
                            But when i wanna do

                            bzr branch lp:mariadb-native-client
                            cd maria-native-client

                            hen the command line displays the following
                            0_1534925714021_RdDdQ3sDXEc.jpg

                            Article: https://wiki.qt.io/Build_Qt_5_MySQL_Plugin_for_Android

                            jsulmJ 1 Reply Last reply 22 Aug 2018, 10:47
                            0
                            • R Rovshan
                              22 Aug 2018, 08:18

                              OS Windows 7 x32/x86
                              Qt 5.10

                              I install:
                              1). NDK 10e
                              2). JDK 8, because the JDK output errors
                              I install LIBICONV and OPENSSL
                              But when i wanna do

                              bzr branch lp:mariadb-native-client
                              cd maria-native-client

                              hen the command line displays the following
                              0_1534925714021_RdDdQ3sDXEc.jpg

                              Article: https://wiki.qt.io/Build_Qt_5_MySQL_Plugin_for_Android

                              jsulmJ Offline
                              jsulmJ Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 22 Aug 2018, 10:47 last edited by
                              #14

                              @Rovshan Looks like you need to install http://bazaar.canonical.com/en/ first

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

                              1 Reply Last reply
                              2
                              • S SGaist
                                7 Aug 2018, 10:14

                                No need to re-install Qt, just get the NDK, you can have several installed if you want as long as you use the right one.

                                Just be aware that the Android folks have a tendency to change stuff from one version of the NDK to the other that might be breaking stuff in other projects.

                                C Offline
                                C Offline
                                cawlfj
                                wrote on 13 Dec 2018, 10:25 last edited by
                                #15

                                @SGaist i don't know really , why qt does't give a clear doc to describe how to build mysql static driver step by step for android and windows. (vs2017 or mingw)
                                i googled long time still can't get a success resolve.

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 13 Dec 2018, 16:53 last edited by
                                  #16

                                  Because their's no reason for that on android as is it's no an officially supported platform by the MySQL folks.
                                  As for Windows, there are already instructions. As for static, it's always the same: if you want full static builds, provide full static dependencies. And also be prepared to abide by the LPGL rules.

                                  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

                                  • Login

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