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. Recompiling ODBC on Android
Forum Updated to NodeBB v4.3 + New Features

Recompiling ODBC on Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 1.0k 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.
  • VerhoherV Offline
    VerhoherV Offline
    Verhoher
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #2

      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

      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