Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62078

Unbale to build QMySQL Plugin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.9.1
    • Core: Plugins, SQL Support
    • None
    • * Linux Mint 18.2 x64 xfce (Ubuntu 16.04)
      * MySQL 5.7.18

    Description

      I followed these steps for building QMySQL Plugin as mentioned in this post but it seems there is something wrong with Qt 5.9.1!

      1. install the development versions of the packages found above (libssl-dev, mysql-client-dev or similar).
      2. run the MaintenanceTool from your Qt installation, and be sure to select to install Qt's source code too.
      3. Go in QTDIR/5.9.1/Src/qtbase/src/plugins/sqldrivers/mysql/.
      4. Run the right qmake, i.e. the one coming from that installation of Qt (not the system wide one or similar). Best way to be sure is providing the full path to it: QTDIR/5.9.1/gcc_64/bin/qmake.
      5. Run make. Hopefully this will just work™; if it complains about some missing libraries, install them and rerun make.
      6. This should now have produced a new libqsqlmysql.so plugin; overwrite the old one with this new one.

      Log
      $ /home/mogla/.Qt/5.9.1/gcc_64/bin/qmake Cannot read /home/mogla/.Qt/5.9.1/Src/qtbase/src/plugins/sqldrivers/qtsqldrivers-config.pri: No such file or directory $ ls /home/mogla/.Qt/5.9.1/Src/qtbase/src/plugins/sqldrivers/ configure.json configure.pri db2 ibase lib mkspecs mysql oci odbc plugins psql qsqldriverbase.pri README sqldrivers.pro sqlite sqlite2 tds $ 

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              laknoll Lars Knoll
              mbnoimi_ M. Bashir Al-Noimi
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes