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. Windows deployment extra files
Forum Updated to NodeBB v4.3 + New Features

Windows deployment extra files

Scheduled Pinned Locked Moved Unsolved General and Desktop
windeployqtdeployment
4 Posts 2 Posters 124 Views 1 Watching
  • 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.
  • Z Offline
    Z Offline
    zvoopz
    wrote last edited by
    #1

    Hello, please help me with my issue.

    Recently for Windows deployment I used simple and easy to use LibraryCollector application.
    It runs Qt6.1.2_MSVC2019_64bit_mingw73_32.js script which scans dependencies of my running within Qt Creator app and copies only necessary modules to deploy folder.

    As soon as I migrated both to QML and Qt 6.8.3 with MSVC2022 compiler, LibraryCollector has become useless in deploying. It might be outdated either because of Qt or MSVC version mismatch or QML. It still copies some dlls but gives error message. Executing the app from deploy folder I see it in Windows Task Manager but my app does not appear on the screen and I cannot use it.

    I have successfully deployed my app with windeployqt6.exe but it copies a bunch of unneeded modules I never used in development.
    For example:

    1. translations folder with 30+ qt_*.qm files
    2. Qt6QuickControls2FluentWinUI3StyleImpl.dll and other styles
    3. qmltooling folder with set of inspectors, profilers and debuggers like qmldbg_nativedebugger.dll
    4. I don`t use 3D but have a set of dlls like Qt6Quick3DUtils.dll and opengl32sw.dll

    Now I have 100 MB app folder istead of 25MB that I had using Qt Widget based app.
    Can you please explain how to use windeployqt to collect only necessary dlls with no extra files "just in case"?

    I used windeployqt6 in command line as follows

    Cmd.exe:

    1. cd /d e:\deploy - deploy folder

    2. "d:\QT_install\6.8.3\mingw_64\bin\windeployqt6.exe" --qmldir d:\Qt_workSpace\AppFolder\qmls AppName.exe

    Pl45m4P 1 Reply Last reply
    0
    • Z zvoopz

      Hello, please help me with my issue.

      Recently for Windows deployment I used simple and easy to use LibraryCollector application.
      It runs Qt6.1.2_MSVC2019_64bit_mingw73_32.js script which scans dependencies of my running within Qt Creator app and copies only necessary modules to deploy folder.

      As soon as I migrated both to QML and Qt 6.8.3 with MSVC2022 compiler, LibraryCollector has become useless in deploying. It might be outdated either because of Qt or MSVC version mismatch or QML. It still copies some dlls but gives error message. Executing the app from deploy folder I see it in Windows Task Manager but my app does not appear on the screen and I cannot use it.

      I have successfully deployed my app with windeployqt6.exe but it copies a bunch of unneeded modules I never used in development.
      For example:

      1. translations folder with 30+ qt_*.qm files
      2. Qt6QuickControls2FluentWinUI3StyleImpl.dll and other styles
      3. qmltooling folder with set of inspectors, profilers and debuggers like qmldbg_nativedebugger.dll
      4. I don`t use 3D but have a set of dlls like Qt6Quick3DUtils.dll and opengl32sw.dll

      Now I have 100 MB app folder istead of 25MB that I had using Qt Widget based app.
      Can you please explain how to use windeployqt to collect only necessary dlls with no extra files "just in case"?

      I used windeployqt6 in command line as follows

      Cmd.exe:

      1. cd /d e:\deploy - deploy folder

      2. "d:\QT_install\6.8.3\mingw_64\bin\windeployqt6.exe" --qmldir d:\Qt_workSpace\AppFolder\qmls AppName.exe

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote last edited by Pl45m4
      #2

      @zvoopz said in Windows deployment extra files:

      Can you please explain how to use windeployqt to collect only necessary dlls with no extra files "just in case"?

      All options can be seen using the

      windeployqt.exe [-? | -h | --help]
      

      command, or can be found here:

      • https://doc.qt.io/qt-6/windows-deployment.html#the-windows-deployment-tool

      For instance, provide

      --no-translations
      

      to skip the *.ts files, if your app is not translatable anyway.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zvoopz
        wrote last edited by
        #3

        Why can't I reply in my own topic?

        Error
        Post content was flagged as spam by Akismet.com

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zvoopz
          wrote last edited by
          #4

          My app is translatable to a single language so far, not 31 as qtdeployer suggests. Anyway no options to skip collecting all available dlls "just in case" to deploy folder are available in documentations.

          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