Hello
I have problem to set correct build settings to create and link shared libs.
My solution (session) structure:
  1. Faktur (main app)
    • MainWindow (lib)
      • MenuGlowne (lib)
      • PrintThread (lib)
      • QueryThread (lib)

For each project I defined dependencies. All projects has the same build directory. Finally all libs are being build but when main app is being created then error appear:
/usr/bin/ld: warning: libmenuglownelib.so.1, needed by ./libmainwindowlib.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libprintthreadlib.so.1, needed by ./libmainwindowlib.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libquerythreadlib.so.1, needed by ./libmainwindowlib.so, not found (try using -rpath or -rpath-link)
I had defined lib's folders and names for each project:
- MainApp
QT += core gui sql
TARGET = Faktura
TEMPLATE = app

SOURCES += \
main.cpp

LIBS += -L"."
LIBS += -lmainwindowlib
INCLUDEPATH += ../MainWindow
-MainWindow
QT += core gui sql

TARGET = mainwindowlib
TEMPLATE = lib

DEFINES += MAINWINDOWLIB_LIBRARY

HEADERS += \
mainwindow.h \
mainwindowlib_global.h \
timer.h

SOURCES += \
mainwindow.cpp \
timer.cpp

FORMS += \
mainwindow.ui

INCLUDEPATH += ../MenuGlowne \
../FakturaVAT \
../PrintThread
../QueryThread

debug:LIBS += -L"."
release:LIBS += -L"."

LIBS += -lmenuglownelib \
-lprintthreadlib \
-lquerythreadlib
-PrintThread
QT += core gui sql

TARGET = printthreadlib
TEMPLATE = lib

DEFINES += PRINTTHREADLIB_LIBRARY

HEADERS += \
printthread.h \
printthreadlib_global.h

SOURCES += \
printthread.cpp
Basicly on windows I had compiled project. Problem has appeared on linux. Somehow linker is not linking shared libs into other shared lib.
What I'm doing wrong?