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.

  • Show what is contained in $${QAMQP_LIBS} - ixSci
  • There are all the rules like -lqamqpd - user3003873

1 answer 1

Everything turned out to be very simple. In another subdirectory in the test case there was one undefined method. Here it is, in general, all behind him pulled. Although it is not clear how it is generally associated with a static liby - even import is not provided there.