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
TARGET = library1
TEMPLATE = lib
CONFIG += staticlib
QT += network
DEFINES += QLIBRARY1_LIBRARY
MOC_DIR = tmp
OBJECTS_DIR = obj
DESTDIR += ../libLibrary1/bin
TARGET = library1
TEMPLATE = lib
CONFIG += staticlib
QT += network
DEFINES += QLIBRARY1_LIBRARY
MOC_DIR = tmp
OBJECTS_DIR = obj
DESTDIR += ../libLibrary1/bin
To copy to clipboard, switch view to plain text mode
.pro file of library2
QT += core gui sql network
TARGET = library2
TEMPLATE = lib
CONFIG += staticlib
DEFINES += QLIBRARY2_LIBRARY
DESTDIR = ../libLibrary2
MOC_DIR = tmp
OBJECTS_DIR = obj
INCLUDEPATH += ../libLibrary1
QMAKE_LIBDIR += ../libLibrary1
LIBS += -L/bin -llibrary1
QT += core gui sql network
TARGET = library2
TEMPLATE = lib
CONFIG += staticlib
DEFINES += QLIBRARY2_LIBRARY
DESTDIR = ../libLibrary2
MOC_DIR = tmp
OBJECTS_DIR = obj
INCLUDEPATH += ../libLibrary1
QMAKE_LIBDIR += ../libLibrary1
LIBS += -L/bin -llibrary1
To copy to clipboard, switch view to plain text mode
.pro file of app
QT += core gui
TARGET = QApp
TEMPLATE = app
INCLUDEPATH += ../libLibrary2
QMAKE_LIBDIR += ../libLibrary2
LIBS += -llibrary2
QT += core gui
TARGET = QApp
TEMPLATE = app
INCLUDEPATH += ../libLibrary2
QMAKE_LIBDIR += ../libLibrary2
LIBS += -llibrary2
To copy to clipboard, switch view to plain text mode
Bookmarks