How to run .exe file from release folder? Qt 5.13, Windows.
-
Hi. I have Qt Creator with two weeks license. I wrote simple program with buttons and COM-port action, it works good when run from Qt Creator itself. If I run .exe file from release folder it asking for Qt5SerialPort.dll. No such file appears on my computer after build action. I read somewhere that "make install" action will create all dll's which progect needs, but I don't know where to write this command. If anything, I don't know much aboul compilers and linkers.
-
Hi. I have Qt Creator with two weeks license. I wrote simple program with buttons and COM-port action, it works good when run from Qt Creator itself. If I run .exe file from release folder it asking for Qt5SerialPort.dll. No such file appears on my computer after build action. I read somewhere that "make install" action will create all dll's which progect needs, but I don't know where to write this command. If anything, I don't know much aboul compilers and linkers.
@caferacer You need to deploy your app.
See https://doc.qt.io/qt-5/windows-deployment.html -
Hi and welcome to the forums
When you want to run your app outside Creator. You need a so called deplyment folder.
Which is just a plain folder with some sub folders in it and the Qt dlls.You can use this tool to copy the needed DLLs (used by your app)
https://doc.qt.io/qt-5/windows-deployment.htmlYou can also read this for more information.
http://www.tripleboot.org/?p=138Damn. ninjaed by jsulm :)
-
Thank you, I will try to deploy it. Is there any button "Deploy" in Qt Creator IDE to make this action more easier?
Hi
Sadly no.
Its a command-line tool.
basically, you can just point to yur build folder with a release exe and
that is normally enough.
If you are unsure of how to use command line, let me know.