I try in one subdirectory to connect the library from another
QAMQP_LIBRARY_TYPE = staticlib DEPTH = ../qamqp/src include($${DEPTH}/../qamqp.pri) INCLUDEPATH += $${QAMQP_INCLUDEPATH} message ("Added QAMQP " $${INCLUDEPATH} ) LIBS += -L$${AMQP_LIBDIR}/../qamqp/src $${QAMQP_LIBS} macx:CONFIG -= app_bundle message("AMQP_LIBDIR = " $${AMQP_LIBDIR}) message("Libs = " $$LIBS) "build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}")} INCLUDEPATH += $$PWD/../qamqp/src The strange thing is that the variables are reflected in the correct ones. The static library in the directory is present, but for some reason it does not link - it produces linking errors when compiled.
$${QAMQP_LIBS}- ixSci