Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Recompiling ODBC on Android
Verhoher last edited by
Hello, I'm very new to QT,and been struggling with this issue and couldn't resolve it on my own or find a solution googling it. Please tell me if I have misunderstood something entirely.
I want to rebuild the QDBC driver with android kit (Android for armeabi-v7a (GCC 4.9, Qt 5.6.0)) to use the driver in my application, it builds fine when I build it under, Desktop Qt Qt 5.6.0 MSVC2013 64bit, but throws an error
error: sql.h: No such file or directory
when building with android kit. Could someone please explain what is the difference between the builds, why one locates the header and the rest of the files, and one doesn't?
hskoglund last edited by
Hi, on Windows ODBC is built-in, and when you installed your MSVC2013 the sql.h file got installed as well. On non-Windows systems you have to first install ODBC.
Don't know so much about Android, but perhaps it's the same as on Ubuntu and OSX, where your first install unixODBC then to obtain the sql.h file you install the dev package for unixODBC, e.g.:
sudo apt-get install unixodbc-dev