QODBC.dll in static Qt MINGW build
-
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?
-
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.