Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Error while compiling Qt mySQL driver

Error while compiling Qt mySQL driver

Scheduled Pinned Locked Moved Solved C++ Gurus
24 Posts 12 Posters 21.6k 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.
  • C chrabaszcz.patryk

    Hi I had the same problem with qtsqldrivers-config.pri

    I leave it here, maybe it will be helpful

    Go to :
    /Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers
    Run qmake:
    ../../../../../gcc_64/bin/qmake sqldrivers.pro
    After that I got:

    Configure summary:

    Qt Sql:
    DB2 (IBM) .............................. no
    InterBase .............................. no
    MySql .................................. yes
    OCI (Oracle) ........................... no
    ODBC ................................... no
    PostgreSQL ............................. no
    SQLite2 ................................ no
    SQLite ................................. yes
    Using system provided SQLite ......... no
    TDS (Sybase) ........................... no

    Then go to:
    /Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers/mysql
    Run qmake again:
    ../../../../../../gcc_64/bin/qmake mysql.pro
    Run make:
    make
    You will see as a part of an output message that it was compiled and moved into:
    "mv -f libqsqlmysql.so ../plugins/sqldrivers/"

    Y Offline
    Y Offline
    yuzilong
    wrote on last edited by
    #21

    @chrabaszcz.patryk said in Error while compiling Qt mySQL driver:

    Hi I had the same problem with qtsqldrivers-config.pri

    I leave it here, maybe it will be helpful

    Go to :
    /Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers
    Run qmake:
    ../../../../../gcc_64/bin/qmake sqldrivers.pro
    After that I got:

    Configure summary:

    Qt Sql:
    DB2 (IBM) .............................. no
    InterBase .............................. no
    MySql .................................. yes
    OCI (Oracle) ........................... no
    ODBC ................................... no
    PostgreSQL ............................. no
    SQLite2 ................................ no
    SQLite ................................. yes
    Using system provided SQLite ......... no
    TDS (Sybase) ........................... no

    Then go to:
    /Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers/mysql
    Run qmake again:
    ../../../../../../gcc_64/bin/qmake mysql.pro
    Run make:
    make
    You will see as a part of an output message that it was compiled and moved into:
    "mv -f libqsqlmysql.so ../plugins/sqldrivers/"

    I try to solve this problem for the whole night,your solution saved me.Solve the problem perfectly. Thanks very much.Thanks .

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BeMind
      wrote on last edited by
      #22

      @chrabaszcz-patryk

      Hi I had the same problem with qtsqldrivers-config.pri

      I leave it here, maybe it will be helpful

      Go to :
      /Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers
      Run qmake:
      ../../../../../gcc_64/bin/qmake sqldrivers.pro
      After that I got:

      Configure summary:

      Qt Sql:
      DB2 (IBM) .............................. no
      InterBase .............................. no
      MySql .................................. yes
      OCI (Oracle) ........................... no
      ODBC ................................... no
      PostgreSQL ............................. no
      SQLite2 ................................ no
      SQLite ................................. yes
      Using system provided SQLite ......... no
      TDS (Sybase) ........................... no

      Then go to:
      /Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers/mysql
      Run qmake again:
      ../../../../../../gcc_64/bin/qmake mysql.pro
      Run make:
      make
      You will see as a part of an output message that it was compiled and moved into:
      "mv -f libqsqlmysql.so ../plugins/sqldrivers/"

      I had this problem when added Qt 5.13.0 using online installation to the Qt 5.12 i have already installed i thought the installation was wrong until i came across your solution. Thanks you very much.

      1 Reply Last reply
      0
      • C chrabaszcz.patryk

        Hi I had the same problem with qtsqldrivers-config.pri

        I leave it here, maybe it will be helpful

        Go to :
        /Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers
        Run qmake:
        ../../../../../gcc_64/bin/qmake sqldrivers.pro
        After that I got:

        Configure summary:

        Qt Sql:
        DB2 (IBM) .............................. no
        InterBase .............................. no
        MySql .................................. yes
        OCI (Oracle) ........................... no
        ODBC ................................... no
        PostgreSQL ............................. no
        SQLite2 ................................ no
        SQLite ................................. yes
        Using system provided SQLite ......... no
        TDS (Sybase) ........................... no

        Then go to:
        /Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers/mysql
        Run qmake again:
        ../../../../../../gcc_64/bin/qmake mysql.pro
        Run make:
        make
        You will see as a part of an output message that it was compiled and moved into:
        "mv -f libqsqlmysql.so ../plugins/sqldrivers/"

        C Offline
        C Offline
        Cocojambo
        wrote on last edited by
        #23

        @chrabaszcz-patryk Registered here to thank you for your useful message :)

        This problem is still actual in 5.15.0. Solved it as you mentioned.

        1 Reply Last reply
        0
        • C chrabaszcz.patryk

          Hi I had the same problem with qtsqldrivers-config.pri

          I leave it here, maybe it will be helpful

          Go to :
          /Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers
          Run qmake:
          ../../../../../gcc_64/bin/qmake sqldrivers.pro
          After that I got:

          Configure summary:

          Qt Sql:
          DB2 (IBM) .............................. no
          InterBase .............................. no
          MySql .................................. yes
          OCI (Oracle) ........................... no
          ODBC ................................... no
          PostgreSQL ............................. no
          SQLite2 ................................ no
          SQLite ................................. yes
          Using system provided SQLite ......... no
          TDS (Sybase) ........................... no

          Then go to:
          /Qt_new/5.9.1/Src/qtbase/src/plugins/sqldrivers/mysql
          Run qmake again:
          ../../../../../../gcc_64/bin/qmake mysql.pro
          Run make:
          make
          You will see as a part of an output message that it was compiled and moved into:
          "mv -f libqsqlmysql.so ../plugins/sqldrivers/"

          C Offline
          C Offline
          caha11
          wrote on last edited by
          #24

          @chrabaszcz-patryk Confirming this works, was trying to install ODBC and had the same error as OP. Did the suggested steps by @chrabaszcz-patryk and it worked on Qt 5.11.3 on Rpi 4B.

          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