Recompiling ODBC on Android



  • 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
    #include <sql.h>
    ^
    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?



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.