how to run exe file
-
@J-Hilk
Yes, OS is win 10
no I did not use windeployqt I used only QtCreator
I tested this by QtWidget is ok but QtQuick has some problems@ali-aydin ok, you should use it. it is, like the name suggested for deploying your executable.
https://doc.qt.io/qt-6/windows-deployment.html
General steps on how to use it:
- Open command line prompt
- execute the qtenv2.bat inside the bin folder of the Qt kit, you used to compile your application
- in the same folder you will also now find the windeployqt.exe
- so execute that program, give it the fill path to your own binary, and since its a qml application, also give the --qmldir option the full path to the folder containing your main.qml (the actual source file)
90% of the time, if done properly, this should be everything you need to do
-
@ali-aydin ok, you should use it. it is, like the name suggested for deploying your executable.
https://doc.qt.io/qt-6/windows-deployment.html
General steps on how to use it:
- Open command line prompt
- execute the qtenv2.bat inside the bin folder of the Qt kit, you used to compile your application
- in the same folder you will also now find the windeployqt.exe
- so execute that program, give it the fill path to your own binary, and since its a qml application, also give the --qmldir option the full path to the folder containing your main.qml (the actual source file)
90% of the time, if done properly, this should be everything you need to do
wrote on 16 Aug 2022, 11:20 last edited by@J-Hilk
Thank you so much I will test it -
@ali-aydin ok, you should use it. it is, like the name suggested for deploying your executable.
https://doc.qt.io/qt-6/windows-deployment.html
General steps on how to use it:
- Open command line prompt
- execute the qtenv2.bat inside the bin folder of the Qt kit, you used to compile your application
- in the same folder you will also now find the windeployqt.exe
- so execute that program, give it the fill path to your own binary, and since its a qml application, also give the --qmldir option the full path to the folder containing your main.qml (the actual source file)
90% of the time, if done properly, this should be everything you need to do
wrote on 16 Aug 2022, 12:38 last edited by@J-Hilk
I used windeployqt it worked for me on my laptop
but on the pc it does not work -
@ali-aydin alright, alright alright,
one step forwards
do you use MSVC or MinGW as compiler/QtVersion
-
@ali-aydin alright, alright alright,
one step forwards
do you use MSVC or MinGW as compiler/QtVersion
wrote on 16 Aug 2022, 12:48 last edited by@J-Hilk
I'm using MinGW -
@ali-aydin ok, should rule out msc++ distributable.
°but on the pc it does not work
what exactly is happening, do you get an error message/prompt or other kind of popup,
the the process running, but nothing is shown.
What kind of windows is the pc running -
@ali-aydin ok, should rule out msc++ distributable.
°but on the pc it does not work
what exactly is happening, do you get an error message/prompt or other kind of popup,
the the process running, but nothing is shown.
What kind of windows is the pc runningwrote on 16 Aug 2022, 12:52 last edited by@J-Hilk
no there is no error or popup
Pc running with win 10 -
@ali-aydin said in how to run exe file:
o there is no error or popup
Pc running with win 10- same bit system(32/64) ?
- do you have Qt Libraries in your system path, on the laptop
- do you have your qml files in a qt resource file
-
@ali-aydin said in how to run exe file:
o there is no error or popup
Pc running with win 10- same bit system(32/64) ?
- do you have Qt Libraries in your system path, on the laptop
- do you have your qml files in a qt resource file
wrote on 16 Aug 2022, 12:59 last edited by@J-Hilk
I got new problem
when I changing the directory on laptop it is not working anymore
yes all the qml files in one resource file
bit system is x64
Qt Libraries is in the same directory with exe file -
@J-Hilk
I got new problem
when I changing the directory on laptop it is not working anymore
yes all the qml files in one resource file
bit system is x64
Qt Libraries is in the same directory with exe file@ali-aydin said in how to run exe file:
when I changing the directory on laptop it is not working anymore
I find that very hard to believe, if you copy the exe and all files and folders that windeployqt deployed then it should work anywhere on your pc.
Does your program do anything path specific, do you read a file that is required or something along that line
-
@ali-aydin said in how to run exe file:
when I changing the directory on laptop it is not working anymore
I find that very hard to believe, if you copy the exe and all files and folders that windeployqt deployed then it should work anywhere on your pc.
Does your program do anything path specific, do you read a file that is required or something along that line
wrote on 17 Aug 2022, 06:10 last edited by@J-Hilk
I'm coping entire folder to other directory
and then it's not working -
@ali-aydin very strange
can you post a screenshot of that folder ?and are you sure your app/code doesn't require files to read or something similar on start up?
any error messages? -
@ali-aydin very strange
can you post a screenshot of that folder ?and are you sure your app/code doesn't require files to read or something similar on start up?
any error messages?wrote on 17 Aug 2022, 09:35 last edited by -
@ali-aydin ok, the deployment folder seems to be missing tons of qml related plugins.
What was the actual call to windeployqt ?
-
@ali-aydin ok, the deployment folder seems to be missing tons of qml related plugins.
What was the actual call to windeployqt ?
wrote on 17 Aug 2022, 09:56 last edited by@J-Hilk
if your mean is command
command : windeployqt MarketTest.exe
just this -
@ali-aydin ok, you should use it. it is, like the name suggested for deploying your executable.
https://doc.qt.io/qt-6/windows-deployment.html
General steps on how to use it:
- Open command line prompt
- execute the qtenv2.bat inside the bin folder of the Qt kit, you used to compile your application
- in the same folder you will also now find the windeployqt.exe
- so execute that program, give it the fill path to your own binary, and since its a qml application, also give the --qmldir option the full path to the folder containing your main.qml (the actual source file)
90% of the time, if done properly, this should be everything you need to do
@ali-aydin and where in that command is the requested --qmldir option ? 😉
@J-Hilk said in how to run exe file:
- so execute that program, give it the full path to your own binary, and since its a qml application, also give the --qmldir option the full path to the folder containing your main.qml (the actual source file)
-
@ali-aydin and where in that command is the requested --qmldir option ? 😉
@J-Hilk said in how to run exe file:
- so execute that program, give it the full path to your own binary, and since its a qml application, also give the --qmldir option the full path to the folder containing your main.qml (the actual source file)
wrote on 17 Aug 2022, 10:10 last edited by@J-Hilk
I checked that is ok
thanks a lot -
@ali-aydin I'm sorry, do you mean its now working for you ?
-
@ali-aydin I'm sorry, do you mean its now working for you ?
wrote on 17 Aug 2022, 10:19 last edited by@J-Hilk
yes it worked on the laptop and I moved it to pc and on the pc worked too
thank you for your help
17/26