Windows deployment extra files
-
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:- translations folder with 30+ qt_*.qm files
- Qt6QuickControls2FluentWinUI3StyleImpl.dll and other styles
- qmltooling folder with set of inspectors, profilers and debuggers like qmldbg_nativedebugger.dll
- 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:
-
cd /d e:\deploy - deploy folder
-
"d:\QT_install\6.8.3\mingw_64\bin\windeployqt6.exe" --qmldir d:\Qt_workSpace\AppFolder\qmls AppName.exe
-
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:- translations folder with 30+ qt_*.qm files
- Qt6QuickControls2FluentWinUI3StyleImpl.dll and other styles
- qmltooling folder with set of inspectors, profilers and debuggers like qmldbg_nativedebugger.dll
- 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:
-
cd /d e:\deploy - deploy folder
-
"d:\QT_install\6.8.3\mingw_64\bin\windeployqt6.exe" --qmldir d:\Qt_workSpace\AppFolder\qmls AppName.exe
@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:
For instance, provide
--no-translations
to skip the
*.ts
files, if your app is not translatable anyway. -
Why can't I reply in my own topic?
Error
Post content was flagged as spam by Akismet.com