Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make stand alone executable of qt

Tags:

exe

qt

I have made an QT programm that I want to be able to run on another computer that doesnt have QTsdk installed on it. So I guess I have to make an executable file. Unfortunately I have abolutely no experience with this. Can somebody tell me how to do this in simple words?

I work have made the programm in Qt Creator 2.4.1 based on Qt 4.7.4 (32 bit) on a windows 64bit computer.

like image 686
Frank Avatar asked Mar 26 '26 07:03

Frank


1 Answers

On answer mentions statically linking your executable with the Qt libraries, this is very convenient as it means you only have a single file to deal with (your exe) - BUT because of Qt's licensing, it also means you have to buy a commercial license for your application.

Assuming you are not modifying Qt's source code, the way round this is to ship Qt's runtime libraries (the .dll files it needs for runtime linking) with your application. This is how the vast majority of programs on your machine work anyway because it has lots of other advantages too.

like image 57
cmannett85 Avatar answered Mar 29 '26 05:03

cmannett85