GTK Application to see webcam image

I developed a GTK Application to see webcam images based on Mauro Chebab’s v4l2grab. It is working fine on my embedded system ARM9.

I compiled it this way:

LTIB> gcc gtkwc.c -o gtkwc -I../../../rootfs/usr/include/gtk-2.0 -I../../../rootfs/usr/include/cairo -I../../../rootfs/usr/include/glib-2.0 -I../../../rootfs/usr/lib/glib-2.0/include -I../../../rootfs/usr/include/pango-1.0 -I../../../rootfs/usr/lib/gtk-2.0/include -I../../../rootfs/usr/include/atk-1.0 -lgtk-x11-2.0 -lv4l2

Or just:

LTIB> gcc v4l2grab.c -o gtk_v4l `pkg-config –libs –cflags gtk+-2.0` -lv4l2

Thank you Douglas Landgraf for suggesting me to use v4l2grab