Part Number: SK-TDA4VM
Other Parts Discussed in Thread: TDA4VM,
Hi Team,
I am trying to compile few custom gstreamer plugins for my product and it is not cross-compiling with sysroots as "arago-tmp-external-arm-glibc/sysroots/j7-evm" . For example the command is as follows
aarch64-none-linux-gnu-g++ --sysroot=/home/anantha/ti-build/build/yocto/build/arago-tmp-external-arm-glibc/sysroots/j7-evm -fPIC -Os -I/home/anantha/ti-build/build/yocto/build/arago-tmp-external-arm-glibc/sysroots/j7-evm/usr/include/ -I/home/anantha/ti-build/build/yocto/build/arago-tmp-external-arm-glibc/sysroots/j7-evm/usr/include/gstreamer-1.0 -L/home/anantha/ti-build/build/yocto/build/arago-tmp-external-arm-glibc/sysroots/j7-evm/usr/lib/gstreamer-1.0 -fvisibility=hidden -std=gnu++11 -Wextra -Wall -Werror -Wno-unused-parameter -L/home/anantha/ti-build/build/gstplugins -I/home/anantha/ti-build/build/gstplugins -flto -MMD -MP -g -ggdb -Wno-terminate -Wl,--as-needed -pthread -I/home/anantha/ti-build/build/yocto/build/arago-tmp-external-arm-glibc/sysroots/j7-evm/usr/include/gstreamer-1.0 -I/home/anantha/ti-build/build/yocto/build/arago-tmp-external-arm-glibc/sysroots/j7-evm/usr/include/glib-2.0 -I/home/anantha/ti-build/build/yocto/build/arago-tmp-external-arm-glibc/sysroots/j7-evm/usr/lib/glib-2.0/include -pthread -I/home/anantha/ti-build/build/yocto/build/arago-tmp-external-arm-glibc/sysroots/j7-evm/usr/include/gstreamer-1.0 -I/home/anantha/ti-build/build/yocto/build/arago-tmp-external-arm-glibc/sysroots/j7-evm/usr/include/glib-2.0 -I/home/anantha/ti-build/build/yocto/build/arago-tmp-external-arm-glibc/sysroots/j7-evm/usr/lib/glib-2.0/include -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -c /home/anantha/co/firmware/gstplugins/gstreamer/plugins//iot-cam-src/gstiotcamsrc.cc -o /home/anantha/ti-build/build/gstplugins/iot-cam-src/iotcamsrc.o
/home/anantha/co/firmware/gstplugins/gstreamer/plugins//iot-cam-src/gstiotcamsrc.cc:26:10: fatal error: cstdio: No such file or directory
26 | #include <cstdio>
| ^~~~~~~~
A similar command if I use for with another system , for example a qemarm64 and even genericx86-64 that I have built it works fine and the object is created.
aarch64-poky-linux-g++ --sysroot=/home/anantha/qemu-build/build/yocto/build/tmp/sysroots/qemuarm64 -fPIC -Os -I/home/anantha/qemu-build/build/yocto/build/tmp/sysroots/qemuarm64/usr/include/ -I/home/anantha/qemu-build/build/yocto/build/tmp/sysroots/qemuarm64/usr/include/gstreamer-1.0 -L/home/anantha/qemu-build/build/yocto/build/tmp/sysroots/qemuarm64/usr/lib/gstreamer-1.0 -fvisibility=hidden -std=gnu++11 -Wextra -Wall -Werror -Wno-unused-parameter -L/home/anantha/qemu-build/build/gstplugins/qemuarm64 -I/home/anantha/qemu-build/build/gstplugins/qemuarm64 -flto -MMD -MP -g -ggdb - -Wno-terminate -Wl,--as-needed -pthread -I/home/anantha/qemu-build/build/yocto/build/tmp/sysroots/qemuarm64/usr/include/gstreamer-1.0 -I/home/anantha/qemu-build/build/yocto/build/tmp/sysroots/qemuarm64/usr/include/glib-2.0 -I/home/anantha/qemu-build/build/yocto/build/tmp/sysroots/qemuarm64/usr/lib/glib-2.0/include -pthread -I/home/anantha/qemu-build/build/yocto/build/tmp/sysroots/qemuarm64/usr/include/gstreamer-1.0 -I/home/anantha/qemu-build/build/yocto/build/tmp/sysroots/qemuarm64/usr/include/glib-2.0 -I/home/anantha/qemu-build/build/yocto/build/tmp/sysroots/qemuarm64/usr/lib/glib-2.0/include -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -c /home/anantha/co/firmware/gstplugins/gstreamer/plugins//iot-cam-src/gstiotcamsrc.cc -o /home/anantha/qemu-build/build/gstplugins/qemuarm64/iot-cam-src/iotcamsrc.o
I won't be able to use the default sysroots inside linux-devkit/sysroots/aarch64-linux as it doesn't have all libraries that I need.
Am i doing anything wrong here or do I need to do anything extra ?
Thanks in advance
Regards,
Anantha