Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QODBC.dll in static Qt MINGW build
QtWS25 Last Chance

QODBC.dll in static Qt MINGW build

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.4k 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.
  • H Offline
    H Offline
    hBovine
    wrote on last edited by
    #1

    I´m developing an application on windows that is trying to read info from a Firebird database.

    I used "this tutorial on making a static build of qt using MinGW":http://qt-project.org/wiki/How-to-build-a-static-Qt-for-Windows-MinGW so I could compile it in a standalone .exe

    I still have the dynamic environment for faster debugging. Using it, my software can access the database just fine.
    But using the static environment, it generates the infamous "driver not loaded driver not loaded" error.

    I found several references to "this article that show how to build qodbc drivers":http://qt-project.org/doc/qt-4.8/sql-driver.html#how-to-build-the-odbc-plugin-on-windows, but I already have the qodbc.dll.

    I think I just need to include it in the static environment, but I´m really lost on how to it, or even if it´s possible.

    Does anyone know how to do, or what should I be searching?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      IIRC, since you are using a static build you can't mix it with dynamic plugins. The simplest way would be to have the odbc driver built in. Add -qt-sql-qodbc when you call configure.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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