P
P
Pavel2016-03-23 00:13:09
Qt
Pavel, 2016-03-23 00:13:09

How to build a release version of an application in Qt?

The application is launched through the Creator, set the Release build type, assembled the project. In the folder, the file does not start, looked at stackoverflow, they write everything that needs to be walked through the dependency walker to understand which dlls are missing. ... Isn't there some simpler way to release the application build on qt ???

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artyom Sveshnikov, 2016-03-23
@rusbaron

1) go to the folder with the collected *.exe file.
2) copy the path not to the file, but to the folder where this file is located from step 1
3) run the "Qt command line (with the compiler you need .. there may be several of them)" through the "Start" menu.
4) using the command cd /d <путь из п.2>in the console that opens, go to the folder with the collected *.exe
5) execute windeployqt.exe .
6) done. All necessary *.dll will be copied to the folder with the executable file.

Z
Zelimkhan Beltoev, 2016-03-23
@Beltoev

Google for "Qt static linking".
In short, you need to "rebuild" the compiler so that it links all these dlls with the release version of the program

S
Stanislav Makarov, 2016-03-23
@Nipheris

Is there really no simpler way to release the application build on qt ???

If there are correct DLLs (as Rinat Veliakhmedov said , without the "d" suffix), then you need to collect them in the same folder along with the exe (plus a separate discussion about plugins for the platform). There was definitely a great section in the Qt documentation about building a release .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question