QT 5.1 static Build with MySql support
I need to have a static build of qt with MySql support. I saw many documentations with different steps. I tried few of them, but, still unsuccessful. Can anybody with experience on this matter help me please. My OSs are Windows XP SP3 / Windows 7.
Thanks in advance.
Which tutorial exactly did you follow? What errors did you get?
Thank you for replying. Error says :
undefined reference to 'qt_static_plugin+qsqlmysql()
undefined referebce to 'qt_static_plugin_QMYSQLDriverPlugin()'
collect2,exe: error: ld returned 1 exit status_
Undefined reference is the most common error. You have a declaration but the definition is missing. Have checked "Qt 5.1 documentation for building SQL database drivers":http://qt-project.org/doc/qt-5.1/qtsql/sql-driver.html?
I have done according to that document and the non-static version works fine. The problem arises when i use static compilation.