I have created a static library(libPdfWrapper.a) which will use it dependency libraries then i am using libPdfWrapper.a in pdf project but its looking for libPdfWrapper.a dependencies also thought it is static library.
libPdfWrapper.a .pro file which has test1, test2, test3 dependency static libraries
QT -= gui
TARGET = PdfWrapper
TEMPLATE = lib
CONFIG += staticlib
LIBS += -L$${PWD}/dependencies -ltest1 -ltest2 -ltest3
pdf project .pro file when i include only lPdfWrapper library it is not working it giving link error undefined reference
QT -= gui
TARGET = Pdf
TEMPLATE = app
LIBS += -L$${PWD}/dependencies -lPdfWrapper
pdf project .pro file with lPdfWrapper library and its dependencies it started working
QT -= gui
TARGET = Pdf
TEMPLATE = app
LIBS += -L$${PWD}/dependencies -lPdfWrapper -ltest1 -ltest2 -ltest3
Could some one explain me is this necessary? if it why?