mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
onnx: Update to build against 1.16.1
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4916>
This commit is contained in:
parent
1ff585233a
commit
62f292ac73
2 changed files with 4 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* GStreamer gstreamer-onnxclient
|
||||
* Copyright (C) 2021 Collabora Ltd
|
||||
* Copyright (C) 2021-2023 Collabora Ltd
|
||||
*
|
||||
* gstonnxclient.cpp
|
||||
*
|
||||
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "gstonnxclient.h"
|
||||
#include <tensor/gsttensorid.h>
|
||||
#include <providers/cpu/cpu_provider_factory.h>
|
||||
#include <cpu_provider_factory.h>
|
||||
#include <sstream>
|
||||
|
||||
namespace GstOnnxNamespace
|
||||
|
|
|
@ -3,7 +3,7 @@ if get_option('onnx').disabled()
|
|||
endif
|
||||
|
||||
|
||||
onnxrt_dep = dependency('libonnxruntime', version : '>= 1.15.1', required : get_option('onnx'))
|
||||
onnxrt_dep = dependency('libonnxruntime', version : '>= 1.16.1', required : get_option('onnx'))
|
||||
|
||||
extra_args = []
|
||||
extra_deps = []
|
||||
|
@ -13,8 +13,6 @@ if gstcuda_dep.found()
|
|||
endif
|
||||
|
||||
if onnxrt_dep.found()
|
||||
onnxrt_include_root = onnxrt_dep.get_variable('includedir')
|
||||
onnxrt_includes = [onnxrt_include_root / 'core/session', onnxrt_include_root / 'core']
|
||||
gstonnx = library('gstonnx',
|
||||
'gstonnx.c',
|
||||
'decoders/gstobjectdetectorutils.cpp',
|
||||
|
@ -26,7 +24,7 @@ if onnxrt_dep.found()
|
|||
c_args : gst_plugins_bad_args + extra_args,
|
||||
cpp_args : gst_plugins_bad_args + extra_args,
|
||||
link_args : noseh_link_args,
|
||||
include_directories : [configinc, libsinc, onnxrt_includes, cuda_stubinc],
|
||||
include_directories : [configinc, libsinc, cuda_stubinc],
|
||||
dependencies : [gstbase_dep, gstvideo_dep, onnxrt_dep, libm] + extra_deps,
|
||||
install : true,
|
||||
install_dir : plugins_install_dir,
|
||||
|
|
Loading…
Reference in a new issue