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.6k 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.
  • SGaistS SGaist

    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 ?

    RovshanR Offline
    RovshanR Offline
    Rovshan
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #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
      • RovshanR Offline
        RovshanR Offline
        Rovshan
        wrote on last edited by
        #9

        I could not find this file

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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
          • RovshanR Offline
            RovshanR Offline
            Rovshan
            wrote on last edited by
            #11

            Ok, I will now reinstall and Qt and NDK

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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
              3
              • RovshanR Offline
                RovshanR Offline
                Rovshan
                wrote on 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
                0
                • RovshanR Rovshan

                  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 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
                  • SGaistS SGaist

                    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 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
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 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