Meson build error whilte attempting to cross-build gstreamer
I'm trying to cross-compile gstreamer using the tutorial at this page: https://www.collabora.com/news-and-blog/blog/2020/05/15/cross-compiling-with-gst-build-and-gstreamer/.
Currently I've created a SDK using Yocto with the whole toolchain meson-log.txt I've followed each step and as I launched meson, it fails during glib build step. The error is very weird.
subprojects/glib/meson.build:1233:2: ERROR: Problem encountered: Compiler provides no native 16-bit integer type
The meson cross file was generated with the command:
python generate-cross-file.py --cross-file cross_file.meson --toolchain-prefix aarch64-oe-linux- --custom-cflags "-O2 -pipe -g -feliminate-unused-debug-types" --custom-ldflags "-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" --sysroot /opt/tdx-oecore-x86_64/sysroots/aarch64-oe-linux/
The meson command looks like:
meson --prefix=/opt/build_gstreamer/deploy/apalis-imx8/gstreamer-1.18 -Dglib:libmount=false -Dgst-plugins-good=enabled -Dgst-plugins-good:qt5=enabled -Dgl=enabled --cross-file=cross_file.meson build-cross-arm64
Please find attached the meson-log.txt file.
Is there something wrong cross_file.mesonin the command above ?
Does the cross-compile require a certain type of toolchain ?