T
T
tty62014-08-05 23:06:26
Qt
tty6, 2014-08-05 23:06:26

Are there guides for static assembly of qt 5.2 programs under windows msvc 13?

Can anyone share a guide?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EXL, 2014-08-06
@EXL

Everything is simple there - rebuild Qt-5.3/Qt-5.2 itself with the -static option and, preferably, with the icu library disabled (it takes a lot), and then compile your program statically using the newly minted toolkit.
You can read more here .
Don't forget to statically tie in C++/C-Runtime libraries from MSVC. I don't know how this is done in MSVC, in MinGW it's elementary:

QMAKE_LFLAGS += -static -static-libgcc -static-libstdc++
By the way, with a static build, QtWebkit will not build.
And one more thing, if the size of the statically linked program is too big, compress it with upx .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question