我是QT应用程序的新手。我从我的供应商处获得了一些基于QT的项目。示例应用程序基于QT 5.8.0 msvc2013 32位/ 64位,但我没有msvc 2013,而是我在我的电脑上安装了msvc 2017。当重建(在Qmake之后)收到的代码时,我遇到问题。
错误:LNK1181:无法打开输入文件'release \ main.obj'。 Desktop Qt 5.8.0 MSVC2017 64bit套件存在配置问题,这可能是此问题的根本原因。 执行步骤“制作”
时Project.Pro文件代码,
#-------------------------------------------------
#
# Project created by QtCreator 2016-09-21T09:39:10
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += Win64
#CONFIG += console
Win64 {
TARGET_NAME = umxPrevViewer64
} else {
TARGET_NAME = umxPrevViewer
}
TEMPLATE = app
FORMS += mainwindow.ui \
formmain.ui \
formpreview.ui \
formenroll.ui \
formrecog.ui
CONFIG(debug, debug|release) {
# DESTDIR = build/debug
CMI_DEBUG = d
} else {
# DESTDIR = build/release
CMI_DEBUG =
}
message("release_build_mode ")
win32-msvc2017 {
message("win32-msvc2017 ")
Win64 {
LIBS += -L"../lib/PocoWin64" \
-lPocoFoundation$${CMI_DEBUG} \
-lPocoXML$${CMI_DEBUG} \
-lPocoUtil$${CMI_DEBUG} \
-lPocoNet$${CMI_DEBUG} \
-lPocoJSON$${CMI_DEBUG}
} else {
LIBS += -L"../lib/PocoWin" \
-lPocoFoundation$${CMI_DEBUG} \
-lPocoXML$${CMI_DEBUG} \
-lPocoUtil$${CMI_DEBUG} \
-lPocoNet$${CMI_DEBUG} \
-lPocoJSON$${CMI_DEBUG}
}
CONFIG(debug, debug|release) {
message("win32-msvc2017 32")
Win64 {
DESTDIR = "..\\bin\\windows\\debug64\\"
LIBS += "..\\bin\\windows\\debug64\\umxPrevLib64d.lib"
} else {
DESTDIR = "..\\bin\\windows\\debug\\"
LIBS += "..\\bin\\windows\\debug\\umxPrevLibd.lib"
}
} else { message("win32-msvc2017 64")
Win64 {
DESTDIR = "..\\bin\\windows\\release64\\"
LIBS += "..\\bin\\windows\\release64\\umxPrevLib64.lib"
} else {
DESTDIR = "..\\bin\\windows\\release\\"
LIBS += "..\\bin\\windows\\release\\umxPrevLib.lib"
}
}
TARGET = $${TARGET_NAME}
CMI_HOME = "../include/umxPrevLib"
POCO_HOME = "../include"
}
#INCLUDEPATH += $${POCO_HOME}
INCLUDEPATH += ../include
SOURCES += main.cpp\
mainwindow.cpp \
formmain.cpp \
formpreview.cpp \
formenroll.cpp \
formrecog.cpp \
restsend.cpp \
restrecv/handler/LockRequestHandlerM.cpp \
restrecv/handler/ControlRequestHandlerM.cpp \
restrecv/restrecvrun.cpp \
restrecv/restrecv.cpp \
rs232.c
HEADERS += mainwindow.h \
../include/umxPrevLib/requestdatatype.h \
../include/umxPrevLib/umxprevlib.hpp \
formmain.h \
global.h \
formpreview.h \
formenroll.h \
formrecog.h \
restsend.h \
restrecv/HTTPRequestHandlerFactory.h \
restrecv/Locker.h \
restrecv/handler/HTTPRequestVerbHandlerM.h \
restrecv/handler/LockRequestHandlerM.h \
restrecv/handler/ControlRequestHandlerM.h \
restrecv/restrecvrun.h \
restrecv/restrecv.h \
rs232.h
RESOURCES += \
images.qrc
以下是我的套件设置,