2025-11-04 2:03 AM
When attempting to compile a GStreamer "Hello World" example (basic-tutorial-1.c) using the cross-compiler toolchain on STM32MP1 with OpenSTLinux, a fatal error occurs indicating that the limits.h header file is missing.
Source the environment setup script:
Check the cross-compiler:
Attempt to compile the program:
2025-11-04 2:06 AM - edited 2025-11-04 2:08 AM
So do you actually have a limits.h file in your filesystem?
If you do, is it in a place where your compiler is looking? ie, somewhere covered by your Include Paths ?
PS:
Gstreamer has a forum here: https://discourse.gstreamer.org/
2025-11-04 5:51 PM - edited 2025-11-04 5:52 PM
I think these should be included in the cross-compilation toolchain, since the system is using gst-launch-1.0.
2025-11-04 10:36 PM
I finally figured it out
$CC basic-tutorial-1.c -o basic-tutorial-1 -I/opt/st/stm32mp1/5.0.3-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/usr/include/gstreamer-1.0 -I/opt/st/stm32mp1/5.0.3-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/usr/include/glib-2.0 -I/opt/st/stm32mp1/5.0.3-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/usr/lib/glib-2.0/include -lgstreamer-1.0 -lglib-2.0
Refer to this repository: https://github.com/STMicroelectronics/st-openstlinux-application/blob/main/touch-event-gtk-player/Makefile.sdk
2025-11-05 1:45 AM
@SullyNiu wrote:I finally figured it out
Good news!
If that's resolved your issue, please Mark The Solution.
2025-11-05 1:47 AM
The compilation error indicates that the limits.h header file is missing during cross-compilation for the GStreamer HelloWorld example.
2025-11-05 2:20 AM
@FastThinker09 wrote:The compilation error indicates that the limits.h header file is missing
Not necessarily missing: As I said earlier, it could be present but not in a place where the compiler is looking.
In fact, I think this is the more common case?