2026-02-19 00:58:16 +08:00
|
|
|
QT += core gui
|
|
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
|
|
# Add /utf-8 flag only for MSVC builds to enforce UTF-8 encoding
|
|
|
|
|
win32-msvc {
|
|
|
|
|
CONFIG += c++11
|
|
|
|
|
QMAKE_CXXFLAGS += /utf-8
|
|
|
|
|
}else{
|
|
|
|
|
CONFIG += c++17
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# You can make your code fail to compile if it uses deprecated APIs.
|
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
# 璁剧疆搴旂敤绋嬪簭鍥炬爣
|
2026-02-19 00:58:16 +08:00
|
|
|
RC_ICONS = resource/logo.ico
|
|
|
|
|
INCLUDEPATH += $$PWD/Presenter/Inc
|
|
|
|
|
INCLUDEPATH += $$PWD/Utils/Inc
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Utils/VrCommon/Inc
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Utils/VrUtils/Inc
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/AppCommon/Inc
|
2026-03-25 09:35:56 +08:00
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/AppConfig/Inc
|
2026-02-19 00:58:16 +08:00
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/UICommon/Inc
|
|
|
|
|
|
2026-07-14 17:14:55 +08:00
|
|
|
INCLUDEPATH += $$PWD/../../../Nets/TCPServer/Inc
|
2026-02-19 00:58:16 +08:00
|
|
|
INCLUDEPATH += $$PWD/../../../Module/ShareMem/Inc
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../LapWeldConfig/Inc
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Device/VrEyeDevice/Inc
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Utils/CloudUtils/Inc
|
|
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
|
Presenter/Src/ConfigManager.cpp \
|
|
|
|
|
Presenter/Src/DetectPresenter.cpp \
|
|
|
|
|
Presenter/Src/LapWeldPresenter.cpp \
|
|
|
|
|
Presenter/Src/TCPServerProtocol.cpp \
|
|
|
|
|
devstatus.cpp \
|
|
|
|
|
dialogalgoarg.cpp \
|
|
|
|
|
main.cpp \
|
|
|
|
|
mainwindow.cpp \
|
|
|
|
|
resultitem.cpp
|
|
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
Presenter/Inc/ConfigManager.h \
|
|
|
|
|
Presenter/Inc/DetectPresenter.h \
|
|
|
|
|
Presenter/Inc/LapWeldPresenter.h \
|
|
|
|
|
Presenter/Inc/ProtocolCommon.h \
|
|
|
|
|
Presenter/Inc/TCPServerProtocol.h \
|
|
|
|
|
IYLapWeldStatus.h \
|
|
|
|
|
Version.h \
|
|
|
|
|
devstatus.h \
|
|
|
|
|
dialogalgoarg.h \
|
|
|
|
|
mainwindow.h \
|
|
|
|
|
resultitem.h
|
|
|
|
|
|
|
|
|
|
FORMS += \
|
|
|
|
|
devstatus.ui \
|
|
|
|
|
dialogalgoarg.ui \
|
|
|
|
|
mainwindow.ui \
|
|
|
|
|
resultitem.ui
|
|
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
|
resources.qrc \
|
|
|
|
|
../../../AppUtils/UICommon/common_resources.qrc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
win32:CONFIG(debug, debug|release) {
|
|
|
|
|
LIBS += -L../../../Utils/VrUtils/debug -lVrUtils
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon/debug -lAppCommon
|
2026-03-25 09:35:56 +08:00
|
|
|
LIBS += -L../../../AppUtils/AppConfig/debug -lAppConfig
|
2026-02-19 00:58:16 +08:00
|
|
|
LIBS += -L../../../Utils/CloudUtils/debug -lCloudUtils
|
|
|
|
|
LIBS += -L../../../AppUtils/UICommon/debug -lUICommon
|
|
|
|
|
LIBS += -L../LapWeldConfig/debug -lLapWeldConfig
|
|
|
|
|
LIBS += -L../../../Device/VrEyeDevice/debug -lVrEyeDevice
|
2026-07-14 17:14:55 +08:00
|
|
|
LIBS += -L../../../Nets/debug -lVrTcpServer
|
2026-02-19 00:58:16 +08:00
|
|
|
LIBS += -L../../../Module/ShareMem/debug -lShareMem
|
2026-07-13 18:38:03 +08:00
|
|
|
# AppCommon 渚濊禆
|
2026-07-14 17:14:55 +08:00
|
|
|
LIBS += -L../../../Nets/debug -lModbusTCPServer
|
|
|
|
|
LIBS += -L../../../Nets/debug -lVrModbus
|
2026-02-19 00:58:16 +08:00
|
|
|
}else:win32:CONFIG(release, debug|release){
|
|
|
|
|
LIBS += -L../../../Utils/VrUtils/release -lVrUtils
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon/release -lAppCommon
|
2026-03-25 09:35:56 +08:00
|
|
|
LIBS += -L../../../AppUtils/AppConfig/release -lAppConfig
|
2026-02-19 00:58:16 +08:00
|
|
|
LIBS += -L../../../Utils/CloudUtils/release -lCloudUtils
|
|
|
|
|
LIBS += -L../../../AppUtils/UICommon/release -lUICommon
|
|
|
|
|
LIBS += -L../LapWeldConfig/release -lLapWeldConfig
|
|
|
|
|
LIBS += -L../../../Device/VrEyeDevice/release -lVrEyeDevice
|
2026-07-14 17:14:55 +08:00
|
|
|
LIBS += -L../../../Nets/release -lVrTcpServer
|
2026-02-19 00:58:16 +08:00
|
|
|
LIBS += -L../../../Module/ShareMem/release -lShareMem
|
2026-07-13 18:38:03 +08:00
|
|
|
# AppCommon 渚濊禆
|
2026-07-14 17:14:55 +08:00
|
|
|
LIBS += -L../../../Nets/release -lModbusTCPServer
|
|
|
|
|
LIBS += -L../../../Nets/release -lVrModbus
|
2026-02-19 00:58:16 +08:00
|
|
|
}else:unix:!macx {
|
2026-07-13 18:38:03 +08:00
|
|
|
# Unix/Linux骞冲彴搴撻摼鎺ワ紙鍖呮嫭浜ゅ弶缂栬瘧锛? # 娉ㄦ剰閾炬帴椤哄簭锛氫緷璧栧叧绯讳粠楂樺埌浣?
|
|
|
|
|
LIBS += -L../LapWeldConfig -lLapWeldConfig
|
2026-02-19 00:58:16 +08:00
|
|
|
LIBS += -L../../../AppUtils/UICommon -lUICommon
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon -lAppCommon
|
2026-03-25 09:35:56 +08:00
|
|
|
LIBS += -L../../../AppUtils/AppConfig -lAppConfig
|
2026-02-19 00:58:16 +08:00
|
|
|
LIBS += -L../../../Utils/CloudUtils -lCloudUtils
|
|
|
|
|
LIBS += -L../../../Device/VrEyeDevice -lVrEyeDevice
|
2026-07-14 17:14:55 +08:00
|
|
|
LIBS += -L../../../Nets -lVrTcpServer
|
2026-02-19 00:58:16 +08:00
|
|
|
LIBS += -L../../../Module/ShareMem -lShareMem
|
|
|
|
|
LIBS += -L../../../Utils/VrUtils -lVrUtils
|
2026-07-13 18:38:03 +08:00
|
|
|
# AppCommon 渚濊禆
|
2026-07-14 17:14:55 +08:00
|
|
|
LIBS += -L../../../Nets -lModbusTCPServer
|
|
|
|
|
LIBS += -L../../../Nets -lVrModbus
|
2026-02-19 00:58:16 +08:00
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
# 娣诲姞绯荤粺搴撲緷璧?
|
|
|
|
|
LIBS += -lpthread
|
2026-02-19 00:58:16 +08:00
|
|
|
}
|
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
#linux涓嬬殑涓簎nix 锛寃indows涓嬬敤鐨剋in32
|
2026-02-19 00:58:16 +08:00
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
INCLUDEPATH += ../../../Device/SDK/VzNLSDK/_Inc
|
|
|
|
|
INCLUDEPATH += ../../../Device/SDK/VzNLSDK/Inc
|
2026-02-19 00:58:16 +08:00
|
|
|
|
|
|
|
|
win32:CONFIG(release, debug|release): {
|
2026-07-13 18:38:03 +08:00
|
|
|
LIBS += -L$$PWD/../../../Device/SDK/VzNLSDK/Windows/x64/Release
|
2026-02-19 00:58:16 +08:00
|
|
|
LIBS += -lVzKernel -lVzNLDetect -lVzNLGraphics
|
|
|
|
|
}
|
|
|
|
|
else:win32:CONFIG(debug, debug|release): {
|
2026-07-13 18:38:03 +08:00
|
|
|
LIBS += -L$$PWD/../../../Device/SDK/VzNLSDK/Windows/x64/Debug
|
2026-02-19 00:58:16 +08:00
|
|
|
LIBS += -lVzKerneld -lVzNLDetectd -lVzNLGraphicsd
|
|
|
|
|
}
|
|
|
|
|
else:unix:!macx: {
|
2026-07-13 18:38:03 +08:00
|
|
|
LIBS += -L$$PWD/../../../Device/SDK/VzNLSDK/Arm/aarch64
|
2026-02-19 00:58:16 +08:00
|
|
|
LIBS += -lVzEyeSecurityLoader-shared -lVzKernel -lVzNLDetect -lVzNLGraphics
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
# 绠楁硶
|
2026-02-19 00:58:16 +08:00
|
|
|
INCLUDEPATH += ../../../AppAlgo/lapWeldDetection/Inc
|
|
|
|
|
INCLUDEPATH += ../../../SDK/OpenCV320/include
|
|
|
|
|
|
|
|
|
|
win32:CONFIG(release, debug|release): {
|
|
|
|
|
LIBS += -L$$PWD/../../../AppAlgo/lapWeldDetection/Windows/x64/Release -llapWeldDetection
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
# 娣诲姞libmodbus渚濊禆
|
2026-02-19 00:58:16 +08:00
|
|
|
win32 {
|
|
|
|
|
LIBS += -lws2_32
|
|
|
|
|
LIBS += Advapi32.lib
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
|
unix {
|
|
|
|
|
target.path = /usr/lib
|
|
|
|
|
# Link real-time library for POSIX shared memory functions
|
|
|
|
|
LIBS += -lrt
|
|
|
|
|
}
|
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|