ti's gstreamer plugins on beagley-ai

I attempted to build ti’s edgeai-gst-plugins but received build errors for missing packages from ti’s processor sdk.

$ SOC=j722s meson build --prefix=/usr -Dpkg_config_path=pkgconfig
$ ninja -C build
ninja: Entering directory `build'
[1/93] Compiling C object gst-libs/gst/tiovx/libgsttiovx-1.0.so.1.0.p/gsttiovxcontext.c.o
FAILED: gst-libs/gst/tiovx/libgsttiovx-1.0.so.1.0.p/gsttiovxcontext.c.o 
cc -Igst-libs/gst/tiovx/libgsttiovx-1.0.so.1.0.p -Igst-libs/gst/tiovx -I../gst-libs/gst/tiovx -I. -I.. -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/aarch64-linux-gnu -I/usr/include/orc-0.4 -I/usr/include/edgeai-apps-utils/ -I/usr/include/edgeai_dl_inferer/ -I/usr/include/processor_sdk/imaging/ -I/usr/include/processor_sdk/imaging/algos/ae/include/ -I/usr/include/processor_sdk/imaging/algos/awb/include/ -I/usr/include/processor_sdk/imaging/algos/dcc/include/ -I/usr/include/processor_sdk/imaging/ti_2a_wrapper/include/ -I/usr/include/processor_sdk/imaging/kernels/include/ -I/usr/include/processor_sdk/imaging/sensor_drv/include/ -I/usr/include/processor_sdk/tiovx/include/ -I/usr/include/processor_sdk/tidl_j7/arm-tidl/tiovx_kernels/include/ -I/usr/include/processor_sdk/tiovx/kernels/include/ -I/usr/include/processor_sdk/tiovx/utils/include/ -I/usr/include/processor_sdk/vision_apps/ -I/usr/include/processor_sdk/app_utils/ -I/usr/include/processor_sdk/vision_apps/utils/app_init/include/ -I/usr/include/processor_sdk/vision_apps/kernels/img_proc/include/ -I/usr/include/processor_sdk/vision_apps/kernels/fileio/include/ -I/usr/include/processor_sdk/tidl_j7/arm-tidl/rt/inc/ -I/usr/include/processor_sdk/ivision/ -I/usr/include/edgeai-tiovx-modules -I/usr/include/edgeai-tiovx-kernels/ -I/usr/include/processor_sdk/vision_apps/kernels/stereo/include -I/usr/include/processor_sdk/ti-perception-toolkit/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -Wmissing-declarations -Wmissing-prototypes -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wuninitialized -Wunknown-pragmas -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -fPIC -pthread -DHAVE_CONFIG_H -DSOC_J722S -DTARGET_CPU_A53 -DDL_PLUGINS -DENABLE_TIDL -MD -MQ gst-libs/gst/tiovx/libgsttiovx-1.0.so.1.0.p/gsttiovxcontext.c.o -MF gst-libs/gst/tiovx/libgsttiovx-1.0.so.1.0.p/gsttiovxcontext.c.o.d -o gst-libs/gst/tiovx/libgsttiovx-1.0.so.1.0.p/gsttiovxcontext.c.o -c ../gst-libs/gst/tiovx/gsttiovxcontext.c
cc1: warning: /usr/include/edgeai-apps-utils/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/edgeai_dl_inferer/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/imaging/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/imaging/algos/ae/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/imaging/algos/awb/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/imaging/algos/dcc/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/imaging/ti_2a_wrapper/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/imaging/kernels/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/imaging/sensor_drv/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/tiovx/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/tidl_j7/arm-tidl/tiovx_kernels/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/tiovx/kernels/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/tiovx/utils/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/vision_apps/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/app_utils/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/vision_apps/utils/app_init/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/vision_apps/kernels/img_proc/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/vision_apps/kernels/fileio/include/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/tidl_j7/arm-tidl/rt/inc/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/ivision/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/edgeai-tiovx-modules: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/edgeai-tiovx-kernels/: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/vision_apps/kernels/stereo/include: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /usr/include/processor_sdk/ti-perception-toolkit/include: No such file or directory [-Wmissing-include-dirs]

I downloaded the processor sdk, it is a binary for x86-64.

$ file ti-processor-sdk-linux-edgeai-j722s-evm-09_02_00_05-Linux-x86-Install.bin 
ti-processor-sdk-linux-edgeai-j722s-evm-09_02_00_05-Linux-x86-Install.bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.4.0, stripped

Is there docu I missed or has anyone else successfully built these gstreamer components on device?

-Ian

No, I tried and did not have much luck and gave up on it. I even posted an the gstreamer site looking for some help, nothing.

Well i downloaded the wix image from ti and there were all these directory in rootfs/opt when you plug the sd card booted with that image then i was not getting these errors. What you can do is follow this clone these repos in opt directory and see if it fixes.
https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-am67a/09_02_00/exports/edgeai-docs/common/sdk_components.html
Well i did thiss but then i got stuck in tiovs modules because i think its image dependent.

After further investigation there are plans to include these, but they are a bit behind schedule Beagles EdgeAI gitlab.

The ultimate goal being to compile and package the TI’s edgeai-app-stack and other necessary TI components into the kernel beagle ships (and package for other distros?).