How to use static library in Qt 5.2?

I recently downloaded qt.

I want to create a standalone exe, but I don't know what I can do.

In Qt5.2, there is a folder "(Qt) \ lib", but I cannot use it in Qt Creator.

So, should I build from source, or configure Qt Creator and use "lib ***. A"?

Any ideas?

Environment: MinGW-32 4.8.1 (TDM) / Windows 7

+4
source share
1 answer

You seem to have tried CONFIG+=static, but this is not intended for this use case. This is used when you want to use build your library for statics after the build is complete.

, Qt, .

qmake:

LIBS += -L/path/to/the/static/QtCore -lQtCore

, :

LIBS += /path/to/the/statis/QtCore/libQtCore.a
+5