2026-06-26 17:55:15 +08:00
|
|
|
|
QT += core gui network widgets
|
|
|
|
|
|
|
|
|
|
|
|
CONFIG += c++17
|
|
|
|
|
|
|
|
|
|
|
|
TARGET = DroneScrewCtrlApp
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
DEFINES += UNICODE
|
|
|
|
|
|
DEFINES += _UNICODE
|
|
|
|
|
|
|
|
|
|
|
|
win32-msvc {
|
|
|
|
|
|
QMAKE_CXXFLAGS += /utf-8
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
|
# 澶存枃浠惰矾寰?
|
2026-06-26 17:55:15 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/Presenter/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../DroneScrewCtrlConfig/Inc
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Utils/VrCommon/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Utils/VrUtils/Inc
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Module/ShareMem/Inc
|
2026-07-14 17:14:55 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/../../../Nets/ZeroMQClient/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Nets/ZeroMQPubSub/Inc
|
2026-06-26 17:55:15 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/../../../Module/FFMediaStream/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Module/AuthModule/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../Module/WDRemoteReceiver/Inc
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/AppCommon/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/AppConfig/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../AppUtils/UICommon/Inc
|
|
|
|
|
|
|
|
|
|
|
|
# Protobuf / ZeroMQ
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../SDK/Protobuf_3_20/include
|
2026-07-14 17:14:55 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/../../../Nets/SDK/ZeroMQ/include
|
2026-06-26 17:55:15 +08:00
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
|
# 婧愭枃浠?
|
2026-06-26 17:55:15 +08:00
|
|
|
|
SOURCES += \
|
|
|
|
|
|
main.cpp \
|
|
|
|
|
|
mainwindow.cpp \
|
|
|
|
|
|
dialogalgoarg.cpp \
|
|
|
|
|
|
dialogcamerasetting.cpp \
|
2026-07-03 14:19:06 +08:00
|
|
|
|
dialoghistoryresult.cpp \
|
2026-06-26 17:55:15 +08:00
|
|
|
|
resultitem.cpp \
|
|
|
|
|
|
Presenter/Src/ConfigManager.cpp \
|
|
|
|
|
|
Presenter/Src/DroneScrewCtrlPresenter.cpp
|
|
|
|
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
|
mainwindow.h \
|
|
|
|
|
|
dialogalgoarg.h \
|
|
|
|
|
|
dialogcamerasetting.h \
|
2026-07-03 14:19:06 +08:00
|
|
|
|
dialoghistoryresult.h \
|
2026-06-26 17:55:15 +08:00
|
|
|
|
resultitem.h \
|
|
|
|
|
|
Version.h \
|
|
|
|
|
|
IYDroneScrewCtrlStatus.h \
|
|
|
|
|
|
Presenter/Inc/ConfigManager.h \
|
|
|
|
|
|
Presenter/Inc/DroneScrewCtrlPresenter.h
|
|
|
|
|
|
|
|
|
|
|
|
FORMS += \
|
|
|
|
|
|
mainwindow.ui \
|
|
|
|
|
|
dialogalgoarg.ui \
|
|
|
|
|
|
dialogcamerasetting.ui \
|
2026-07-03 14:19:06 +08:00
|
|
|
|
dialoghistoryresult.ui \
|
2026-06-26 17:55:15 +08:00
|
|
|
|
resultitem.ui
|
|
|
|
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
|
|
../../../AppUtils/UICommon/common_resources.qrc \
|
|
|
|
|
|
resources.qrc
|
|
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
|
# Windows 浠诲姟鏍?/ exe 鍥炬爣
|
2026-06-26 17:55:15 +08:00
|
|
|
|
win32 {
|
|
|
|
|
|
RC_ICONS = resource/logo.ico
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
|
# 閾炬帴
|
2026-06-26 17:55:15 +08:00
|
|
|
|
win32:CONFIG(debug, debug|release) {
|
|
|
|
|
|
LIBS += -L../../../Utils/VrUtils/debug -lVrUtils
|
|
|
|
|
|
LIBS += -L../../../AppUtils/UICommon/debug -lUICommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon/debug -lAppCommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppConfig/debug -lAppConfig
|
|
|
|
|
|
LIBS += -L../../../Module/AuthModule/debug -lAuthModule
|
2026-07-14 17:14:55 +08:00
|
|
|
|
LIBS += -L../../../Nets/debug -lZeroMQClient
|
|
|
|
|
|
LIBS += -L../../../Nets/debug -lZeroMQPubSub
|
2026-06-26 17:55:15 +08:00
|
|
|
|
LIBS += -L../../../Module/FFMediaStream/debug -lFFMediaStream
|
|
|
|
|
|
LIBS += -L../../../Module/ShareMem/debug -lShareMem
|
|
|
|
|
|
LIBS += -L../../../Module/WDRemoteReceiver/debug -lWDRemoteReceiver
|
|
|
|
|
|
LIBS += -L../DroneScrewCtrlConfig/debug -lDroneScrewCtrlConfig
|
|
|
|
|
|
}else:win32:CONFIG(release, debug|release){
|
|
|
|
|
|
LIBS += -L../../../Utils/VrUtils/release -lVrUtils
|
|
|
|
|
|
LIBS += -L../../../AppUtils/UICommon/release -lUICommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon/release -lAppCommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppConfig/release -lAppConfig
|
|
|
|
|
|
LIBS += -L../../../Module/AuthModule/release -lAuthModule
|
2026-07-14 17:14:55 +08:00
|
|
|
|
LIBS += -L../../../Nets/release -lZeroMQClient
|
|
|
|
|
|
LIBS += -L../../../Nets/release -lZeroMQPubSub
|
2026-06-26 17:55:15 +08:00
|
|
|
|
LIBS += -L../../../Module/FFMediaStream/release -lFFMediaStream
|
|
|
|
|
|
LIBS += -L../../../Module/ShareMem/release -lShareMem
|
|
|
|
|
|
LIBS += -L../../../Module/WDRemoteReceiver/release -lWDRemoteReceiver
|
|
|
|
|
|
LIBS += -L../DroneScrewCtrlConfig/release -lDroneScrewCtrlConfig
|
|
|
|
|
|
}else:unix:!macx {
|
|
|
|
|
|
LIBS += -L../DroneScrewCtrlConfig -lDroneScrewCtrlConfig
|
|
|
|
|
|
LIBS += -L../../../AppUtils/UICommon -lUICommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppCommon -lAppCommon
|
|
|
|
|
|
LIBS += -L../../../AppUtils/AppConfig -lAppConfig
|
|
|
|
|
|
LIBS += -L../../../Module/AuthModule -lAuthModule
|
2026-07-14 17:14:55 +08:00
|
|
|
|
LIBS += -L../../../Nets -lZeroMQClient
|
|
|
|
|
|
LIBS += -L../../../Nets -lZeroMQPubSub
|
2026-06-26 17:55:15 +08:00
|
|
|
|
LIBS += -L../../../Module/FFMediaStream -lFFMediaStream
|
|
|
|
|
|
LIBS += -L../../../Module/ShareMem -lShareMem
|
|
|
|
|
|
LIBS += -L../../../Module/WDRemoteReceiver -lWDRemoteReceiver
|
|
|
|
|
|
LIBS += -L../../../Utils/VrUtils -lVrUtils
|
|
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
|
# 绯荤粺搴擄紙鏉垮瓙鑷甫锛?
|
|
|
|
|
|
LIBS += -lrga
|
2026-06-26 17:55:15 +08:00
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
|
# MPP 鍔ㄦ€佸簱 + FFmpeg 闈欐€佸簱鎼滅储璺緞
|
|
|
|
|
|
MPP_LIB_DIR = $$PWD/../../../Module/SDK/mpp/lib
|
|
|
|
|
|
FFMPEG_LIB_DIR = $$PWD/../../../Module/SDK/ffmpeg-rockchip/lib
|
2026-06-26 17:55:15 +08:00
|
|
|
|
LIBS += -L$${MPP_LIB_DIR}
|
|
|
|
|
|
LIBS += -L$${FFMPEG_LIB_DIR}
|
|
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
|
# FFmpeg-rockchip 闈欐€佸簱
|
|
|
|
|
|
# --whole-archive锛氳В鍐?.a 闂村惊鐜緷璧?+ ff_log_level 绛夊唴閮ㄧ鍙? # --allow-multiple-definition锛歭ibavcodec 鍜?libswscale 閮界紪璇戜簡 half2float.o锛堥噸澶嶄絾瀹屽叏鐩稿悓锛?
|
|
|
|
|
|
LIBS += -Wl,--whole-archive
|
2026-06-26 17:55:15 +08:00
|
|
|
|
LIBS += -lavformat -lavcodec -lswscale -lavutil -lswresample
|
|
|
|
|
|
LIBS += -Wl,--no-whole-archive
|
|
|
|
|
|
LIBS += -Wl,--allow-multiple-definition
|
|
|
|
|
|
|
2026-07-13 18:38:03 +08:00
|
|
|
|
# FFmpeg / MPP 浼犻€掍緷璧?
|
|
|
|
|
|
LIBS += -lrockchip_mpp -lz -llzma -ldrm -lpthread -ldl
|
2026-06-26 17:55:15 +08:00
|
|
|
|
|
|
|
|
|
|
# ZeroMQ
|
2026-07-14 17:14:55 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../Nets/SDK/ZeroMQ/Arm/aarch64 -lzmq
|
2026-06-26 17:55:15 +08:00
|
|
|
|
|
|
|
|
|
|
# WDRemoteReceiver uses OpenCV imgcodecs for PNG raw-image decode.
|
|
|
|
|
|
OPENCV_LIB_DIR = $$PWD/../../../SDK/OpenCV320/Arm/aarch64
|
|
|
|
|
|
LIBS += -L$${OPENCV_LIB_DIR} -lopencv_imgcodecs -lopencv_core
|
|
|
|
|
|
QMAKE_LFLAGS += -Wl,-rpath-link,$${OPENCV_LIB_DIR}
|
|
|
|
|
|
|
|
|
|
|
|
LIBS += -lpthread -ldl
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
|
|
LIBS += -lws2_32
|
|
|
|
|
|
LIBS += Advapi32.lib
|
|
|
|
|
|
|
|
|
|
|
|
# ZeroMQ
|
|
|
|
|
|
CONFIG(release, debug|release) {
|
2026-07-14 17:14:55 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../Nets/SDK/ZeroMQ/Windows/x64/Release -llibzmq-v142-mt-4_3_5
|
2026-06-26 17:55:15 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../SDK/Protobuf_3_20/Windows/x64/Release -llibprotobuf
|
|
|
|
|
|
} else {
|
2026-07-14 17:14:55 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../Nets/SDK/ZeroMQ/Windows/x64/Debug -llibzmq-v142-mt-gd-4_3_5
|
2026-06-26 17:55:15 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../SDK/Protobuf_3_20/Windows/x64/Debug -llibprotobuf
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unix {
|
|
|
|
|
|
target.path = /opt/dronescrewctrl
|
|
|
|
|
|
LIBS += -lrt
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|