10.2. Compiling and Running helloworld.c

To compile the helloworld example, use: gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) helloworld.c -o helloworld. GStreamer makes use of pkg-config to get compiler and linker flags needed to compile this application. If you're running a non-standard installation, make sure the PKG_CONFIG_PATH environment variable is set to the correct location ($libdir/pkgconfig). application against the uninstalled location.

You can run this example application with ./helloworld file.ogg. Substitute file.ogg with your favourite Ogg/Vorbis file.