我的sdk在OpenCV003项目里:
pro中添加文章来源地址https://www.toymoban.com/news/detail-790719.html
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
文章来源:https://www.toymoban.com/news/detail-790719.html
到了这里,关于【qt】sdk写pro写法,cv,onnx,cudnn的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!