Build with Onnx support fail
Describe your issue
Build with Onnx support fail.
Expected Behavior
Build to succeed with Onnx support
Observed Behavior
Compiling C object subprojects/gst-plugins-bad/ext/onnx/libgstonnx.so.p/decoders_gstssdobjectdetector.c.o
FAILED: subprojects/gst-plugins-bad/ext/onnx/libgstonnx.so.p/decoders_gstssdobjectdetector.c.o
ccache cc -Isubprojects/gst-plugins-bad/ext/onnx/libgstonnx.so.p -Isubprojects/gst-plugins-bad/ext/onnx -I../subprojects/gst-plugins-bad/ext/onnx -Isubprojects/gst-plugins-bad -I../subprojec
ts/gst-plugins-bad -Isubprojects/gst-plugins-bad/gst-libs -I../subprojects/gst-plugins-bad/gst-libs -I../subprojects/gst-plugins-bad/gst-libs/gst/cuda/stub -Isubprojects/gstreamer/libs -I../
subprojects/gstreamer/libs -Isubprojects/gstreamer -I../subprojects/gstreamer -Isubprojects/gst-plugins-base/gst-libs -I../subprojects/gst-plugins-base/gst-libs -Isubprojects/orc -I../subpro
jects/orc -Isubprojects/gl-headers/abyss -I../subprojects/gl-headers/abyss -Isubprojects/gl-headers/wglext -I../subprojects/gl-headers/wglext -Isubprojects/gstreamer/libs/gst/base -Isubproje
cts/gstreamer/gst -Isubprojects/gst-plugins-base/gst-libs/gst/video -Isubprojects/gst-plugins-bad/gst-libs/gst/analytics -Isubprojects/gst-plugins-bad/gst-libs/gst/cuda -Isubprojects/gst-plu
gins-base/gst-libs/gst/gl -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include/onnxruntime -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gu
dev-1.0 -I/usr/include/libdrm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -fvisibility=hidden -fno-strict-aliasing -DG_DISABLE_DEPRECATED -Wmissing-prototype
s -Wold-style-definition -Wmissing-declarations -Wredundant-decls -Wwrite-strings -Wformat -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wvla -Wpointer-arith
-fPIC -pthread -DHAVE_CONFIG_H -DHAVE_CUDA -MD -MQ subprojects/gst-plugins-bad/ext/onnx/libgstonnx.so.p/decoders_gstssdobjectdetector.c.o -MF subprojects/gst-plugins-bad/ext/onnx/libgstonnx
.so.p/decoders_gstssdobjectdetector.c.o.d -o subprojects/gst-plugins-bad/ext/onnx/libgstonnx.so.p/decoders_gstssdobjectdetector.c.o -c ../subprojects/gst-plugins-bad/ext/onnx/decoders/gstssd
objectdetector.c
../subprojects/gst-plugins-bad/ext/onnx/decoders/gstssdobjectdetector.c: In function ‘get_guint32_at_index’:
../subprojects/gst-plugins-bad/ext/onnx/decoders/gstssdobjectdetector.c:360:19: error: ‘GstTensor’ {aka ‘struct _GstTensor’} has no member named ‘type’
360 | switch (tensor->type) { \
| ^~
../subprojects/gst-plugins-bad/ext/onnx/decoders/gstssdobjectdetector.c:382:1: note: in expansion of macro ‘DEFINE_GET_FUNC’
382 | DEFINE_GET_FUNC (guint32, UINT32_MAX)
| ^~~~~~~~~~~~~~~
../subprojects/gst-plugins-bad/ext/onnx/decoders/gstssdobjectdetector.c: In function ‘get_float_at_index’:
../subprojects/gst-plugins-bad/ext/onnx/decoders/gstssdobjectdetector.c:360:19: error: ‘GstTensor’ {aka ‘struct _GstTensor’} has no member named ‘type’
360 | switch (tensor->type) { \
| ^~
../subprojects/gst-plugins-bad/ext/onnx/decoders/gstssdobjectdetector.c:383:5: note: in expansion of macro ‘DEFINE_GET_FUNC’
383 | DEFINE_GET_FUNC (float, FLOAT_MAX)
| ^~~~~~~~~~~~~~~
Setup
Follow this readme meson setup build/
Steps to reproduce the bug
- Follow setup
- type
ninja -C build/
How reproducible is the bug?
always