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

In qt6 macdeployqt/windeployqt with -qmldir flag adds extra sql frameworks.

    XMLWordPrintable

    Details

    • Platform/s:
      macOS, Windows

      Description

      In qt6 (same for 6.1.1 and 6.2.0) when any project is deployed using macdeployqt/windeployqt that
      includes -qmldir flag. It will has SQL frameworks included in it.

       
      I have created a default qwidget project. Build Release and then used deploy tool on it. (bug only happens when u add -qmldir!)

      In both cases the same command was run ~/Qt/<VER>/<PLATFORM>/bin/macdeployqt <APP_DIR>/<APP_NAME>.app -qmldir=<QML_DIR>/qml/
      Here is an example of frameworks in the app deployed using qt 5.15.3

      vs qt 6.2.0

      which also print the following errors:

      WARNING: Plugin "libqsqlodbc.dylib" uses private API and is not Mac App store compliant.
      WARNING: Plugin "libqsqlpsql.dylib" uses private API and is not Mac App store compliant.
      ERROR: no file at "/usr/local/opt/libiodbc/lib/libiodbc.2.dylib"
      ERROR: no file at "/Applications/Postgres.app/Contents/Versions/9.6/lib/libpq.5.dylib
      

       

      in case you run the deploy command excluding `-qmldir` SQL files are not produced (it doesn't matter if any qml file are in the project or not):

        Attachments

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

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            lukasz Łukasz Szczesiak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes