Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. arg `EXCLUDE_PLUGINS` do not work for `qt_generate_deploy_app_script` command for qt 6.11.0
Qt 6.11 is out! See what's new in the release blog

arg `EXCLUDE_PLUGINS` do not work for `qt_generate_deploy_app_script` command for qt 6.11.0

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 440 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.
  • F Offline
    F Offline
    Fang NotFish
    wrote on last edited by
    #1

    my cmake scripts:

    qt_generate_deploy_app_script(
        TARGET demo-app 
        OUTPUT_SCRIPT deploy_script
        NO_UNSUPPORTED_PLATFORM_ERROR
        EXCLUDE_PLUGINS "qtpassthrucanbus;qttinycanbus;qtvirtualcanbus;qtsocketcanbus;qgif;qtga;qtiff;qwbmp;qwebp"
        NO_TRANSLATIONS
    )
    install(SCRIPT ${deploy_script})
    

    During the cmake install, I found EXCLUDE_PLUGINS do not works, the output still got the plugins which I DO NOT WANT.

    At the end, I found the implementation of cmake function _qt_internal_get_qt_plugins_to_deploy got typo, miss spell arg_EXCLUDED as arg_EXCLUDE. It roughly located at cmake/Qt6Core/Qt6CoreDeploySupport.cmake:388.
    Make it works, should change :
    _qt_internal_plugin_file_path_match(excluded "${file_path}" "${arg_EXCLUDED}")
    into
    _qt_internal_plugin_file_path_match(excluded "${file_path}" "${arg_EXCLUDE}")

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Thx for the detailed analysis, this indeed looks like a bug. I've created one here: https://qt-project.atlassian.net/browse/QTBUG-145874

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Fixed in Qt dev, integration for Qt 6.11 is on the way

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        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