hi.

i create application where i use 2 library.
library1 is used in library2 and library2 is used in application.

library1 and library2 is compiled OK, but when i try compile App, i have error:

No such file or directory xxx.h, but this xxx.h is in library1

how can i load this library in app?

.pro file of library1
Qt Code:
  1. TARGET = library1
  2. TEMPLATE = lib
  3. CONFIG += staticlib
  4. QT += network
  5. DEFINES += QLIBRARY1_LIBRARY
  6. MOC_DIR = tmp
  7. OBJECTS_DIR = obj
  8. DESTDIR += ../libLibrary1/bin
To copy to clipboard, switch view to plain text mode 

.pro file of library2
Qt Code:
  1. QT += core gui sql network
  2. TARGET = library2
  3. TEMPLATE = lib
  4. CONFIG += staticlib
  5. DEFINES += QLIBRARY2_LIBRARY
  6. DESTDIR = ../libLibrary2
  7. MOC_DIR = tmp
  8. OBJECTS_DIR = obj
  9. INCLUDEPATH += ../libLibrary1
  10. QMAKE_LIBDIR += ../libLibrary1
  11. LIBS += -L/bin -llibrary1
To copy to clipboard, switch view to plain text mode 

.pro file of app
Qt Code:
  1. QT += core gui
  2. TARGET = QApp
  3. TEMPLATE = app
  4. INCLUDEPATH += ../libLibrary2
  5. QMAKE_LIBDIR += ../libLibrary2
  6. LIBS += -llibrary2
To copy to clipboard, switch view to plain text mode