Qt 5.12.3 Android/Clang & ODBC
Unsolved
Mobile and Embedded
-
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.
-
Hi,
Do you have an ODBC library built for Android ?
-
AFAIK, there's not that many ODBC library for Unix so that one should be good.
-
@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?
-
You also need to deploy it within your APK.