2026-08-18 14:44:38 +08:00
|
|
|
|
# WeldSeamApp.pro
|
|
|
|
|
|
|
|
|
|
|
|
QT += core gui network serialport
|
|
|
|
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
2026-08-26 14:26:35 +08:00
|
|
|
|
# OpenCV 3.2 still uses std::random_shuffle, which was removed in C++17.
|
|
|
|
|
|
CONFIG += c++14
|
2026-08-18 14:44:38 +08:00
|
|
|
|
|
|
|
|
|
|
# 项目名称
|
|
|
|
|
|
TARGET = WeldSeamApp
|
|
|
|
|
|
|
|
|
|
|
|
# 模板类型
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
|
|
|
|
# 定义宏
|
|
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
DEFINES += UNICODE
|
|
|
|
|
|
DEFINES += _UNICODE
|
|
|
|
|
|
|
|
|
|
|
|
# 编码设置
|
|
|
|
|
|
win32-msvc {
|
|
|
|
|
|
QMAKE_CXXFLAGS += /utf-8 /wd4828
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Unix平台特定配置
|
|
|
|
|
|
unix:!macx {
|
|
|
|
|
|
QMAKE_CXXFLAGS += -fPIC
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/Presenter/Inc
|
2026-08-28 09:27:51 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/../../../Utils/ImageView/Inc
|
2026-08-18 14:44:38 +08:00
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Utils/VrCommon/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Utils/VrUtils/Inc
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Module/ShareMem/Inc
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../WeldSeamConfig/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Device/VrEyeDevice/Inc
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Nets/TCPServer/Inc
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Utils/CloudUtils/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/UICommon/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/AppCommon/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/AppConfig/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Module/AuthModule/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Module/HandEyeCalib/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Module/HandEyeCalib/Utils/Inc
|
|
|
|
|
|
|
|
|
|
|
|
# 源文件
|
|
|
|
|
|
SOURCES += \
|
|
|
|
|
|
Presenter/Src/ConfigManager.cpp \
|
|
|
|
|
|
Presenter/Src/WeldSeamPresenter.cpp \
|
|
|
|
|
|
Presenter/Src/DetectPresenter.cpp \
|
|
|
|
|
|
Presenter/Src/WeldSeamTCPProtocol.cpp \
|
|
|
|
|
|
Presenter/Src/TCPServerMethods.cpp \
|
|
|
|
|
|
main.cpp \
|
|
|
|
|
|
mainwindow.cpp \
|
|
|
|
|
|
dialogalgoarg.cpp
|
|
|
|
|
|
|
|
|
|
|
|
# 头文件
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
|
Presenter/Inc/ConfigManager.h \
|
|
|
|
|
|
Presenter/Inc/WeldSeamPresenter.h \
|
|
|
|
|
|
Presenter/Inc/DetectPresenter.h \
|
|
|
|
|
|
Presenter/Inc/WeldSeamTCPProtocol.h \
|
|
|
|
|
|
mainwindow.h \
|
|
|
|
|
|
dialogalgoarg.h \
|
|
|
|
|
|
Version.h
|
|
|
|
|
|
|
|
|
|
|
|
# UI文件
|
|
|
|
|
|
FORMS += \
|
|
|
|
|
|
mainwindow.ui \
|
|
|
|
|
|
dialogalgoarg.ui
|
|
|
|
|
|
|
|
|
|
|
|
# 资源文件
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
|
|
resources.qrc \
|
|
|
|
|
|
../../../AppUtils/UICommon/common_resources.qrc
|
|
|
|
|
|
|
|
|
|
|
|
# Windows任务栏图标配置
|
|
|
|
|
|
win32 {
|
|
|
|
|
|
RC_ICONS = resource/logo.ico
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
win32:CONFIG(debug, debug|release) {
|
2026-08-28 09:27:51 +08:00
|
|
|
|
LIBS += -L../../../Utils/ImageView/debug -lImageView
|
2026-08-18 14:44:38 +08:00
|
|
|
|
LIBS += -L../../../Utils/VrUtils/debug -lVrUtils
|
|
|
|
|
|
LIBS += -L../../../AppUtils/UICommon/debug -lUICommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon/debug -lAppCommon
|
|
|
|
|
|
LIBS += -L../WeldSeamConfig/debug -lWeldSeamConfig
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppConfig/debug -lAppConfig
|
|
|
|
|
|
LIBS += -L../../../Module/AuthModule/debug -lAuthModule
|
|
|
|
|
|
LIBS += -L../../../Module/HandEyeCalib/debug -lHandEyeCalib
|
|
|
|
|
|
LIBS += -L../../../Device/VrEyeDevice/debug -lVrEyeDevice
|
|
|
|
|
|
LIBS += -L../../../Utils/CloudUtils/debug -lCloudUtils
|
|
|
|
|
|
LIBS += -L../../../Nets/debug -lModbusTCPServer
|
|
|
|
|
|
LIBS += -L../../../Module/ShareMem/debug -lShareMem
|
|
|
|
|
|
LIBS += -L../../../Nets/debug -lVrModbus
|
|
|
|
|
|
LIBS += -L../../../Nets/debug -lVrTcpServer
|
|
|
|
|
|
|
|
|
|
|
|
}else:win32:CONFIG(release, debug|release){
|
2026-08-28 09:27:51 +08:00
|
|
|
|
LIBS += -L../../../Utils/ImageView/release -lImageView
|
2026-08-18 14:44:38 +08:00
|
|
|
|
LIBS += -L../../../Utils/VrUtils/release -lVrUtils
|
|
|
|
|
|
LIBS += -L../../../AppUtils/UICommon/release -lUICommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon/release -lAppCommon
|
|
|
|
|
|
LIBS += -L../WeldSeamConfig/release -lWeldSeamConfig
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppConfig/release -lAppConfig
|
|
|
|
|
|
LIBS += -L../../../Module/AuthModule/release -lAuthModule
|
|
|
|
|
|
LIBS += -L../../../Module/HandEyeCalib/release -lHandEyeCalib
|
|
|
|
|
|
LIBS += -L../../../Device/VrEyeDevice/release -lVrEyeDevice
|
|
|
|
|
|
LIBS += -L../../../Utils/CloudUtils/release -lCloudUtils
|
|
|
|
|
|
LIBS += -L../../../Nets/release -lModbusTCPServer
|
|
|
|
|
|
LIBS += -L../../../Module/ShareMem/release -lShareMem
|
|
|
|
|
|
LIBS += -L../../../Nets/release -lVrModbus
|
|
|
|
|
|
LIBS += -L../../../Nets/release -lVrTcpServer
|
|
|
|
|
|
}else:unix:!macx {
|
2026-08-28 09:27:51 +08:00
|
|
|
|
LIBS += -L../../../Utils/ImageView -lImageView
|
2026-08-18 14:44:38 +08:00
|
|
|
|
LIBS += -L../WeldSeamConfig -lWeldSeamConfig
|
|
|
|
|
|
LIBS += -L../../../AppUtils/UICommon -lUICommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon -lAppCommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppConfig -lAppConfig
|
|
|
|
|
|
LIBS += -L../../../Module/AuthModule -lAuthModule
|
|
|
|
|
|
LIBS += -L../../../Module/HandEyeCalib -lHandEyeCalib
|
|
|
|
|
|
LIBS += -L../../../Device/VrEyeDevice -lVrEyeDevice
|
|
|
|
|
|
LIBS += -L../../../Utils/CloudUtils -lCloudUtils
|
|
|
|
|
|
LIBS += -L../../../Nets -lModbusTCPServer
|
|
|
|
|
|
LIBS += -L../../../Nets -lVrModbus
|
|
|
|
|
|
LIBS += -L../../../Module/ShareMem -lShareMem
|
|
|
|
|
|
LIBS += -L../../../Nets -lVrTcpServer
|
|
|
|
|
|
LIBS += -L../../../Utils/VrUtils -lVrUtils
|
|
|
|
|
|
|
|
|
|
|
|
LIBS += -lpthread
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += ../../../Device/SDK/VzNLSDK/_Inc
|
|
|
|
|
|
INCLUDEPATH += ../../../Device/SDK/VzNLSDK/Inc
|
|
|
|
|
|
|
|
|
|
|
|
win32:CONFIG(release, debug|release): {
|
|
|
|
|
|
LIBS += -L$$PWD/../../../Device/SDK/VzNLSDK/Windows/x64/Release
|
|
|
|
|
|
LIBS += -lVzKernel -lVzNLDetect -lVzNLGraphics
|
|
|
|
|
|
}
|
|
|
|
|
|
else:win32:CONFIG(debug, debug|release): {
|
|
|
|
|
|
LIBS += -L$$PWD/../../../Device/SDK/VzNLSDK/Windows/x64/Debug
|
|
|
|
|
|
LIBS += -lVzKerneld -lVzNLDetectd -lVzNLGraphicsd
|
|
|
|
|
|
}
|
|
|
|
|
|
else:unix:!macx: {
|
|
|
|
|
|
LIBS += -L$$PWD/../../../Device/SDK/VzNLSDK/Arm/aarch64
|
|
|
|
|
|
LIBS += -lVzEyeSecurityLoader-shared -lVzKernel -lVzNLDetect -lVzNLGraphics
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# 焊缝检测算法(lapWeldDetection)
|
|
|
|
|
|
INCLUDEPATH += ../../../AppAlgo/lapWeldDetection/Inc
|
2026-08-26 14:26:35 +08:00
|
|
|
|
# OpenCV 3.2 headers required by SG_baseAlgo_Export.h
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../SDK/OpenCV320/include
|
2026-08-18 14:44:38 +08:00
|
|
|
|
|
|
|
|
|
|
win32:CONFIG(release, debug|release): {
|
|
|
|
|
|
LIBS += -L$$PWD/../../../AppAlgo/lapWeldDetection/Windows/x64/Release -llapWeldDetection -lbaseAlgorithm
|
|
|
|
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
|
|
|
|
|
|
}
|
|
|
|
|
|
else:win32:CONFIG(debug, debug|release): {
|
|
|
|
|
|
LIBS += -L$$PWD/../../../AppAlgo/lapWeldDetection/Windows/x64/Debug -llapWeldDetection -lbaseAlgorithm
|
|
|
|
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
|
|
|
|
|
|
}
|
|
|
|
|
|
else:unix:!macx: {
|
|
|
|
|
|
LIBS += -L$$PWD/../../../AppAlgo/lapWeldDetection/Arm/aarch64 -llapWeldDetection -lbaseAlgorithm
|
|
|
|
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Arm/aarch64 -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_imgcodecs
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# 添加libmodbus依赖
|
|
|
|
|
|
win32 {
|
|
|
|
|
|
LIBS += -lws2_32
|
|
|
|
|
|
LIBS += Advapi32.lib
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
|
|
unix {
|
|
|
|
|
|
target.path = /usr/lib
|
|
|
|
|
|
LIBS += -lrt
|
|
|
|
|
|
}
|
|
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
|
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
|
|
Version.md \
|
|
|
|
|
|
Version.md
|