.exe file is not opening
-
@J-Hilk Are you mentioning about this directory,
"qrc:/resources/main.qml"
I don't want to mention any specific directory because I want to deploy in various target systems. That's why I preferred this one over local directory
@Vijaykarthikeyan you misunderstand, the windeployqt tool needs to know where your own qml files are so it can parse them, and according to the imports used, copy the needed dlls/modules over.
if you don't specify your qml folder via
--qmldir
that part of the deployment will be missing.the tool will NOT copy any of your QML files over
-
@Vijaykarthikeyan you misunderstand, the windeployqt tool needs to know where your own qml files are so it can parse them, and according to the imports used, copy the needed dlls/modules over.
if you don't specify your qml folder via
--qmldir
that part of the deployment will be missing.the tool will NOT copy any of your QML files over
wrote on 4 Sept 2023, 07:02 last edited by@J-Hilk Somewhat understandable.. but still confused.. I understand that i have to include --qmldir <path/to/qml>
Can you show me some minimal example..please,sir
-
@J-Hilk Somewhat understandable.. but still confused.. I understand that i have to include --qmldir <path/to/qml>
Can you show me some minimal example..please,sir
@Vijaykarthikeyan Not sure what example you need?
You simply add one additional parameter to windeployqt as explained in the documentation (https://doc.qt.io/qt-6/windows-deployment.html):
"--qmldir <directory> Scan for QML-imports starting from directory." -
@Vijaykarthikeyan Not sure what example you need?
You simply add one additional parameter to windeployqt as explained in the documentation (https://doc.qt.io/qt-6/windows-deployment.html):
"--qmldir <directory> Scan for QML-imports starting from directory."wrote on 4 Sept 2023, 08:11 last edited byThis post is deleted! -
@Vijaykarthikeyan Not sure what example you need?
You simply add one additional parameter to windeployqt as explained in the documentation (https://doc.qt.io/qt-6/windows-deployment.html):
"--qmldir <directory> Scan for QML-imports starting from directory."wrote on 4 Sept 2023, 08:17 last edited by@jsulm I'm succesfully executed that command line : windeployqt --qmldir <path to qml directory in qt version> <bin_file>.exe..
it is successfully scanned without any error:
Updating tr.pak.
Updating uk.pak.
Updating vi.pak.
Updating zh-CN.pak.
Updating zh-TW.pak.C:\Users\hp\build-incline2-Desktop_Qt_5_15_2_MSVC2019_64bit-Release\release>
but,then i try to run the.exe file,it is again not running
-
@jsulm I'm succesfully executed that command line : windeployqt --qmldir <path to qml directory in qt version> <bin_file>.exe..
it is successfully scanned without any error:
Updating tr.pak.
Updating uk.pak.
Updating vi.pak.
Updating zh-CN.pak.
Updating zh-TW.pak.C:\Users\hp\build-incline2-Desktop_Qt_5_15_2_MSVC2019_64bit-Release\release>
but,then i try to run the.exe file,it is again not running
@Vijaykarthikeyan said in .exe file is not opening:
it is again not running
Same issue? Something else?
-
@Vijaykarthikeyan said in .exe file is not opening:
it is again not running
Same issue? Something else?
wrote on 4 Sept 2023, 09:29 last edited by Vijaykarthikeyan 9 Apr 2023, 12:12@jsulm same issue.
after running the command in corresponding directory like: windeployqt.exe --qmldir <path/to/qml library> <file_name.exe> ..it is scanned and updated allthe required libraries
when running that project's .exe file.,it is showing showMaximized,widgets.dll,webengine.dll,qt5core.dll,webenignecore.dll is not located in dll
all the requires libraries are updated but it shows error like this:
Is that any wrong with my command?
-
@jsulm same issue.
after running the command in corresponding directory like: windeployqt.exe --qmldir <path/to/qml library> <file_name.exe> ..it is scanned and updated allthe required libraries
when running that project's .exe file.,it is showing showMaximized,widgets.dll,webengine.dll,qt5core.dll,webenignecore.dll is not located in dll
all the requires libraries are updated but it shows error like this:
Is that any wrong with my command?
wrote on 9 Sept 2023, 21:35 last edited by@Vijaykarthikeyan said in .exe file is not opening:
windeployqt.exe --qmldir <path/to/qml library> <file_name.exe> --compiler-runtime
If you use Qt6 you need to use windeployqt6.exe instead of windeployqt.exe and you need to add --compiler-runtime to copy the missing compiler files
To sum it all up, I usually create a folder were I copy only the executable file, cd in to that folder and run the windeployqt6 from there:
cd D:\qtprojets\MyAppDeployFolder
C:\QtOpensourse\6.5.0\mingw_64\bin\windeployqt6.exe --qmldir D:\qtprojets\MyApp D:\qtprojets\MyAppDeployFolder\MyApp.exe --compiler-runtime
If you have several Qt versions, you should use the same windeployqt6.exe version of the compiled exe file
-
@Vijaykarthikeyan said in .exe file is not opening:
windeployqt.exe --qmldir <path/to/qml library> <file_name.exe> --compiler-runtime
If you use Qt6 you need to use windeployqt6.exe instead of windeployqt.exe and you need to add --compiler-runtime to copy the missing compiler files
To sum it all up, I usually create a folder were I copy only the executable file, cd in to that folder and run the windeployqt6 from there:
cd D:\qtprojets\MyAppDeployFolder
C:\QtOpensourse\6.5.0\mingw_64\bin\windeployqt6.exe --qmldir D:\qtprojets\MyApp D:\qtprojets\MyAppDeployFolder\MyApp.exe --compiler-runtime
If you have several Qt versions, you should use the same windeployqt6.exe version of the compiled exe file
wrote on 14 Sept 2023, 10:30 last edited by@johngod I'm using 5.15.2
-
@johngod I'm using 5.15.2
wrote on 15 Sept 2023, 05:28 last edited by@Vijaykarthikeyan Did it work ? If so, please mark the this as solved.
-
@Vijaykarthikeyan Did it work ? If so, please mark the this as solved.
wrote on 19 Sept 2023, 06:20 last edited by@johngod I'm using 5.15.2 version. I've added --no-compiler-runtime at the end..
My command is like this one: C:\Qt\5.15.2\msvc2019_64\bin>windeployqt.exe --qmldir C:\Users\hp\build-incline2-Desktop_Qt_5_15_2_MSVC2019_64bit-Release\exe --no-compiler-runtime
the bit versions are correct and correct directory..
but it is not importing any libraries in that exe folder..still get 4 error messages..Please help me to sort it out.
-
@johngod I'm using 5.15.2 version. I've added --no-compiler-runtime at the end..
My command is like this one: C:\Qt\5.15.2\msvc2019_64\bin>windeployqt.exe --qmldir C:\Users\hp\build-incline2-Desktop_Qt_5_15_2_MSVC2019_64bit-Release\exe --no-compiler-runtime
the bit versions are correct and correct directory..
but it is not importing any libraries in that exe folder..still get 4 error messages..Please help me to sort it out.
@Vijaykarthikeyan said in .exe file is not opening:
--qmldir
This should point to your QML files in the project folder, not in build folder as far as I know. And you're also missing path to the exe file when calling windeployqt.exe.
-
@Vijaykarthikeyan said in .exe file is not opening:
--qmldir
This should point to your QML files in the project folder, not in build folder as far as I know. And you're also missing path to the exe file when calling windeployqt.exe.
wrote on 19 Sept 2023, 07:07 last edited by -
-
@Vijaykarthikeyan Did it work ? If so, please mark the this as solved.
wrote on 19 Sept 2023, 07:08 last edited by@johngod Yes,it is working..you have solved my 2 months problem..thank you soooo much
-
@Vijaykarthikeyan said in .exe file is not opening:
--qmldir
This should point to your QML files in the project folder, not in build folder as far as I know. And you're also missing path to the exe file when calling windeployqt.exe.
wrote on 19 Sept 2023, 07:11 last edited by Vijaykarthikeyan@jsulm So, the correct template should be look like this:
<qt-binary-folder>windeployqt.exe --qmldir <path-to-project-file> <path-to-Qt-build-folder>
-
@Vijaykarthikeyan than you're most certainly missing the QML part during windeployqt call:
--qmldir <directory>
with <directory> being the full path to your main QML folder, as in where your main.qml is
otherwise how should the tool know what from QML you used in your application
wrote on 19 Sept 2023, 07:14 last edited by@J-Hilk Thank you
-