12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- QT -= gui
- CONFIG += c++11 console
- CONFIG -= app_bundle
- # The following define makes your compiler emit warnings if you use
- # any Qt feature that has been marked deprecated (the exact warnings
- # depend on your compiler). Please consult the documentation of the
- # deprecated API in order to know how to port your code away from it.
- DEFINES += QT_DEPRECATED_WARNINGS
- # You can also make your code fail to compile if it uses deprecated APIs.
- # In order to do so, uncomment the following line.
- # You can also select to disable deprecated APIs only up to a certain version of Qt.
- #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
- SOURCES += \
- ../../../thirdpartylib/civetweb/CivetServer.cpp \
- ../../../thirdpartylib/civetweb/civetweb.c \
- ../../include/msgtype/rawpic.pb.cc \
- main.cpp \
- ../../driver/driver_h264_dec/ivh264framedecode.cpp
- # Default rules for deployment.
- qnx: target.path = /tmp/$${TARGET}/bin
- else: unix:!android: target.path = /opt/$${TARGET}/bin
- !isEmpty(target.path): INSTALLS += target
- INCLUDEPATH += $$PWD/../../../thirdpartylib/civetweb
- INCLUDEPATH += $$PWD/../../include/msgtype
- LIBS += -lprotobuf
- !include(../../../include/common.pri ) {
- error( "Couldn't find the common.pri file!" )
- }
- !include(../../../include/ivopencv.pri ) {
- error( "Couldn't find the ivopencv.pri file!" )
- }
- HEADERS += \
- ../../../thirdpartylib/civetweb/CivetServer.h \
- ../../../thirdpartylib/civetweb/civetweb.h \
- ../../include/msgtype/rawpic.pb.h \
- ../../driver/driver_h264_dec/ivh264framedecode.h
- DEFINES += NO_SSL
- #DEFINES += NO_SSL_DL
- DEFINES += USE_WEBSOCKET
- INCLUDEPATH += $$PWD/../../driver/driver_h264_dec
- LIBS += -ldl -lrt
- #DEFINES += USE_QSV
- LIBS += -lopencv_highgui -lopencv_core -lopencv_imgproc -lopencv_imgcodecs -lopencv_video -lopencv_videoio -lpthread #-lopencv_shape
- if(contains(DEFINES,USE_QSV)){
- INCLUDEPATH += /usr/local/include
- INCLUDEPATH += /opt/intel/mediasdk/include
- LIBS += /opt/intel/mediasdk/lib/libmfx.so.1
- LIBS += -L/opt/intel/mediasdk/lib -lmfx
- LIBS += /home/yuchuli/File1/git/ffmpeg/lib/libavcodec.so.59
- LIBS += /home/yuchuli/File1/git/ffmpeg/lib/libavutil.so.57
- LIBS += /home/yuchuli/File1/git/ffmpeg/lib/libavdevice.so.59
- LIBS += /home/yuchuli/File1/git/ffmpeg/lib/libavformat.so.59
- } else {
- INCLUDEPATH += /usr/include/x86_64-linux-gnu
- LIBS += -lavcodec -lavformat -lavutil
- }
|