yolov8_onnx_test.pro 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. main.cpp \
  15. yolov8_onnx.cpp \
  16. yolov8_pose_onnx.cpp \
  17. yolov8_utils.cpp
  18. # Default rules for deployment.
  19. qnx: target.path = /tmp/$${TARGET}/bin
  20. else: unix:!android: target.path = /opt/$${TARGET}/bin
  21. !isEmpty(target.path): INSTALLS += target
  22. INCLUDEPATH += /usr/local/include/opencv4
  23. LIBS += -L/usr/local/lib -lopencv_core -lopencv_highgui -lopencv_video -lopencv_imgproc -lopencv_ml -lopencv_videoio -lopencv_imgcodecs -lopencv_dnn
  24. INCLUDEPATH += /home/sxyx2026/onnxruntime-linux-x64-gpu-1.14.1/include/
  25. LIBS += -L/home/sxyx2026/onnxruntime-linux-x64-gpu-1.14.1/lib -lonnxruntime
  26. HEADERS += \
  27. yolov8_onnx.h \
  28. yolov8_pose_onnx.h \
  29. yolov8_utils.h