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. Qt 5.12.3 Android/Clang & ODBC
QtWS25 Last Chance

Qt 5.12.3 Android/Clang & ODBC

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 2 Posters 744 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.
  • L Offline
    L Offline
    linuxkid
    wrote on last edited by linuxkid
    #1

    Hey all, I'm trying to build the ODBC plugin for Android/Clang, from Windows 10 x64 host.
    I'm using Qt 5.12.3, and in the Qt Command Prompt (cmd + path) I'm using the following configure options:

    configure -xplatform android-clang --disable-rpath -nomake tests -nomake examples -android-ndk C:\Qt\android-ndk-r19c -android-sdk C:\Users\Besta\AppData\Local\Android\Sdk -skip qttranslations -skip qtserialport -no-warnings-are-errors -android-toolchain-version 4.9 -android-ndk-host windows-x86_64 -android-ndk-platform android-28 -sql-odbc -skip qtwebengine -no-opengl -opensource -confirm-license -skip qtdoc -skip qtconnectivity -no-feature-accessibility
    

    However I'm getting the following warning:

    ERROR: Feature 'sql-odbc' was enabled, but the pre-condition 'features.datestring && libs.odbc' failed.
    

    What am I missing?

    EDIT: Appending -v to configure, I get:

    Trying source 0 (type inline) of library odbc ...
      => source failed condition 'config.win32'.
    Trying source 1 (type inline) of library odbc ...
      => source failed condition 'config.darwin'.
    Trying source 2 (type inline) of library odbc ...
    None of [libodbc.so libodbc.a] found in [] and global paths.
      => source produced no result.
    
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you have an ODBC library built 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
      0
      • L Offline
        L Offline
        linuxkid
        wrote on last edited by
        #3

        I havent yet built it, was actually in the process of trying to build unixODBC, but since this is a windows platform, and I need to cross-compile it for Android, I was kind of at a loss..
        What ODBC library would you suggest using?

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

          AFAIK, there's not that many ODBC library for Unix so that one should be good.

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

          L 1 Reply Last reply
          0
          • SGaistS SGaist

            AFAIK, there's not that many ODBC library for Unix so that one should be good.

            L Offline
            L Offline
            linuxkid
            wrote on last edited by
            #5

            @SGaist said in Qt 5.12.3 Android/Clang & ODBC:

            AFAIK, there's not that many ODBC library for Unix so that one should be good.

            Got it, so as far as I understand, it should be build + copy to the qtbase/sqldrivers/odbc folder, and set the name to libodbc.so/.a

            Am I right?

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

              You also need to deploy it within your APK.

              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

              • Login

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