2025-12-10 00:01:32 +08:00
|
|
|
|
# WorkpiecePositionApp.pro
|
|
|
|
|
|
|
|
|
|
|
|
QT += core gui network
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
CONFIG += c++17
|
|
|
|
|
|
|
|
|
|
|
|
TARGET = WorkpiecePositionApp
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
|
|
|
|
|
|
win32-msvc { QMAKE_CXXFLAGS += /utf-8 }
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../VrCommon/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../VrUtils/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Module/BinocularMarkReceiver/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Device/EpicEyeDevice/Inc
|
2025-12-27 09:34:02 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/../../../Device/VrEyeDevice/Inc
|
2025-12-29 01:16:58 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/../../../SDK/Device/VzNLSDK/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppAlgo/binocularMark/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../SDK/Device/EpicEye/Inc
|
2025-12-10 00:01:32 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/AppCommon/Inc
|
2025-12-27 09:34:02 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/UICommon/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/CloudUtils/Inc
|
2025-12-10 00:01:32 +08:00
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/Presenter/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../WorkpieceProjectConfig/Inc
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
|
|
Presenter/Src/WorkpiecePositionPresenter.cpp \
|
|
|
|
|
|
main.cpp \
|
|
|
|
|
|
mainwindow.cpp
|
|
|
|
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
|
Presenter/Inc/WorkpiecePositionPresenter.h \
|
|
|
|
|
|
IYWorkpiecePositionStatus.h \
|
|
|
|
|
|
mainwindow.h \
|
|
|
|
|
|
Version.h
|
|
|
|
|
|
|
|
|
|
|
|
FORMS += mainwindow.ui
|
|
|
|
|
|
RESOURCES += resources.qrc
|
2025-12-27 09:34:02 +08:00
|
|
|
|
RESOURCES += $$PWD/../../../AppUtils/UICommon/common_resources.qrc
|
2025-12-10 00:01:32 +08:00
|
|
|
|
|
|
|
|
|
|
win32 { RC_ICONS = resource/logo.ico }
|
|
|
|
|
|
|
|
|
|
|
|
win32:CONFIG(debug, debug|release) {
|
|
|
|
|
|
LIBS += -L../../../VrUtils/debug -lVrUtils
|
|
|
|
|
|
LIBS += -L../../../Module/BinocularMarkReceiver/debug -lBinocularMarkReceiver
|
|
|
|
|
|
LIBS += -L../../../Device/EpicEyeDevice/debug -lEpicEyeDevice
|
2025-12-27 09:34:02 +08:00
|
|
|
|
LIBS += -L../../../Device/VrEyeDevice/debug -lVrEyeDevice
|
2025-12-10 00:01:32 +08:00
|
|
|
|
LIBS += -L../WorkpieceProjectConfig/debug -lWorkpieceProjectConfig
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon/debug -lAppCommon
|
2025-12-27 09:34:02 +08:00
|
|
|
|
LIBS += -L../../../AppUtils/UICommon/debug -lUICommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/CloudUtils/debug -lCloudUtils
|
2025-12-29 01:16:58 +08:00
|
|
|
|
# AppCommon 依赖
|
|
|
|
|
|
LIBS += -L../../../Module/ModbusTCPServer/debug -lModbusTCPServer
|
|
|
|
|
|
LIBS += -L../../../Module/ShareMem/debug -lShareMem
|
|
|
|
|
|
LIBS += -L../../../VrNets/debug -lVrModbus
|
|
|
|
|
|
LIBS += -L../../../VrNets/debug -lVrTCPServer
|
2025-12-10 00:01:32 +08:00
|
|
|
|
}else:win32:CONFIG(release, debug|release){
|
|
|
|
|
|
LIBS += -L../../../VrUtils/release -lVrUtils
|
|
|
|
|
|
LIBS += -L../../../Module/BinocularMarkReceiver/release -lBinocularMarkReceiver
|
|
|
|
|
|
LIBS += -L../../../Device/EpicEyeDevice/release -lEpicEyeDevice
|
2025-12-27 09:34:02 +08:00
|
|
|
|
LIBS += -L../../../Device/VrEyeDevice/release -lVrEyeDevice
|
2025-12-10 00:01:32 +08:00
|
|
|
|
LIBS += -L../WorkpieceProjectConfig/release -lWorkpieceProjectConfig
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon/release -lAppCommon
|
2025-12-27 09:34:02 +08:00
|
|
|
|
LIBS += -L../../../AppUtils/UICommon/release -lUICommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/CloudUtils/release -lCloudUtils
|
2025-12-29 01:16:58 +08:00
|
|
|
|
# AppCommon 依赖
|
|
|
|
|
|
LIBS += -L../../../Module/ModbusTCPServer/release -lModbusTCPServer
|
|
|
|
|
|
LIBS += -L../../../Module/ShareMem/release -lShareMem
|
|
|
|
|
|
LIBS += -L../../../VrNets/release -lVrModbus
|
|
|
|
|
|
LIBS += -L../../../VrNets/release -lVrTCPServer
|
2025-12-10 00:01:32 +08:00
|
|
|
|
}else:unix:!macx {
|
|
|
|
|
|
LIBS += -L../WorkpieceProjectConfig -lWorkpieceProjectConfig
|
|
|
|
|
|
LIBS += -L../../../Module/BinocularMarkReceiver -lBinocularMarkReceiver
|
|
|
|
|
|
LIBS += -L../../../Device/EpicEyeDevice -lEpicEyeDevice
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon -lAppCommon
|
2025-12-27 09:34:02 +08:00
|
|
|
|
LIBS += -L../../../AppUtils/UICommon -lUICommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/CloudUtils -lCloudUtils
|
2026-01-03 22:28:04 +08:00
|
|
|
|
# AppCommon 依赖(VrEyeDevice 必须在 AppCommon 之后)
|
|
|
|
|
|
LIBS += -L../../../Device/VrEyeDevice -lVrEyeDevice
|
2025-12-29 01:16:58 +08:00
|
|
|
|
LIBS += -L../../../Module/ModbusTCPServer -lModbusTCPServer
|
|
|
|
|
|
LIBS += -L../../../Module/ShareMem -lShareMem
|
|
|
|
|
|
LIBS += -L../../../VrNets -lVrModbus
|
|
|
|
|
|
LIBS += -L../../../VrNets -lVrTCPServer
|
2026-01-03 22:28:04 +08:00
|
|
|
|
# BinocularMarkReceiver 依赖
|
|
|
|
|
|
LIBS += -L../../../VrNets -lVrTcpClient
|
|
|
|
|
|
LIBS += -L../../../VrUtils -lVrUtils
|
2025-12-10 00:01:32 +08:00
|
|
|
|
LIBS += -lpthread -lrt
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-27 09:34:02 +08:00
|
|
|
|
# VzNLSDK 库(BasePresenter 依赖)
|
|
|
|
|
|
win32:CONFIG(release, debug|release): {
|
2025-12-29 01:16:58 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../SDK/Device/VzNLSDK/Windows/x64/Release
|
2025-12-27 09:34:02 +08:00
|
|
|
|
LIBS += -lVzKernel -lVzNLDetect -lVzNLGraphics
|
|
|
|
|
|
}else:win32:CONFIG(debug, debug|release): {
|
2025-12-29 01:16:58 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../SDK/Device/VzNLSDK/Windows/x64/Debug
|
2025-12-27 09:34:02 +08:00
|
|
|
|
LIBS += -lVzKerneld -lVzNLDetectd -lVzNLGraphicsd
|
|
|
|
|
|
}else:unix:!macx: {
|
2025-12-29 01:16:58 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../SDK/Device/VzNLSDK/Arm/aarch64
|
2025-12-27 09:34:02 +08:00
|
|
|
|
LIBS += -lVzEyeSecurityLoader-shared -lVzKernel -lVzNLDetect -lVzNLGraphics
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-10 00:01:32 +08:00
|
|
|
|
# EpicEye SDK 库(使用 qmake 编译的静态库)
|
2025-12-29 01:16:58 +08:00
|
|
|
|
# 编译方法: cd SDK/Device/EpicEye && qmake && nmake (Windows) 或 make (Linux)
|
2025-12-10 00:01:32 +08:00
|
|
|
|
win32:CONFIG(release, debug|release): {
|
2026-01-07 00:34:37 +08:00
|
|
|
|
LIBS += -L../../../SDK/Device/EpicEye/release -lEpicEyeSDK
|
2025-12-10 00:01:32 +08:00
|
|
|
|
}else:win32:CONFIG(debug, debug|release): {
|
2026-01-07 00:34:37 +08:00
|
|
|
|
LIBS += -L../../../SDK/Device/EpicEye/debug -lEpicEyeSDK
|
2025-12-10 00:01:32 +08:00
|
|
|
|
}else:unix:!macx: {
|
2026-01-07 00:34:37 +08:00
|
|
|
|
LIBS += -L../../../SDK/Device/EpicEye -lEpicEyeSDK
|
2025-12-10 00:01:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
win32 { LIBS += -lws2_32 }
|