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 compile qt mysql driver for android?
Forum Updated to NodeBB v4.3 + New Features

How to compile qt mysql driver for android?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
10 Posts 4 Posters 3.9k 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.
  • P Offline
    P Offline
    Pyroxar
    wrote on last edited by
    #1

    I want create app for android system which connect with database.
    How to compile qt mysql driver for android?

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

      Hi,

      Please search the forum a bit. This question has been asked many times already.

      See this wiki entry.

      Also note that there might be security implication and that you might want to rather implement a REST interface to talk with your database.

      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
      • P Offline
        P Offline
        Pyroxar
        wrote on last edited by
        #3

        Thanks for your anwser

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tianlang
          wrote on last edited by
          #4

          Maybe this is not you want.
          I be opposed to this network: Android [MySQL client] ---> MySQL Server.
          I will use this network: Android [HTTP Client] --->Restful API [Python Server] ---> MySQL Server. Everything will be over HTTP or WebSocket, so mobie apps will just need HTTP Client and WebSocket Client, which has already supportd in Android and IOS.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Pyroxar
            wrote on last edited by
            #5

            Do you mean that i should use REST API?
            My app -> PHP script -> MySQL database

            T 1 Reply Last reply
            0
            • P Pyroxar

              Do you mean that i should use REST API?
              My app -> PHP script -> MySQL database

              T Offline
              T Offline
              tianlang
              wrote on last edited by
              #6

              @Pyroxar Very good.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Pyroxar
                wrote on last edited by
                #7

                I must create php script and connect with server by rest api, like this:
                https://askubuntu.com/questions/544842/how-to-get-data-from-rest-api-with-qml-for-ubuntu-touch-app
                ?
                AJAX etc?

                1 Reply Last reply
                0
                • GTDevG Offline
                  GTDevG Offline
                  GTDev
                  wrote on last edited by
                  #8

                  Hi @Pyroxar,

                  you can easily access REST APIs from your Javascript/QML code with the XmlHttpRequest Element.
                  V-Play Engine also provides some open-source examples (e.g. Twitter demo, PropertyCross demo) that use http-requests to fetch data from the twitter or property-cross API:
                  alt text

                  Cheers,
                  GT

                  Senior Developer at Felgo - https://felgo.com/qt

                  Develop mobile Apps for iOS & Android with Qt
                  Felgo is an official Qt Technology Partner

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Pyroxar
                    wrote on last edited by Pyroxar
                    #9

                    @GTDev
                    I wanted use XmlHttpRequest Element.
                    but i have:
                    QSslSocket: cannot resolve SSLv2_server_method
                    on my ubuntu and android app.

                    If i will use V-Play i will nnot have an error?
                    https://forum.qt.io/topic/78345/qsslsocket-cannot-resolve-sslv2_server_method-ubuntu-and-android

                    1 Reply Last reply
                    0
                    • GTDevG Offline
                      GTDevG Offline
                      GTDev
                      wrote on last edited by GTDev
                      #10

                      You are probably missing required SSL libraries to make https:// calls (you can verify this by testing if XMLHttpRequest works with URLs that do not use https).

                      SSL on linux should work right away if you make sure the SSL libs are installed.

                      For Android, it is currently needed to manually package the SSL library as described here: http://doc.qt.io/qt-5/opensslsupport.html
                      With V-Play you can avoid having to build and provide SSL for Android, V-Play has SSL already bundled since version 2.10.0.

                      Cheers,
                      GT

                      Senior Developer at Felgo - https://felgo.com/qt

                      Develop mobile Apps for iOS & Android with Qt
                      Felgo is an official Qt Technology Partner

                      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