QTCreator Library Link Feature
-
Hi all,
I have set up a QT project initially on Linux, where I have used QTCreator to create some dynamic libs. I wish to switch to Windows so have installed the latest QT distro (5.2.1), with VS2010. However I am getting a linker error on a library and can't work out why.
Here is the library.pro File:
@QT -= guiTARGET = Common
TEMPLATE = lib
DEFINES += COMMON_LIBRARYSOURCES +=
some other filesHEADERS +=
Common_global.h
some other filesunix:!symbian {
maemo5 {
target.path = /opt/usr/lib
} else {
target.path = /usr/lib
}
INSTALLS += target
}
contains(QT, core): QT += concurrent
contains(QT, gui): QT += widgets
@and here is another library that I am attempting to link the common library to (where I have used the add library - > internal library feature).
@
TARGET = Interface
TEMPLATE = libDEFINES += INTERFACE_LIBRARY
SOURCES +=
#Some FilesHEADERS +=
Interface_global.h
#Some Filesunix:!symbian {
maemo5 {
target.path = /opt/usr/lib
} else {
target.path = /usr/lib
}
INSTALLS += target
}win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../Core/release/ -lCore
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../Core/debug/ -lCore
else:unix: LIBS += -L$$OUT_PWD/../Core/ -lCoreINCLUDEPATH += $$PWD/../Core
DEPENDPATH += $$PWD/../Corecontains(QT, core): QT += concurrent contains(QT, gui): QT += widgets
QMAKE_CXXFLAGS += -std=c++0x
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../Common/release/ -lCommon
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../Common/debug/ -lCommon
else:unix: LIBS += -L$$OUT_PWD/../Common/ -lCommonINCLUDEPATH += $$PWD/../Common
DEPENDPATH += $$PWD/../Common
@The core Lib seems to Link ok