h264view_civetweb.pro 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. QT -= gui
  2. CONFIG += c++11 console
  3. CONFIG -= app_bundle
  4. # The following define makes your compiler emit warnings if you use
  5. # any Qt feature that has been marked deprecated (the exact warnings
  6. # depend on your compiler). Please consult the documentation of the
  7. # deprecated API in order to know how to port your code away from it.
  8. DEFINES += QT_DEPRECATED_WARNINGS
  9. # You can also make your code fail to compile if it uses deprecated APIs.
  10. # In order to do so, uncomment the following line.
  11. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  12. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  13. SOURCES += \
  14. ../../../thirdpartylib/civetweb/CivetServer.cpp \
  15. ../../../thirdpartylib/civetweb/civetweb.c \
  16. ../../include/msgtype/rawpic.pb.cc \
  17. main.cpp \
  18. ../../driver/driver_h264_dec/ivh264framedecode.cpp
  19. # Default rules for deployment.
  20. qnx: target.path = /tmp/$${TARGET}/bin
  21. else: unix:!android: target.path = /opt/$${TARGET}/bin
  22. !isEmpty(target.path): INSTALLS += target
  23. INCLUDEPATH += $$PWD/../../../thirdpartylib/civetweb
  24. INCLUDEPATH += $$PWD/../../include/msgtype
  25. LIBS += -lprotobuf
  26. !include(../../../include/common.pri ) {
  27. error( "Couldn't find the common.pri file!" )
  28. }
  29. !include(../../../include/ivopencv.pri ) {
  30. error( "Couldn't find the ivopencv.pri file!" )
  31. }
  32. HEADERS += \
  33. ../../../thirdpartylib/civetweb/CivetServer.h \
  34. ../../../thirdpartylib/civetweb/civetweb.h \
  35. ../../include/msgtype/rawpic.pb.h \
  36. ../../driver/driver_h264_dec/ivh264framedecode.h
  37. DEFINES += NO_SSL
  38. #DEFINES += NO_SSL_DL
  39. DEFINES += USE_WEBSOCKET
  40. INCLUDEPATH += $$PWD/../../driver/driver_h264_dec
  41. LIBS += -ldl -lrt
  42. #DEFINES += USE_QSV
  43. LIBS += -lopencv_highgui -lopencv_core -lopencv_imgproc -lopencv_imgcodecs -lopencv_video -lopencv_videoio -lpthread #-lopencv_shape
  44. if(contains(DEFINES,USE_QSV)){
  45. INCLUDEPATH += /usr/local/include
  46. INCLUDEPATH += /opt/intel/mediasdk/include
  47. LIBS += /opt/intel/mediasdk/lib/libmfx.so.1
  48. LIBS += -L/opt/intel/mediasdk/lib -lmfx
  49. LIBS += /home/yuchuli/File1/git/ffmpeg/lib/libavcodec.so.59
  50. LIBS += /home/yuchuli/File1/git/ffmpeg/lib/libavutil.so.57
  51. LIBS += /home/yuchuli/File1/git/ffmpeg/lib/libavdevice.so.59
  52. LIBS += /home/yuchuli/File1/git/ffmpeg/lib/libavformat.so.59
  53. } else {
  54. INCLUDEPATH += /usr/include/x86_64-linux-gnu
  55. LIBS += -lavcodec -lavformat -lavutil
  56. }