fatal error: gtk/gtk.h

Mats Lindestam mats.lindestam at gmail.com
Sat Aug 5 19:53:34 UTC 2017

I am working my way through the online Gstreamer tutorials. Now I am stuck
on the Basic Tutorial 5 (basic-tutorial-5.c). I get the following error
when compiling:

$ gcc basic-tutorial-5.c -o basic-tutorial-5 `pkg-config --cflags --libs
gstreamer-interfaces-1.0 gtk+-3.0 gstreamer-1.0`
Package gstreamer-interfaces-1.0 was not found in the pkg-config search
Perhaps you should add the directory containing
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-interfaces-1.0' found
basic-tutorial-5.c:77:21: fatal error: gtk/gtk.h: Filen eller katalogen
finns inte
 #include <gtk/gtk.h>
compilation terminated.

According to the tutorial the following libraries are required:
   - gstreamer-video-1.0 (Package: libgstreamer-plugins-base1.0-dev)
   - gtk+-3.0 (Package: libgtk-3-dev)
   - gstreamer-1.0

Those packages are also installed:

$ dpkg-query -l | grep "libgstreamer-plugins-base1.0-dev"
ii  libgstreamer-plugins-base1.0-dev      1.4.4-2+deb8u1
    i386         GStreamer development files for libraries from the "base"

$ dpkg-query -l | grep "libgtk-3-dev"
ii  libgtk-3-dev:i386                     3.14.5-1+deb8u1
   i386         development files for the GTK+ library

The gtk.h file is installed:

$ sudo find /usr -name gtk.h

I have googled like a madman but I don't find a solution. Does anyone know
a solution?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170805/ec286d8e/attachment.html>

More information about the gstreamer-devel mailing list