I\'m having a hell of a time finding documentation which clearly explains how to use a static library in Qt Creator.
I\'ve created and compiled my static library usi
The variant
LIBS += -L[PATH_TO_LIB_DIR] -l[LIBNAME]
doesn't work if you have both static libLIBNAME.a and dynamic libLIBNAME.so libs in the same folder PATH_TO_LIB_DIR.
In this case on my linux with QMake v 3.0
the dynamic one is linked by default.
To force linkage with static one you need to specify it explicitly without any options.
LIBS += PATH_TO_LIB_DIR/libLIBNAME.a