代码拉取完成,页面将自动刷新
#-------------------------------------------------
#
# Project created by QtCreator 2021-09-22T18:47:44
#
#-------------------------------------------------
QT += core gui
CONFIG += c++11
QT += serialport
QT += sql
QT += multimedia
CONFIG+= DLIB_NO_GUI_SUPPORT=1
# LIBS += -ldl
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG +=gdb
CONFIG += debug
QMAKE_CXXFLAGS_DEBUG += -O0 -g
QMAKE_CFLAGS_DEBUG += -O0 -g
#函数原型为contains(variablename, value),如果 variablename 包含 value 则返回成功
#QMAKE_HOST.arch:qmake变量,计算机架构
#x86_64:终端输入 lscpu 可以参看当前计算机架构,x86 是 x86_64,arm64 是 aarch64,或者直接 message($$QMAKE_HOST.arch) 输出到概要信息
contains(QMAKE_HOST.arch, x86_64){
# INCLUDEPATH +=/usr/include/opencv4/opencv2\
# /usr/include/opencv4\
#$$PWD/onvif/opensslinclude
# message("编译平台: x86")
LIBS += -lopencv_core
LIBS += -lopencv_highgui
LIBS += -lopencv_calib3d
LIBS += -lopencv_features2d
LIBS += -lopencv_flann
LIBS += -lopencv_imgcodecs
LIBS += -lopencv_imgproc
LIBS += -lopencv_ml
LIBS += -lopencv_objdetect
LIBS += -lopencv_video
LIBS += -lopencv_videoio
#LIBS += -lopencv_legacy
#LIBS += -lopencv_contrib
#LIBS += -lopenblas
# LIBS += -ldlib
LIBS +=\
-lavformat \
-lavcodec \
# -lavdevice \
# -lavfilter \
-lavutil \
-lswresample \
-lswscale \
# -lonvif\
-lssl \
-lcrypto \
-ldrm \
-lz \
-ljpeg
}else{
message("编译平台: arm64")
# INCLUDEPATH += /opt/opencv3.4.12/include \
# /opt/opencv3.4.12/include/opencv \
# /opt/opencv3.4.12/include/opencv2
LIBS += -lopencv_core
LIBS += -lopencv_highgui
LIBS += -lopencv_calib3d
LIBS += -lopencv_features2d
LIBS += -lopencv_flann
LIBS += -lopencv_imgcodecs
LIBS += -lopencv_imgproc
LIBS += -lopencv_ml
LIBS += -lopencv_objdetect
LIBS += -lopencv_video
LIBS += -lopencv_videoio
LIBS += -lopencv_legacy
LIBS += -lopencv_contrib
LIBS += -lopenblas
LIBS += -ldlib
LIBS +=\
-lavformat \
-lavcodec \
# -lavdevice \
# -lavfilter \
-lavutil \
-lswresample \
-lswscale \
# -lonvif\
# -lssl \
# -lcrypto \
-ldrm \
-lz \
# -ljpeg
}
#unix:!macx: LIBS += -L$$PWD/onvif/ -lssl
#INCLUDEPATH += $$PWD/onvif/openssl
#DEPENDPATH += $$PWD/onvif/openssl
#unix:!macx: PRE_TARGETDEPS += $$PWD/onvif/libssl.a
#unix:!macx: LIBS += -L$$PWD/onvif/ -lcrypto
#INCLUDEPATH += $$PWD/onvif/openssl
#DEPENDPATH += $$PWD/onvif/openssl
#unix:!macx: PRE_TARGETDEPS += $$PWD/onvif/libcrypto.a
TARGET = Towerc
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
QMAKE_CFLAGS += -D WITH_DOM -D WITH_OPENSSL
#CONFIG+=gif
SOURCES += \
main.cpp \
mainscreen.cpp \
bootscreen.cpp \
screenmng.cpp \
toolbar.cpp \
# bottomtoolbar.cpp \
towerbutton.cpp \
# volumecontrol.cpp \
# toweranimation.cpp \
mylistwidget.cpp \
toweranalog.cpp \
# toolbutton.cpp \
screenswitchbutton.cpp \
# videosetting.cpp \
# logindig.cpp \
inputscreen.cpp \
# helpscreen.cpp \
collisionsetting.cpp \
# facesetting.cpp \
limitsetting.cpp \
# settingsystem.cpp \
arealimitsetting.cpp \
# towercollisionsetting.cpp \
# videochannelsetting.cpp \
limitdebug.cpp \
speeddebug.cpp \
momentcurvesetting.cpp \
dipanglesetting.cpp \
towerinfosetting.cpp \
# smartcarsetting.cpp \
# cloudservicesetting.cpp \
# functionaltestsetting.cpp \
# dataexport.cpp \
# networksetting.cpp \
# dateclocksetting.cpp \
# clock.cpp \
# deviceinfo.cpp \
# systemtool.cpp \
# log.cpp \
# msghandlerwapper.cpp \
# vandtbutton.cpp \
# laser.cpp \
datadictionary.cpp \
MyFFmpeg.cpp \
RTSP_Player.cpp \
networkcamerachannel1.cpp \
# networkcamerachannel2.cpp \
# networkcamerachannel3.cpp \
infoshowlabel.cpp \
fullscreenbutton.cpp \
# splitscreenbutton.cpp \
# faceidscreen.cpp \
blackbox.cpp \
blackboxpro.cpp \
crc16modbus.cpp \
towercranelineedit.cpp \
# onvifptz.cpp \
# netcameractl.cpp \
tccommunicationmng.cpp \
# camertrackalgorithm.cpp \
towercranemng.cpp \
datasave.cpp \
mysql.cpp \
# localcamera.cpp \
# faceidsuccess.cpp \
# faceidcmp.cpp \
# photoreg.cpp \
# faceregister.cpp \
# factoryconfiglogin.cpp \
alarmlabel.cpp \
# passwordmodify.cpp \
# alignscreen.cpp \
# syncfaceid.cpp \
# dtusetting.cpp \
# faceidtimeout.cpp \
# shieldclick.cpp \
# picshow.cpp \
# osdtcp.cpp \
# tcmainscreeninfo.cpp \
# syncdatatobb.cpp \
# exportprogress.cpp \
jsonanalysis.cpp \
# backgroud.cpp \
# onvifinterface.cpp \
# onvifconfscreen.cpp \
# onvifcamconfscreen.cpp \
# bblistscreen.cpp \
# potentiometerlimit.cpp \
# electroniccompasslimit.cpp\
viewlist.cpp
HEADERS += \
mainscreen.h \
bootscreen.h \
screenmng.h \
toolbar.h \
# bottomtoolbar.h \
towerbutton.h \
# volumecontrol.h \
# toweranimation.h \
mylistwidget.h \
toweranalog.h \
# toolbutton.h \
screenswitchbutton.h \
# videosetting.h \
# logindig.h \
inputscreen.h \
# helpscreen.h \
collisionsetting.h \
# facesetting.h \
limitsetting.h \
# settingsystem.h \
arealimitsetting.h \
# towercollisionsetting.h \
# videochannelsetting.h \
limitdebug.h \
speeddebug.h \
momentcurvesetting.h \
dipanglesetting.h \
towerinfosetting.h \
# smartcarsetting.h \
# cloudservicesetting.h \
# functionaltestsetting.h \
# dataexport.h \
# networksetting.h \
# dateclocksetting.h \
# clock.h \
# deviceinfo.h \
# systemtool.h \
# log.h \
# msghandlerwapper.h \
# vandtbutton.h \
# laser.h \
datadictionary.h \
MyFFmpeg.h \
RTSP_Player.h \
networkcamerachannel1.h \
# networkcamerachannel2.h \
# networkcamerachannel3.h \
infoshowlabel.h \
fullscreenbutton.h \
# splitscreenbutton.h \
# faceidscreen.h \
blackbox.h \
blackboxpro.h \
crc16modbus.h \
# common.h \
towercranelineedit.h \
# onvifptz.h \
# netcameractl.h \
tccommunicationmng.h \
# camertrackalgorithm.h \
towercranemng.h \
datasave.h \
mysql.h \
# localcamera.h \
# faceidsuccess.h \
# faceidcmp.h \
# photoreg.h \
# faceregister.h \
# factoryconfiglogin.h \
alarmlabel.h \
# passwordmodify.h \
# alignscreen.h \
# syncfaceid.h \
# dtusetting.h \
# faceidtimeout.h \
# shieldclick.h \
# picshow.h \
# osdtcp.h \
# tcmainscreeninfo.h \
# syncdatatobb.h \
# exportprogress.h \
jsonanalysis.h \
# backgroud.h \
# onvifinterface.h \
# onvifconfscreen.h \
# onvifcamconfscreen.h \
# bblistscreen.h \
# potentiometerlimit.h \
# electroniccompasslimit.h \
viewlist.h
FORMS += \
mainscreen.ui \
bootscreen.ui \
screenmng.ui \
toolbar.ui \
# bottomtoolbar.ui \
# volumecontrol.ui \
# toweranimation.ui \
toweranalog.ui \
# toolbutton.ui \
screenswitchbutton.ui \
# videosetting.ui \
inputscreen.ui \
# helpscreen.ui \
collisionsetting.ui \
# facesetting.ui \
limitsetting.ui \
# settingsystem.ui \
arealimitsetting.ui \
# towercollisionsetting.ui \
# videochannelsetting.ui \
limitdebug.ui \
speeddebug.ui \
momentcurvesetting.ui \
dipanglesetting.ui \
towerinfosetting.ui \
# smartcarsetting.ui \
# cloudservicesetting.ui \
# functionaltestsetting.ui \
# dataexport.ui \
# networksetting.ui \
# dateclocksetting.ui \
# clock.ui \
# deviceinfo.ui \
# systemtool.ui \
# log.ui \
# vandtbutton.ui \
# laser.ui \
networkcamerachannel1.ui \
# networkcamerachannel2.ui \
# networkcamerachannel3.ui \
infoshowlabel.ui \
fullscreenbutton.ui \
# splitscreenbutton.ui \
# faceidscreen.ui \
# faceidsuccess.ui \
# photoreg.ui \
# faceregister.ui \
# factoryconfiglogin.ui \
# passwordmodify.ui \
# alignscreen.ui \
# dtusetting.ui \
# faceidtimeout.ui \
# shieldclick.ui \
# picshow.ui \
# tcmainscreeninfo.ui \
# syncdatatobb.ui \
# exportprogress.ui \
# backgroud.ui \
# onvifconfscreen.ui \
# onvifcamconfscreen.ui \
# bblistscreen.ui \
# potentiometerlimit.ui \
# electroniccompasslimit.ui
viewlist.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
image.qrc
#INCLUDEPATH +=/opt/atk-dlrk356x-toolchain/aarch64-buildroot-linux-gnu/sysroot/usr/include/opencv4
# LIBS += -L/opt/atk-dlrk356x-toolchain/aarch64-buildroot-linux-gnu/sysroot/usr/lib
message("编译start")
##unix:!macx: LIBS += -L$$PWD/onvif/ -lonvif
#INCLUDEPATH += $$PWD/onvif
#DEPENDPATH += $$PWD/onvif
#unix:!macx: PRE_TARGETDEPS += $$PWD/onvif/libonvif.a
##unix:!macx: LIBS += -L$$PWD/onvif/ -lcrypto
#INCLUDEPATH += $$PWD/onvif/openssl
#DEPENDPATH += $$PWD/onvif/openssl
#unix:!macx: PRE_TARGETDEPS += $$PWD/onvif/libcrypto.a
##unix:!macx: LIBS += -L$$PWD/onvif/ -lssl
#INCLUDEPATH += $$PWD/onvif/openssl
#DEPENDPATH += $$PWD/onvif/openssl
#unix:!macx: PRE_TARGETDEPS += $$PWD/onvif/libssl.a
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。