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. QT 5.1 static Build with MySql support
Forum Updated to NodeBB v4.3 + New Features

QT 5.1 static Build with MySql support

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 2.2k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    asankaan
    wrote on 25 Sept 2013, 15:49 last edited by
    #1

    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

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on 25 Sept 2013, 15:57 last edited by
      #2

      Which tutorial exactly did you follow? What errors did you get?

      http://anavi.org/

      1 Reply Last reply
      0
      • A Offline
        A Offline
        asankaan
        wrote on 25 Sept 2013, 16:39 last edited by
        #3

        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
        _

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on 25 Sept 2013, 16:47 last edited by
          #4

          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?

          http://anavi.org/

          1 Reply Last reply
          0
          • A Offline
            A Offline
            asankaan
            wrote on 26 Sept 2013, 09:37 last edited by
            #5

            I have done according to that document and the non-static version works fine. The problem arises when i use static compilation.

            1 Reply Last reply
            0

            2/5

            25 Sept 2013, 15:57

            • Login

            • Login or register to search.
            2 out of 5
            • First post
              2/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved