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

add support for MariaDB LGPL client library

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15.0 Alpha
    • 5.11.2
    • Build System, SQL Support
    • None
    • Kubuntu 18.04.1 LTS
      and
      Windows 10 + Visual Studio 2017 Community
    • Linux/X11, Windows
    • b3f94eba6d4a329b5c64c7fb60ba33e3a8df301e

    Description

      I tried to compile Qt 5.11.2 with MariaDB LGPL client library on both Windows 10 with Visual Studio 2017 and Kubuntu Linux (18.04.1 LTS):

      ./configure -debug-and-release -opensource -confirm-license -nomake tests ^
       -openssl -plugin-sql-mysql -plugin-sql-odbc -qt-libpng -qt-libjpeg ^
       -opengl desktop -system-proxies ^
       -no-compile-examples -prefix C:\Qt64\5.11.2\qtbase

      output:

      ...
      Qt PrintSupport:
       CUPS ................................... no
      Qt Sql:
       DB2 (IBM) .............................. no
       InterBase .............................. no
       MySql .................................. no
       OCI (Oracle) ........................... no
       ODBC ................................... yes
       PostgreSQL ............................. no
       SQLite2 ................................ no
       SQLite ................................. yes
       Using system provided SQLite ......... no
       TDS (Sybase) ........................... no
      Qt Testlib:
       Tester for item models ................. yes
      Qt SerialBus:
      ...

      On LInux ( Kubuntu 18.04.1 LTS ) - I tried

       

       apt-get install mariadb-server mariadb-client

      and build it with and without -I and -L tags:

      -I /usr/local/include/mariadb -L /usr/local/lib/mariadb -lmariadb

      as well as various other tries and find / - name mariadb searches on the command line.

       

      But also with linux, this build will fail.

      ./configure -opensource -confirm-license \
                  -openssl -plugin-sql-mysql -plugin-sql-odbc \
                  -qt-libpng -qt-libjpeg \
                  -opengl desktop -system-proxies \
       	    -prefix /usr/local/Qt64/5.11.2/qtbase

      It works well when you install the mysql-client

      apt install libmysql++-dev libmysqlclient-dev \ 
                  unixodbc-dev unixodbc-bin

       

      Attachments

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              jacknob Lars Engelhard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes