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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s