Skip to content

Install `*-dev` packages on Linux to get the headers

When compiling in Ubuntu 18.04 I get:

$ gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0`
Package gstreamer-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-1.0' found
basic-tutorial-1.c:1:10: fatal error: gst/gst.h: No such file or directory
 #include <gst/gst.h>
          ^~~~~~~~~~~
compilation terminated.

Installing libgstreamer1.0-dev fixed it but it's mentioned nowhere in the installation instruction.

Related to issue #83 (closed).

Edited by Florian Karydes

Merge request reports