我正在尝试使用Windows 10
和Qt5.12
构建项目。小程序正在使用here可用的smtp
协议。我可以确认我的Windows上具有OpenSSL 1.1.1c(2019年5月28日)。在我的Ubuntu 19.04上,相同的程序可以正常编译并运行,但不能在Windows上运行。
我将存储库git clone
Windows
this post之后{{3}},并且程序正确构建。
问题是,当我运行它时,它cannot find the executable
并在要求它,因为可以从下面的打印屏幕中看到它:
这是我的.pro
文件:
QT += quick quickcontrols2 concurrent network core gui
CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Refer to the documentation for the
# deprecated API to know how to port your code away from it.
DEFInes += QT_DEPRECATED_WARNINGS
TARGET = SMTPEmail
DEFInes += SMTP_BUILD
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so,uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFInes += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
main.cpp \
progressbardialog.cpp \
robot.cpp \
robotmanager.cpp \
settings/emailaddress.cpp \
settings/mimeattachment.cpp \
settings/mimecontentformatter.cpp \
settings/mimefile.cpp \
settings/mimehtml.cpp \
settings/mimeinlinefile.cpp \
settings/mimemessage.cpp \
settings/mimemultipart.cpp \
settings/mimepart.cpp \
settings/mimetext.cpp \
settings/quotedprintable.cpp \
settings/smtpclient.cpp \
user.cpp \
usermanager.cpp
RESOURCES += qml.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =
HEADERS += \
progressbardialog.h \
robot.h \
robotmanager.h \
settings/SmtpMime \
settings/emailaddress.h \
settings/mimeattachment.h \
settings/mimecontentformatter.h \
settings/mimefile.h \
settings/mimehtml.h \
settings/mimeinlinefile.h \
settings/mimemessage.h \
settings/mimemultipart.h \
settings/mimepart.h \
settings/mimetext.h \
settings/quotedprintable.h \
settings/smtpclient.h \
settings/smtpexports.h \
user.h \
usermanager.h
在我的桌面上,会自动创建build
文件夹,并认为可执行文件应该在这里。在下面,我还附上build
文件夹中内容的打印屏幕:
最初,此项目已部署在Ubuntu
上,这丝毫没有问题。我git clone
回购了我的Windows
,添加了丢失的SMTP_BUILD
,但是我无法对打印屏幕上的窗口正在询问的可执行文件进行优化。最后一步我缺少什么?
非常感谢您指出正确的方向。