QT 5.1 static Build with MySql support
-
wrote on 25 Sept 2013, 15:49 last edited by
Hi,
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.
Asanka
-
wrote on 25 Sept 2013, 15:57 last edited by
Which tutorial exactly did you follow? What errors did you get?
-
wrote on 25 Sept 2013, 16:39 last edited by
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_ -
wrote on 25 Sept 2013, 16:47 last edited by
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?
-
wrote on 26 Sept 2013, 09:37 last edited by
I have done according to that document and the non-static version works fine. The problem arises when i use static compilation.
4/5