我正在尝试创建一个包含子目录的项目,其中一个目录具有一个应用程序,另一个目录具有一些库功能,但是,Qt创建者找不到该dll。我的子项目文件的布局如下
debugSubdir.pro
-->app.pro
-->selector.pro
我尝试显式包括选择器文件夹的路径,但这似乎不起作用。
debugSubdir.pro
QT = core gui
TEMPLATE = subdirs
SUBDIRS += \
app \
selector
app.subdir = app
selector.subdir = selector
app.depends = selector
app.pro
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = ..\threadDebug
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG += c++11
SOURCES += \
main.cpp \
mainwindow.cpp \
objectviewer.cpp \
objectscene.cpp
HEADERS += \
mainwindow.h \
objectviewer.h \
objectscene.h
FORMS += \
mainwindow.ui
INCLUDEPATH += $${PWD}\..
INCLUDEPATH += ..\selector
LIBS += -L$${PWD}\..\..\build-InstaDam-Desktop_Qt_5_11_3_MinGW_32bit-Debug\selector
LIBS += -L$${PWD}\..\..\build-InstaDam-Desktop_Qt_5_11_3_MinGW_32bit-Release\selector
LIBS += -L$${PWD}\..
LIBS += -L$${PWD}
LIBS += -lselector
selector.pro
QT += core gui widgets network
TEMPLATE = lib
TARGET = ..\selector
INCLUDEPATH += $${PWD} $${PWD}\.. $${PWD}\..\app
LIBS += -lQt5Widgets
SOURCES += \
$$PWD\scenes.cpp
HEADERS += \
$$PWD\scenes.h
出现以下错误,
:-1: error: cannot find -lselector
关于我在做什么错的任何建议?