How to run a Qt application which is created in one PC to another PC
-
Hi,
I have created a small Qt5 application in a Linux (Ubuntu 14.04) 64 bit PC using Qt Creator. The application is working fine and I can able to see the output.
Now, I want to distribute the same application executable to my friends. I would like to know how I can achieve this without installing the Qt creator and full source in their PC.
PS: I have googled and found that, static compiling of Qt application will bind all required library to the application so that, I can use the same in another PCs. But I have no idea how to do it.
Any help would be appreciated!
Thank you in advance,
Ajith P V -
@Ajith_P_V
Hi,
Did you mean Installer /Executable ? if yes you can refer Qt Installer Framework Manual -
@Ajith_P_V
it says that you need to link the Qt library statically so that when you run it, the dlls for your app will be embedded to the .exe file
follow this instruction:
https://wiki.qt.io/Build_Standalone_Qt_Application_for_Windows -
This post is deleted!
-
Hi
If you use static linking, you must buy licence or open source you project.Alternatively (as most use) is to put some DLLS in same folder as the .exe
file.
http://www.tripleboot.org/?p=138Notices, that there are 2 DLLS with almost same name. one has D in it and is for debug release.
the non D version is for release builds. You should use release builds, and don't mix the dlls.
Then u just zip whole folder and give to friends.