【qt】sdk写pro写法,cv,onnx,cudnn

我的sdk在OpenCV003项目里:
在这里插入图片描述
在这里插入图片描述
pro中添加

CONFIG(release, debug|release) {
   
    LIBS += -L$$PWD/sdk/onnxruntime-x64-gpu/lib/ -lonnxruntime
    LIBS += -L$$PWD/sdk/onnxruntime-x64-gpu/lib/ -lonnxruntime_providers_cuda
    LIBS += -L$$PWD/sdk/onnxruntime-x64-gpu/lib/ -lonnxruntime_providers_shared
    LIBS += -L$$PWD/sdk/onnxruntime-x64-gpu/lib/ -lonnxruntime_providers_tensorrt
    LIBS += -L$$PWD/sdk/opencv/lib/ -lopencv_world470
}
else {
   
    LIBS += -L$$PWD/sdk/onnxruntime-x64-gpu/lib/ -lonnxruntime
    LIBS += -L$$PWD/sdk/onnxruntime-x64-gpu/lib/ -lonnxruntime_providers_cuda
    LIBS += -L$$PWD/sdk/onnxruntime-x64-gpu/lib/ -lonnxruntime_providers_shared
    LIBS += -L$$PWD/sdk/onnxruntime-x64-gpu/lib/ -lonnxruntime_providers_tensorrt
    LIBS += -L$$PWD/sdk/opencv/lib/ -lopencv_world470d
}

INCLUDEPATH += $$PWD/sdk/onnxruntime-x64-gpu/include
INCLUDEPATH += $$PWD/sdk/opencv/include

CONFIG(release, debug|release) {
   
    onnxruntime.files += $$PWD/sdk/onnxruntime-x64-gpu/bin/onnxruntime.dll
    onnxruntime.files += $$PWD/sdk/onnxruntime-x64-gpu/bin/onnxruntime_providers_cuda.dll
    onnxruntime.files += $$PWD/sdk/onnxruntime-x64-gpu/bin/onnxruntime_providers_shared.dll
    onnxruntime.files += $$PWD/sdk/onnxruntime-x64-gpu/bin/onnxruntime_providers_tensorrt.dll
    opencv.files += $$PWD/sdk/opencv/bin/opencv_world470.dll
}
else {
   
    onnxruntime.files += $$PWD/sdk/onnxruntime-x64-gpu/bin/onnxruntime.dll
    onnxruntime.files += $$PWD/sdk/onnxruntime-x64-gpu/bin/onnxruntime_providers_cuda.dll
    onnxruntime.files += $$PWD/sdk/onnxruntime-x64-gpu/bin/onnxruntime_providers_shared.dll
    onnxruntime.files += $$PWD/sdk/onnxruntime-x64-gpu/bin/onnxruntime_providers_tensorrt.dll
    opencv.files += $$PWD/sdk/opencv/bin/opencv_world470d.dll
}


CONFIG(release, debug|release) {
   
    onnxruntime.path += $$OUT_PWD/Release
    opencv.path += $$OUT_PWD/Release
}
else {
   
    onnxruntime.path += $$OUT_PWD/Debug
    opencv.path += $$OUT_PWD/Debug
}

COPIES += onnxruntime
COPIES += opencv

相关推荐

  1. Qt QMake指南(如何pro文件)

    2024-01-13 10:56:01       10 阅读
  2. PHP函数里面JQ CSS HTML的写法案例

    2024-01-13 10:56:01       28 阅读
  3. E2PROM函数

    2024-01-13 10:56:01       17 阅读
  4. 智能手ChatGPT:学术论文写作新视野

    2024-01-13 10:56:01       18 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-01-13 10:56:01       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-13 10:56:01       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-13 10:56:01       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-13 10:56:01       20 阅读

热门阅读

  1. 数据结构之基本数据类型(Python)

    2024-01-13 10:56:01       35 阅读
  2. Vue模板的理解和使用

    2024-01-13 10:56:01       33 阅读
  3. 【C】struct 、struct 指针

    2024-01-13 10:56:01       32 阅读
  4. svn - 配置账号、自动更新、配置log权限

    2024-01-13 10:56:01       32 阅读
  5. PostgreSQL 清理空间命令

    2024-01-13 10:56:01       32 阅读
  6. spring boot 返回文件流

    2024-01-13 10:56:01       28 阅读
  7. 将抖音视频转成MP3并下载

    2024-01-13 10:56:01       47 阅读