Results 1 to 2 of 2

Thread: Building odbc driver in Qt 5.0.1

  1. #1
    Join Date
    Nov 2012
    Qt products
    MacOS X Unix/X11 Windows

    Unhappy Building odbc driver in Qt 5.0.1

    Hi guys,

    I am using Windows and installed Qt 5.0.1. I need to use qodbc but found out that the only available driver is qsqlite so I downloaded the qtbase source (qtbase-opensource-src-5.0.1) for me to compile the and generate the dll for odbc.

    I put the qtbase-opensource-src-5.0.1 in C:/Qt/Qt5.0.1/5.0.1. I opened the odbc project file located at C:/Qt/Qt5.0.1/5.0.1/src/plugins/sqldrivers/odbc.

    The build directory is at:

    I was able to build the odbc project without any issue. But then, no odbc.dll was created. Should I expect it to be in the build directory?

    When I checked the build directory, only the following files are in there:
    - Makefile
    - Makefile.Debug
    - Makefile.Release
    - .moc/debug_shared/main.moc
    - .moc/debug_shared/moc_qsql_odbc.cpp
    - .moc/release_shared/main.moc
    - .moc/release_shared/moc_qsql_odbc.cpp
    - .obj/debug_shared/main.o
    - .obj/debug_shared/moc_qsql_odbc.o
    - .obj/debug_shared/qsql_odbc.o
    - .obj/release_shared/main.o
    - .obj/release_shared/moc_qsql_odbc.o
    - .obj/release_shared/qsql_odbc.o

    Should I put the source file somewhere else?

    I hope someone can help me on this.


  2. #2
    Join Date
    Sep 2012
    Iran, Tehran
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4 Qt5

    Default Re: Building odbc driver in Qt 5.0.1

    I've never tried this way, i.e getting source code separately. I've Just compiled from
    C:\Qt\Qt5.0.1\5.0.1\Src\qtbase\src\plugins\sqldriv ers\odbc and the plugin was created under

    Just a guess, check C:\Qt\Qt5.0.1\5.0.1\qtbase-opensource-src-5.0.1\plugins\sqldrivers

    Anyway you can search for a dll named qsqlodbc.dll
    Last edited by Ashkan_s; 25th March 2013 at 16:53.

Similar Threads

  1. Deploying QT App using ODBC driver
    By AlphaWolfXV in forum Installation and Deployment
    Replies: 7
    Last Post: 5th December 2014, 14:19
  2. Replies: 1
    Last Post: 20th March 2013, 19:25
  3. Read blob fields from a database with the odbc driver
    By Andrewgaven in forum Qt Programming
    Replies: 0
    Last Post: 14th January 2013, 03:40
  4. Slow ODBC driver or programming error?
    By TorAn in forum Qt Programming
    Replies: 9
    Last Post: 13th November 2011, 23:31
  5. source code for odbc driver or MySql driver in arm-embedded-linux
    By sattu in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 24th January 2011, 11:11

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.